Station
CityStation
Bases: Station
This is a city station for internal commuting
Source code in june/geography/station.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|
n_city_transports
property
station_type
property
get_commute_subgroup()
Source code in june/geography/station.py
50 51 52 |
|
ExternalCityStation
Bases: ExternalStation
This an external city station that lives outside the simulated domain.
Source code in june/geography/station.py
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
|
n_city_transports
property
get_commute_subgroup()
Source code in june/geography/station.py
188 189 190 191 |
|
ExternalInterCityStation
Bases: ExternalStation
This an external city station that lives outside the simulated domain.
Source code in june/geography/station.py
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
|
n_inter_city_transports
property
get_commute_subgroup()
Source code in june/geography/station.py
206 207 208 209 |
|
ExternalStation
Bases: ExternalGroup
Source code in june/geography/station.py
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
|
coordinates
property
get_commute_subgroup()
Source code in june/geography/station.py
171 172 173 |
|
InterCityStation
Bases: Station
This is an inter-city station for inter-city commuting
Source code in june/geography/station.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
|
n_inter_city_transports
property
station_type
property
get_commute_subgroup()
Source code in june/geography/station.py
72 73 74 75 76 |
|
Station
This represents a general station.
Source code in june/geography/station.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
coordinates
property
Stations
Bases: Supergroup
A collection of stations belonging to a city.
Source code in june/geography/station.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
|
from_city_center(city, type, super_areas, number_of_stations=4, distance_to_city_center=20)
classmethod
Initialises number_of_stations
radially around the city center.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
city
|
City
|
|
required |
type
|
str
|
|
required |
super_areas
|
SuperAreas
|
The super_areas where to put the hubs on |
required |
number_of_stations
|
int
|
How many stations to initialise (Default value = 4) |
4
|
distance_to_city_center
|
int
|
The distance from the center to the each station (Default value = 20) |
20
|
Source code in june/geography/station.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
|
get_closest_station(coordinates)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
coordinates
|
|
required |
Source code in june/geography/station.py
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
|