C# Class TheAirline.Models.Airlines.Airline

Inheritance: BaseModel
Datei anzeigen Open project: TheAirlineProject/tap-desktop Class Usage Examples

Private Properties

Property Type Description
CreateStandardAdvertisement void
GetDeliveredFleet List
GetRoutes List

Public Methods

Method Description
AddAirlinePolicy ( AirlinePolicy policy ) : void
AddAirliner ( FleetAirliner airliner ) : void
AddAirliner ( FleetAirliner type, Airliner airliner, Airport homeBase ) : void
AddAirport ( Airport airport ) : void
AddAlliance ( Alliance alliance ) : void
AddCodeshareAgreement ( CodeshareAgreement share ) : void
AddFacility ( AirlineFacility facility ) : void
AddFlightSchool ( FlightSchool school ) : void
AddInsurance ( AirlineInsurance insurance ) : void
AddInvoice ( Invoice invoice, bool updateMoney = true ) : void
AddLoan ( Loan loan ) : void
AddPilot ( Pilot pilot ) : void
AddRoute ( Route route ) : void
AddSubsidiaryAirline ( SubsidiaryAirline subsidiary ) : void
Airline ( AirlineProfile profile, AirlineMentality mentality, AirlineFocus marketFocus, AirlineLicense license, Route routeFocus ) : System
GetAirlineAdvertisement ( AdvertisementType type ) : AdvertisementType
GetAirlineAdvertisements ( ) : List
GetAirlinePolicy ( string name ) : AirlinePolicy
GetAirlineValue ( ) : AirlineValue
GetAverageFleetAge ( ) : double
GetAvgFleetValue ( ) : long
GetCodesharingAirlines ( ) : List
GetFleetSize ( ) : double
GetFleetValue ( ) : long
GetFlightCodes ( ) : List
GetHubs ( ) : List
GetInvoices ( ) : Invoices
GetInvoicesAmount ( System.DateTime startTime, System.DateTime endTime, Invoice type ) : double
GetInvoicesAmountMonth ( int year, int month, Invoice type ) : double
GetInvoicesAmountYear ( int year, Invoice type ) : double
GetNextFlightCode ( int n ) : string
GetNumberOfEmployees ( ) : int
GetObjectData ( SerializationInfo info, StreamingContext context ) : void
GetProfit ( ) : double
GetReputation ( ) : AirlineValue
GetValue ( ) : long
HasAirplaneOnRouteTo ( Airport airport ) : bool
HasRouteTo ( Airport airport ) : bool
IsSubsidiaryAirline ( ) : bool
RemoveAirliner ( FleetAirliner airliner ) : void
RemoveAirport ( Airport airport ) : void
RemoveAlliance ( Alliance alliance ) : void
RemoveCodeshareAgreement ( CodeshareAgreement share ) : void
RemoveFacility ( AirlineFacility facility ) : void
RemoveFlightSchool ( FlightSchool school ) : void
RemoveInsurance ( AirlineInsurance insurance ) : void
RemoveLoan ( Loan loan ) : void
RemovePilot ( Pilot pilot ) : void
RemoveRoute ( Route route ) : void
RemoveSubsidiaryAirline ( SubsidiaryAirline subsidiary ) : void
SetAirlineAdvertisement ( AdvertisementType type ) : void
SetAirlinePolicy ( string name, object value ) : void
SetInvoice ( Invoice invoice ) : void
SetInvoice ( Invoice type, int year, int month, int day, double amount ) : void
StoreBudget ( AirlineBudget budget ) : void
isHuman ( ) : bool

Protected Methods

Method Description
Airline ( SerializationInfo info, StreamingContext ctxt ) : System

Private Methods

Method Description
CreateStandardAdvertisement ( ) : void
GetDeliveredFleet ( ) : List
GetRoutes ( ) : List

Method Details

AddAirlinePolicy() public method

public AddAirlinePolicy ( AirlinePolicy policy ) : void
policy AirlinePolicy
return void

AddAirliner() public method

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

AddAirliner() public method

public AddAirliner ( FleetAirliner type, Airliner airliner, Airport homeBase ) : void
type TheAirline.Models.Airliners.FleetAirliner
airliner TheAirline.Models.Airliners.Airliner
homeBase TheAirline.Models.Airports.Airport
return void

AddAirport() public method

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

AddAlliance() public method

public AddAlliance ( Alliance alliance ) : void
alliance Alliance
return void

AddCodeshareAgreement() public method

public AddCodeshareAgreement ( CodeshareAgreement share ) : void
share CodeshareAgreement
return void

AddFacility() public method

public AddFacility ( AirlineFacility facility ) : void
facility AirlineFacility
return void

AddFlightSchool() public method

public AddFlightSchool ( FlightSchool school ) : void
school TheAirline.Models.Pilots.FlightSchool
return void

AddInsurance() public method

public AddInsurance ( AirlineInsurance insurance ) : void
insurance AirlineInsurance
return void

AddInvoice() public method

public AddInvoice ( Invoice invoice, bool updateMoney = true ) : void
invoice TheAirline.Models.General.Finances.Invoice
updateMoney bool
return void

AddLoan() public method

public AddLoan ( Loan loan ) : void
loan TheAirline.Models.General.Loan
return void

AddPilot() public method

public AddPilot ( Pilot pilot ) : void
pilot TheAirline.Models.Pilots.Pilot
return void

AddRoute() public method

public AddRoute ( Route route ) : void
route TheAirline.Models.Routes.Route
return void

AddSubsidiaryAirline() public method

