C# Class TheAirline.Helpers.FleetAirlinerHelpers

Exibir arquivo Open project: TheAirlineProject/tap-desktop

Public Methods

Method Description
ClearAirlinerStatistics ( ) : void
ConvertPassengerToCargoAirliner ( FleetAirliner airliner ) : void
CreateStopoverRoute ( Airport dest1, Airport stopover, Airport dest2, Route mainroute, bool oneLegged, Route type ) : StopoverRoute
CreateStopoverRoute ( Route route, Airport stopover1, Airport stopover2 = null ) : void
DoMaintenance ( FleetAirliner airliner ) : void
GetAirlinerAgeDelay ( FleetAirliner airliner ) : int
GetAirlinerWeatherDelay ( FleetAirliner airliner ) : int
GetCruisingSpeed ( FleetAirliner airliner ) : int
GetDelayedMinutes ( FleetAirliner airliner ) : int>.KeyValuePair
GetFuelExpenses ( FleetAirliner airliner, double distance ) : double
GetMinTimeBetweenFlights ( AirlinerType type ) : System.TimeSpan
GetMinTimeBetweenFlights ( FleetAirliner airliner ) : System.TimeSpan
RestoreMaintRoutes ( FleetAirliner airliner ) : void
SetFlightStats ( FleetAirliner airliner ) : void
SetMaintenanceIntervals ( FleetAirliner airliner, int a, int b ) : void
SetMaintenanceIntervals ( FleetAirliner airliner, int a, int b, int c ) : void
SetMaintenanceIntervals ( FleetAirliner airliner, int a, int b, int c, int d ) : void

Private Methods

Method Description
GetMinTimeBetweenFlights ( int passengers ) : System.TimeSpan
GetWindInfluence ( FleetAirliner airliner, Weather currentWeather ) : int

Method Details

ClearAirlinerStatistics() public static method

public static ClearAirlinerStatistics ( ) : void
return void

ConvertPassengerToCargoAirliner() public static method

public static ConvertPassengerToCargoAirliner ( FleetAirliner airliner ) : void
airliner TheAirline.Models.Airliners.FleetAirliner
return void

CreateStopoverRoute() public static method

public static CreateStopoverRoute ( Airport dest1, Airport stopover, Airport dest2, Route mainroute, bool oneLegged, Route type ) : StopoverRoute
dest1 TheAirline.Models.Airports.Airport
stopover TheAirline.Models.Airports.Airport
dest2 TheAirline.Models.Airports.Airport
mainroute TheAirline.Models.Routes.Route
oneLegged bool
type TheAirline.Models.Routes.Route
return TheAirline.Models.Routes.StopoverRoute

CreateStopoverRoute() public static method

public static CreateStopoverRoute ( Route route, Airport stopover1, Airport stopover2 = null ) : void
route TheAirline.Models.Routes.Route
stopover1 TheAirline.Models.Airports.Airport
stopover2 TheAirline.Models.Airports.Airport
return void

DoMaintenance() public static method

public static DoMaintenance ( FleetAirliner airliner ) : void
airliner TheAirline.Models.Airliners.FleetAirliner
return void

GetAirlinerAgeDelay() public static method

public static GetAirlinerAgeDelay ( FleetAirliner airliner ) : int
airliner TheAirline.Models.Airliners.FleetAirliner
return int

GetAirlinerWeatherDelay() public static method

public static GetAirlinerWeatherDelay ( FleetAirliner airliner ) : int
airliner TheAirline.Models.Airliners.FleetAirliner
return int

GetCruisingSpeed() public static method

public static GetCruisingSpeed ( FleetAirliner airliner ) : int
airliner TheAirline.Models.Airliners.FleetAirliner
return int

GetDelayedMinutes() public static method

public static GetDelayedMinutes ( FleetAirliner airliner ) : int>.KeyValuePair
airliner TheAirline.Models.Airliners.FleetAirliner
return int>.KeyValuePair

GetFuelExpenses() public static method

public static GetFuelExpenses ( FleetAirliner airliner, double distance ) : double
airliner TheAirline.Models.Airliners.FleetAirliner
distance double
return double

GetMinTimeBetweenFlights() public static method

public static GetMinTimeBetweenFlights ( AirlinerType type ) : System.TimeSpan
type TheAirline.Models.Airliners.AirlinerType
return System.TimeSpan

GetMinTimeBetweenFlights() public static method

public static GetMinTimeBetweenFlights ( FleetAirliner airliner ) : System.TimeSpan
airliner TheAirline.Models.Airliners.FleetAirliner
return System.TimeSpan

RestoreMaintRoutes() public static method

public static RestoreMaintRoutes ( FleetAirliner airliner ) : void
airliner TheAirline.Models.Airliners.FleetAirliner
return void

SetFlightStats() public static method

public static SetFlightStats ( FleetAirliner airliner ) : void
airliner TheAirline.Models.Airliners.FleetAirliner
return void

SetMaintenanceIntervals() public static method

public static SetMaintenanceIntervals ( FleetAirliner airliner, int a, int b ) : void
airliner TheAirline.Models.Airliners.FleetAirliner
a int
b int
return void

SetMaintenanceIntervals() public static method

public static SetMaintenanceIntervals ( FleetAirliner airliner, int a, int b, int c ) : void
airliner TheAirline.Models.Airliners.FleetAirliner
a int
b int
c int
return void

SetMaintenanceIntervals() public static method

public static SetMaintenanceIntervals ( FleetAirliner airliner, int a, int b, int c, int d ) : void
airliner TheAirline.Models.Airliners.FleetAirliner
a int
b int
c int
d int
return void