C# Class TheAirline.Helpers.AirlinerHelpers

Exibir arquivo Open project: TheAirlineProject/tap-desktop

Public Methods

Method Description
CreateAirlinerClasses ( Airliner airliner ) : void
CreateAirlinerFromYear ( int year ) : Airliner
CreateStartUpAirliners ( ) : void
GetAirlinerClassCode ( AirlinerClass aClass ) : string
GetAirlinerClasses ( AirlinerType type ) : List
GetCalculatedWeight ( AirlinerType type ) : double
GetCalculatedWeight ( double wingspan, double lenght, long fuel ) : double
GetCargoConvertingDays ( AirlinerPassengerType type ) : int
GetCargoConvertingPrice ( AirlinerPassengerType type ) : double
GetOrderDeliveryDate ( List orders ) : System.DateTime
GetPassengerCargoSize ( AirlinerPassengerType type ) : double
GetRandomAirliner ( Airline airline ) : FleetAirliner

Private Methods

Method Description
CreateAirliner ( double minRange ) : Airliner
CreateLeasingAirliner ( ) : Airliner

Method Details

CreateAirlinerClasses() public static method

public static CreateAirlinerClasses ( Airliner airliner ) : void
airliner TheAirline.Models.Airliners.Airliner
return void

CreateAirlinerFromYear() public static method

public static CreateAirlinerFromYear ( int year ) : Airliner
year int
return TheAirline.Models.Airliners.Airliner

CreateStartUpAirliners() public static method

public static CreateStartUpAirliners ( ) : void
return void

GetAirlinerClassCode() public static method

public static GetAirlinerClassCode ( AirlinerClass aClass ) : string
aClass TheAirline.Models.Airliners.AirlinerClass
return string

GetAirlinerClasses() public static method

public static GetAirlinerClasses ( AirlinerType type ) : List
type TheAirline.Models.Airliners.AirlinerType
return List

GetCalculatedWeight() public static method

public static GetCalculatedWeight ( AirlinerType type ) : double
type TheAirline.Models.Airliners.AirlinerType
return double

GetCalculatedWeight() public static method

public static GetCalculatedWeight ( double wingspan, double lenght, long fuel ) : double
wingspan double
lenght double
fuel long
return double

GetCargoConvertingDays() public static method

public static GetCargoConvertingDays ( AirlinerPassengerType type ) : int
type TheAirline.Models.Airliners.AirlinerPassengerType
return int

GetCargoConvertingPrice() public static method

public static GetCargoConvertingPrice ( AirlinerPassengerType type ) : double
type TheAirline.Models.Airliners.AirlinerPassengerType
return double

GetOrderDeliveryDate() public static method

public static GetOrderDeliveryDate ( List orders ) : System.DateTime
orders List
return System.DateTime

GetPassengerCargoSize() public static method

public static GetPassengerCargoSize ( AirlinerPassengerType type ) : double
type TheAirline.Models.Airliners.AirlinerPassengerType
return double

GetRandomAirliner() public static method

public static GetRandomAirliner ( Airline airline ) : FleetAirliner
airline TheAirline.Models.Airlines.Airline
return TheAirline.Models.Airliners.FleetAirliner