public AddSubsidiaryAirline ( SubsidiaryAirline subsidiary ) : void
subsidiary TheAirline.Models.Airlines.Subsidiary.SubsidiaryAirline
return void

Airline() public method

public Airline ( AirlineProfile profile, AirlineMentality mentality, AirlineFocus marketFocus, AirlineLicense license, Route routeFocus ) : System
profile AirlineProfile
mentality AirlineMentality
marketFocus AirlineFocus
license AirlineLicense
routeFocus TheAirline.Models.Routes.Route
return System

Airline() protected method

protected Airline ( SerializationInfo info, StreamingContext ctxt ) : System
info System.Runtime.Serialization.SerializationInfo
ctxt System.Runtime.Serialization.StreamingContext
return System

GetAirlineAdvertisement() public method

public GetAirlineAdvertisement ( AdvertisementType type ) : AdvertisementType
type AdvertisementType
return AdvertisementType

GetAirlineAdvertisements() public method

public GetAirlineAdvertisements ( ) : List
return List

GetAirlinePolicy() public method

public GetAirlinePolicy ( string name ) : AirlinePolicy
name string
return AirlinePolicy

GetAirlineValue() public method

public GetAirlineValue ( ) : AirlineValue
return AirlineValue

GetAverageFleetAge() public method

public GetAverageFleetAge ( ) : double
return double

GetAvgFleetValue() public method

public GetAvgFleetValue ( ) : long
return long

GetCodesharingAirlines() public method

public GetCodesharingAirlines ( ) : List
return List

GetFleetSize() public method

public GetFleetSize ( ) : double
return double

GetFleetValue() public method

public GetFleetValue ( ) : long
return long

GetFlightCodes() public method

public GetFlightCodes ( ) : List
return List

GetHubs() public method

public GetHubs ( ) : List
return List

GetInvoices() public method

public GetInvoices ( ) : Invoices
return TheAirline.Models.General.Finances.Invoices

GetInvoicesAmount() public method

public GetInvoicesAmount ( System.DateTime startTime, System.DateTime endTime, Invoice type ) : double
startTime System.DateTime
endTime System.DateTime
type TheAirline.Models.General.Finances.Invoice
return double

GetInvoicesAmountMonth() public method

public GetInvoicesAmountMonth ( int year, int month, Invoice type ) : double
year int
month int
type TheAirline.Models.General.Finances.Invoice
return double

GetInvoicesAmountYear() public method

public GetInvoicesAmountYear ( int year, Invoice type ) : double
year int
type TheAirline.Models.General.Finances.Invoice
return double

GetNextFlightCode() public method

public GetNextFlightCode ( int n ) : string
n int
return string

GetNumberOfEmployees() public method

public GetNumberOfEmployees ( ) : int
return int

GetObjectData() public method

public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return void

GetProfit() public method

public GetProfit ( ) : double
return double

GetReputation() public method

public GetReputation ( ) : AirlineValue
return AirlineValue

GetValue() public method

public GetValue ( ) : long
return long

HasAirplaneOnRouteTo() public method

public HasAirplaneOnRouteTo ( Airport airport ) : bool
airport TheAirline.Models.Airports.Airport
return bool

HasRouteTo() public method

public HasRouteTo ( Airport airport ) : bool
airport TheAirline.Models.Airports.Airport
return bool

IsSubsidiaryAirline() public method

public IsSubsidiaryAirline ( ) : bool
return bool

RemoveAirliner() public method

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

RemoveAirport() public method

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

RemoveAlliance() public method

public RemoveAlliance ( Alliance alliance ) : void
alliance Alliance
return void

RemoveCodeshareAgreement() public method

public RemoveCodeshareAgreement ( CodeshareAgreement share ) : void
share CodeshareAgreement
return void

RemoveFacility() public method

public RemoveFacility ( AirlineFacility facility ) : void
facility AirlineFacility
return void

RemoveFlightSchool() public method

public RemoveFlightSchool ( FlightSchool school ) : void
school TheAirline.Models.Pilots.FlightSchool
return void

RemoveInsurance() public method

public RemoveInsurance ( AirlineInsurance insurance ) : void
insurance AirlineInsurance
return void

RemoveLoan() public method

public RemoveLoan ( Loan loan ) : void
loan TheAirline.Models.General.Loan
return void

RemovePilot() public method

public RemovePilot ( Pilot pilot ) : void
pilot TheAirline.Models.Pilots.Pilot
return void

RemoveRoute() public method

public RemoveRoute ( Route route ) : void
route TheAirline.Models.Routes.Route
return void

RemoveSubsidiaryAirline() public method

public RemoveSubsidiaryAirline ( SubsidiaryAirline subsidiary ) : void
subsidiary TheAirline.Models.Airlines.Subsidiary.SubsidiaryAirline
return void

SetAirlineAdvertisement() public method

public SetAirlineAdvertisement ( AdvertisementType type ) : void
type AdvertisementType
return void

SetAirlinePolicy() public method

public SetAirlinePolicy ( string name, object value ) : void
name string
value object
return void

SetInvoice() public method

public SetInvoice ( Invoice invoice ) : void
invoice TheAirline.Models.General.Finances.Invoice
return void

SetInvoice() public method

public SetInvoice ( Invoice type, int year, int month, int day, double amount ) : void
type TheAirline.Models.General.Finances.Invoice
year int
month int
day int
amount double
return void

StoreBudget() public method

public StoreBudget ( AirlineBudget budget ) : void
budget AirlineBudget
return void

isHuman() public method

public isHuman ( ) : bool
return bool