Route
route
¤
Classes:
Name | Description |
---|---|
AircraftRoute |
|
Destination |
|
Route |
|
RoutesSearch |
|
SameOdException |
|
AircraftRoute
¤
Classes:
Name | Description |
---|---|
Options |
|
Stopover |
|
Warning |
Members: |
Methods:
Name | Description |
---|---|
calc_fuel |
|
create |
|
estimate_load |
|
to_dict |
|
Attributes:
Name | Type | Description |
---|---|---|
acheck_cost |
float
|
|
ci |
int
|
|
co2 |
float
|
|
config |
PaxConfig | CargoConfig
|
|
contribution |
float
|
|
flight_time |
float
|
|
fuel |
float
|
|
income |
float
|
|
max_income |
float
|
|
max_tpd |
int | None
|
|
needs_stopover |
bool
|
|
num_ac |
int
|
|
profit |
float
|
|
repair_cost |
float
|
|
route |
Route
|
|
stopover |
Stopover
|
|
ticket |
PaxTicket | CargoTicket | VIPTicket
|
|
trips_per_day_per_ac |
int
|
|
valid |
bool
|
|
warnings |
list[Warning]
|
|
Options
¤
Options(
tpd_mode: TPDMode = AUTO,
trips_per_day_per_ac: int = 1,
max_distance: float = 20015.086796020572,
max_flight_time: float = 24.0,
config_algorithm: None | Algorithm | Algorithm = None,
sort_by: SortBy = PER_TRIP,
)
Classes:
Name | Description |
---|---|
SortBy |
Members: |
TPDMode |
Members: |
Attributes:
Name | Type | Description |
---|---|---|
config_algorithm |
None | Algorithm | Algorithm
|
|
max_distance |
float
|
|
max_flight_time |
float
|
|
sort_by |
SortBy
|
|
tpd_mode |
TPDMode
|
|
trips_per_day_per_ac |
int
|
|
SortBy
¤
SortBy(value: int)
Stopover
¤
Methods:
Name | Description |
---|---|
find_by_efficiency |
|
to_dict |
|
Attributes:
Name | Type | Description |
---|---|---|
airport |
Airport
|
|
exists |
bool
|
|
full_distance |
float
|
|
Warning
¤
Warning(value: int)
Members:
ERR_RWY_TOO_SHORT
ERR_DISTANCE_ABOVE_SPECIFIED
ERR_DISTANCE_TOO_LONG
ERR_DISTANCE_TOO_SHORT
REDUCED_CONTRIBUTION
ERR_NO_STOPOVER
ERR_FLIGHT_TIME_ABOVE_SPECIFIED
ERR_INSUFFICIENT_DEMAND
ERR_TRIPS_PER_DAY_TOO_HIGH
Attributes:
calc_fuel
staticmethod
¤
create
staticmethod
¤
create(
ap0: Airport,
ap1: Airport,
ac: Aircraft,
options: Options = Options(),
user: User = Default(),
) -> AircraftRoute
Destination
¤
Methods:
Name | Description |
---|---|
to_dict |
|
Attributes:
Name | Type | Description |
---|---|---|
ac_route |
AircraftRoute
|
|
airport |
Airport
|
|
origin |
Airport
|
|
Route
¤
Methods:
Name | Description |
---|---|
create |
|
to_dict |
|
Attributes:
Name | Type | Description |
---|---|---|
direct_distance |
float
|
|
pax_demand |
PaxDemand
|
|
valid |
bool
|
|