Skip to content

Route

route ¤

AircraftRoute ¤

acheck_cost property ¤

acheck_cost: float

ci property ¤

ci: int

co2 property ¤

co2: float

config property ¤

config: PaxConfig | CargoConfig

contribution property ¤

contribution: float

flight_time property ¤

flight_time: float

fuel property ¤

fuel: float

income property ¤

income: float

max_income property ¤

max_income: float

max_tpd property ¤

max_tpd: int | None

needs_stopover property ¤

needs_stopover: bool

num_ac property ¤

num_ac: int

profit property ¤

profit: float

repair_cost property ¤

repair_cost: float

route property ¤

route: Route

stopover property ¤

stopover: Stopover

ticket property ¤

ticket: PaxTicket | CargoTicket | VIPTicket

trips_per_day_per_ac property ¤

trips_per_day_per_ac: int

valid property ¤

valid: bool

warnings property ¤

warnings: list[Warning]

Options ¤

Options(
    tpd_mode: TPDMode = 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 = SortBy.PER_TRIP,
)
config_algorithm instance-attribute ¤
config_algorithm: None | Algorithm | Algorithm
max_distance instance-attribute ¤
max_distance: float
max_flight_time instance-attribute ¤
max_flight_time: float
sort_by instance-attribute ¤
sort_by: SortBy
tpd_mode instance-attribute ¤
tpd_mode: TPDMode
trips_per_day_per_ac instance-attribute ¤
trips_per_day_per_ac: int
SortBy ¤
SortBy(value: int)

Members:

PER_TRIP

PER_AC_PER_DAY

PER_AC_PER_DAY class-attribute ¤
PER_AC_PER_DAY: SortBy
PER_TRIP class-attribute ¤
PER_TRIP: SortBy
name property ¤
name: str
value property ¤
value: int
TPDMode ¤
TPDMode(value: int)

Members:

AUTO

STRICT_ALLOW_MULTIPLE_AC

STRICT

AUTO class-attribute ¤
AUTO: TPDMode
STRICT class-attribute ¤
STRICT: TPDMode
STRICT_ALLOW_MULTIPLE_AC class-attribute ¤
STRICT_ALLOW_MULTIPLE_AC: TPDMode
name property ¤
name: str
value property ¤
value: int

Stopover ¤

airport property ¤
airport: Airport
exists property ¤
exists: bool
full_distance property ¤
full_distance: float
find_by_efficiency staticmethod ¤
find_by_efficiency(
    origin: Airport,
    destination: Airport,
    aircraft: Aircraft,
    game_mode: GameMode,
) -> Stopover
to_dict ¤
to_dict() -> dict

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

ERR_DISTANCE_ABOVE_SPECIFIED class-attribute ¤
ERR_DISTANCE_ABOVE_SPECIFIED: Warning
ERR_DISTANCE_TOO_LONG class-attribute ¤
ERR_DISTANCE_TOO_LONG: Warning
ERR_DISTANCE_TOO_SHORT class-attribute ¤
ERR_DISTANCE_TOO_SHORT: Warning
ERR_FLIGHT_TIME_ABOVE_SPECIFIED class-attribute ¤
ERR_FLIGHT_TIME_ABOVE_SPECIFIED: Warning
ERR_INSUFFICIENT_DEMAND class-attribute ¤
ERR_INSUFFICIENT_DEMAND: Warning
ERR_NO_STOPOVER class-attribute ¤
ERR_NO_STOPOVER: Warning
ERR_RWY_TOO_SHORT class-attribute ¤
ERR_RWY_TOO_SHORT: Warning
ERR_TRIPS_PER_DAY_TOO_HIGH class-attribute ¤
ERR_TRIPS_PER_DAY_TOO_HIGH: Warning
REDUCED_CONTRIBUTION class-attribute ¤
REDUCED_CONTRIBUTION: Warning
name property ¤
name: str
value property ¤
value: int

calc_fuel staticmethod ¤

calc_fuel(
    ac: Aircraft,
    distance: float,
    user: User = am4.utils.game.User.Default(),
    ci: int = 200,
) -> float

create staticmethod ¤

create(
    ap0: Airport,
    ap1: Airport,
    ac: Aircraft,
    options: Options = AircraftRoute.Options(),
    user: User = am4.utils.game.User.Default(),
) -> AircraftRoute

estimate_load staticmethod ¤

estimate_load(
    reputation: float = 87,
    autoprice_ratio: float = 1.06,
    has_stopover: bool = False,
) -> float

to_dict ¤

to_dict() -> dict

Destination ¤

ac_route property ¤

ac_route: AircraftRoute

airport property ¤

airport: Airport

to_dict ¤

to_dict() -> dict

Route ¤

direct_distance property ¤

direct_distance: float

pax_demand property ¤

pax_demand: PaxDemand

valid property ¤

valid: bool

create staticmethod ¤

create(ap0: Airport, ap1: Airport) -> Route

to_dict ¤

to_dict() -> dict

RoutesSearch ¤

RoutesSearch(
    ap0: Airport,
    ac: Aircraft,
    options: Options = AircraftRoute.Options(),
    user: User = am4.utils.game.User.Default(),
)

_get_columns ¤

_get_columns(arg0: list[Destination]) -> dict[str, list]

get ¤

get() -> list[Destination]

SameOdException ¤

Bases: Exception