C# Class TheAirline.Helpers.PassengerHelpers

Exibir arquivo Open project: TheAirlineProject/tap-desktop

Public Methods

Method 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

Method 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 method

public static AddPassengerHappiness ( Airline airline ) : void
airline TheAirline.Models.Airlines.Airline
return void

ChangePaxDemand() public static method

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

ChangePaxDemand() public static method

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

ChangePaxDemand() public static method

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

ChangePaxDemand() public static method

public static ChangePaxDemand ( List airports, double factor ) : void
airports List
factor double
return void

ChangePaxDemand() public static method

public static ChangePaxDemand ( double factor ) : void
factor double
return void

CreateAirlineDestinationDemand() public static method

public static CreateAirlineDestinationDemand ( ) : void
return void

CreateDestinationCargo() public static method

public static CreateDestinationCargo ( Airport airport, Airport dAirport ) : void
airport TheAirline.Models.Airports.Airport
dAirport TheAirline.Models.Airports.Airport
return void

CreateDestinationDemand() public static method

public static CreateDestinationDemand ( ) : void
return void

CreateDestinationPassengers() public static method

public static CreateDestinationPassengers ( Airport airport ) : void
airport TheAirline.Models.Airports.Airport
return void

CreateDestinationPassengers() public static method

public static CreateDestinationPassengers ( Airport airport, Airport dAirport ) : void
airport TheAirline.Models.Airports.Airport
dAirport TheAirline.Models.Airports.Airport
return void

GetCargoPrice() public static method

public static GetCargoPrice ( Airport dest1, Airport dest2 ) : double
dest1 TheAirline.Models.Airports.Airport
dest2 TheAirline.Models.Airports.Airport
return double

GetFlightCargo() public static method

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
return double

GetFlightCargo() public static method

public static GetFlightCargo ( FleetAirliner airliner ) : double
airliner TheAirline.Models.Airliners.FleetAirliner
return double

GetFlightPassengers() public static method

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
return int

GetFlightPassengers() public static method

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

GetHappinessValue() public static method

public static GetHappinessValue ( Airline airline ) : double
airline TheAirline.Models.Airlines.Airline
return double

GetPassengerPrice() public static method

public static GetPassengerPrice ( Airport dest1, Airport dest2 ) : double
dest1 TheAirline.Models.Airports.Airport
dest2 TheAirline.Models.Airports.Airport
return double

GetPassengerPrice() public static method

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
return double

GetPassengersHappiness() public static method

public static GetPassengersHappiness ( Airline airline ) : double
airline TheAirline.Models.Airlines.Airline
return double

GetStopoverFlightCargo() public static method

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
return double

GetStopoverFlightPassengers() public static method

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

GetStopoverFlightPassengers() public static method

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
return int

SetCargoSize() public static method

public static SetCargoSize ( ) : void
return void

SetPassengerHappiness() public static method

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