C# Class TheAirline.Helpers.PassengerHelpers

Afficher le fichier Open project: TheAirlineProject/tap-desktop

Méthodes publiques

Méthode Description
AddPassengerHappiness ( Airline airline ) : void
ChangePaxDemand ( Airline airline, double factor ) : void
ChangePaxDemand ( Airport airport1, Airport airport2, int value ) : void
ChangePaxDemand ( Airport airport, double factor ) : void
ChangePaxDemand ( List airports, double factor ) : void
ChangePaxDemand ( double factor ) : void
CreateAirlineDestinationDemand ( ) : void
CreateDestinationCargo ( Airport airport, Airport dAirport ) : void
CreateDestinationDemand ( ) : void
CreateDestinationPassengers ( Airport airport ) : void
CreateDestinationPassengers ( Airport airport, Airport dAirport ) : void
GetCargoPrice ( Airport dest1, Airport dest2 ) : double
GetFlightCargo ( Airport airportCurrent, Airport airportDestination, FleetAirliner airliner ) : double
GetFlightCargo ( FleetAirliner airliner ) : double
GetFlightPassengers ( Airport airportCurrent, Airport airportDestination, FleetAirliner airliner, AirlinerClass type ) : int
GetFlightPassengers ( FleetAirliner airliner, AirlinerClass type ) : int
GetHappinessValue ( Airline airline ) : double
GetPassengerPrice ( Airport dest1, Airport dest2 ) : double
GetPassengerPrice ( Airport dest1, Airport dest2, AirlinerClass type ) : double
GetPassengersHappiness ( Airline airline ) : double
GetStopoverFlightCargo ( FleetAirliner airliner, Airport dept, Airport dest, List routes, bool isInbound ) : double
GetStopoverFlightPassengers ( FleetAirliner airliner, AirlinerClass type ) : int
GetStopoverFlightPassengers ( FleetAirliner airliner, AirlinerClass type, Airport dept, Airport dest, List routes, bool isInbound ) : int
SetCargoSize ( ) : void
SetPassengerHappiness ( Airline airline, double value ) : void

Private Methods

Méthode Description
CreateDestinationPassengers ( Airport airport, List subAirports ) : void
GetAirportCargoMass ( Airport airport ) : double
GetDemandYearFactor ( int year ) : double
GetFlightConnectionPassengers ( Airport airportCurrent, Airport airportDestination, FleetAirliner airliner, AirlinerClass type ) : double
GetHolidayFactor ( Airport airport ) : double
GetNearbyPassengerDemand ( Airport airportCurrent, Airport airportDestination, FleetAirliner airliner, AirlinerClass type ) : double
GetRandomDestination ( Airport currentAirport ) : Airport
GetSeasonFactor ( Airport airport ) : double

Method Details

AddPassengerHappiness() public static méthode

public static AddPassengerHappiness ( Airline airline ) : void
airline TheAirline.Models.Airlines.Airline
Résultat void

ChangePaxDemand() public static méthode

public static ChangePaxDemand ( Airline airline, double factor ) : void
airline TheAirline.Models.Airlines.Airline
factor double
Résultat void

ChangePaxDemand() public static méthode

public static ChangePaxDemand ( Airport airport1, Airport airport2, int value ) : void
airport1 TheAirline.Models.Airports.Airport
airport2 TheAirline.Models.Airports.Airport
value int
Résultat void

ChangePaxDemand() public static méthode

public static ChangePaxDemand ( Airport airport, double factor ) : void
airport TheAirline.Models.Airports.Airport
factor double
Résultat void

ChangePaxDemand() public static méthode

public static ChangePaxDemand ( List airports, double factor ) : void
airports List
factor double
Résultat void

ChangePaxDemand() public static méthode

public static ChangePaxDemand ( double factor ) : void
factor double
Résultat void

CreateAirlineDestinationDemand() public static méthode

public static CreateAirlineDestinationDemand ( ) : void
Résultat void

CreateDestinationCargo() public static méthode

public static CreateDestinationCargo ( Airport airport, Airport dAirport ) : void
airport TheAirline.Models.Airports.Airport
dAirport TheAirline.Models.Airports.Airport
Résultat void

CreateDestinationDemand() public static méthode

