| 1 | 14 | ▶ | use 5.10.0; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 14 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 14 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package Map::Metro::Graph::Transfer; | ||
| 6 | |||
| 7 | # ABSTRACT: Moving between two stations without a connection between them | ||
| 8 | 14 | our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY | |
| 9 | 14 | our $VERSION = '0.2405'; | |
| 10 | |||
| 11 | 14 | ▶ | use Map::Metro::Elk; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 14 | ▶ | use Types::Standard qw/Int/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 14 | ▶ | use Map::Metro::Types qw/Station/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 14 | has origin_station => ( | |
| 16 | is => 'ro', | ||
| 17 | isa => Station, | ||
| 18 | required => 1, | ||
| 19 | ); | ||
| 20 | 14 | has destination_station => ( | |
| 21 | is => 'ro', | ||
| 22 | isa => Station, | ||
| 23 | required => 1, | ||
| 24 | ); | ||
| 25 | 14 | has weight => ( | |
| 26 | is => 'ro', | ||
| 27 | isa => Int, | ||
| 28 | default => 5, | ||
| 29 | ); | ||
| 30 | |||
| 31 | 14 | __PACKAGE__->meta->make_immutable; | |
| 32 | |||
| 33 | 14 | 1; | |
| 34 | |||
| 35 | __END__ | ||