Skip to content
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.

computeStandardPrice

Computes standard/default price of a route when given a Link class object and the flight class (Y/J/F)

Parameters

computeStandardPrice(link, linkClass)

  • 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".

computeStandardPrice(distance, flightType, linkClass)

  • 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".

Output

Type: int

Default/standard price of the route.

Files

Defined in

Pricing.scala

Used in