Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wingspan testbranch #260

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
17 changes: 8 additions & 9 deletions airline-data/src/main/scala/com/patson/model/Airport.scala
Original file line number Diff line number Diff line change
Expand Up @@ -394,15 +394,14 @@ case class Airport(iata : String, icao : String, name : String, latitude : Doubl
case _ => 500 //mega airports - not suitable for tiny jets
}

import Model.Type._
val multipler = airplaneModel.airplaneType match {
case LIGHT => 1
case REGIONAL => 1
case SMALL => 3
case MEDIUM => 8
case LARGE => 12
case X_LARGE => 15
case JUMBO => 18
import Model.IcaoClass._
val multipler = airplaneModel.airplaneClass match {
case CLASS_A => 1
case CLASS_B => 1
case CLASS_C => 3
case CLASS_D => 8
case CLASS_E => 12
case CLASS_F => 18
}

//apply discount if it's a base
Expand Down
Loading