-
Notifications
You must be signed in to change notification settings - Fork 73
Functions
Bohaska edited this page Aug 21, 2022
·
2 revisions
This is a list of all of the functions in the code used in AC. This is a WIP list.
Computes standard/default price of a route when given a Link class object and the flight class (Y/J/F)
- link
Type: Link
A Link class object. The formula uses distance and flight type defined in it.
- LinkClass
Type: LinkClass
The class of pax to use for calculation. Possible values: "ECONOMY", "BUSINESS", "FIRST".
- distance
Type: int
The distance of the route in kilometers.
- flightType
Type: FlightType
The type of flight, whether it is a short haul, medium haul or long haul, and whether it is a domestic, international or intercontinental flight.
- linkClass
Type: linkClass
The class of pax to use for calculation. Possible values: "ECONOMY", "BUSINESS", "FIRST".
Type: int
Default/standard price of the route.