public static CreateDestinationDemand ( ) : void
Résultat void

CreateDestinationPassengers() public static méthode

public static CreateDestinationPassengers ( Airport airport ) : void
airport TheAirline.Models.Airports.Airport
Résultat void

CreateDestinationPassengers() public static méthode

public static CreateDestinationPassengers ( Airport airport, Airport dAirport ) : void
airport TheAirline.Models.Airports.Airport
dAirport TheAirline.Models.Airports.Airport
Résultat void

GetCargoPrice() public static méthode

public static GetCargoPrice ( Airport dest1, Airport dest2 ) : double
dest1 TheAirline.Models.Airports.Airport
dest2 TheAirline.Models.Airports.Airport
Résultat double

GetFlightCargo() public static méthode

public static GetFlightCargo ( Airport airportCurrent, Airport airportDestination, FleetAirliner airliner ) : double
airportCurrent TheAirline.Models.Airports.Airport
airportDestination TheAirline.Models.Airports.Airport
airliner TheAirline.Models.Airliners.FleetAirliner
Résultat double

GetFlightCargo() public static méthode

public static GetFlightCargo ( FleetAirliner airliner ) : double
airliner TheAirline.Models.Airliners.FleetAirliner
Résultat double

GetFlightPassengers() public static méthode

public static GetFlightPassengers ( Airport airportCurrent, Airport airportDestination, FleetAirliner airliner, AirlinerClass type ) : int
airportCurrent TheAirline.Models.Airports.Airport
airportDestination TheAirline.Models.Airports.Airport
airliner TheAirline.Models.Airliners.FleetAirliner
type TheAirline.Models.Airliners.AirlinerClass
Résultat int

GetFlightPassengers() public static méthode

public static GetFlightPassengers ( FleetAirliner airliner, AirlinerClass type ) : int
airliner TheAirline.Models.Airliners.FleetAirliner
type TheAirline.Models.Airliners.AirlinerClass
Résultat int

GetHappinessValue() public static méthode

public static GetHappinessValue ( Airline airline ) : double
airline TheAirline.Models.Airlines.Airline
Résultat double

GetPassengerPrice() public static méthode

public static GetPassengerPrice ( Airport dest1, Airport dest2 ) : double
dest1 TheAirline.Models.Airports.Airport
dest2 TheAirline.Models.Airports.Airport
Résultat double

GetPassengerPrice() public static méthode

public static GetPassengerPrice ( Airport dest1, Airport dest2, AirlinerClass type ) : double
dest1 TheAirline.Models.Airports.Airport
dest2 TheAirline.Models.Airports.Airport
type TheAirline.Models.Airliners.AirlinerClass
Résultat double

GetPassengersHappiness() public static méthode

public static GetPassengersHappiness ( Airline airline ) : double
airline TheAirline.Models.Airlines.Airline
Résultat double

GetStopoverFlightCargo() public static méthode

public static GetStopoverFlightCargo ( FleetAirliner airliner, Airport dept, Airport dest, List routes, bool isInbound ) : double
airliner TheAirline.Models.Airliners.FleetAirliner
dept TheAirline.Models.Airports.Airport
dest TheAirline.Models.Airports.Airport
routes List
isInbound bool
Résultat double

GetStopoverFlightPassengers() public static méthode

public static GetStopoverFlightPassengers ( FleetAirliner airliner, AirlinerClass type ) : int
airliner TheAirline.Models.Airliners.FleetAirliner
type TheAirline.Models.Airliners.AirlinerClass
Résultat int

GetStopoverFlightPassengers() public static méthode

public static GetStopoverFlightPassengers ( FleetAirliner airliner, AirlinerClass type, Airport dept, Airport dest, List routes, bool isInbound ) : int
airliner TheAirline.Models.Airliners.FleetAirliner
type TheAirline.Models.Airliners.AirlinerClass
dept TheAirline.Models.Airports.Airport
dest TheAirline.Models.Airports.Airport
routes List
isInbound bool
Résultat int

SetCargoSize() public static méthode

public static SetCargoSize ( ) : void
Résultat void

SetPassengerHappiness() public static méthode

public static SetPassengerHappiness ( Airline airline, double value ) : void
airline TheAirline.Models.Airlines.Airline
value double
Résultat void