C# Class TheAirline.Models.Routes.Route

Inheritance: BaseModel
Mostrar archivo Open project: TheAirlineProject/tap-desktop Class Usage Examples

Private Properties

Property Type Description
GetBalance double

Public Methods

Method Description
AddRouteInvoice ( Invoice invoice ) : void
AddStopover ( StopoverRoute stopover ) : void
ClearRouteStats ( ) : void
ContainsDestination ( Airport destination ) : bool
GetAirliners ( ) : List
GetBalance ( DateTime startTime, DateTime endTime ) : double
GetCurrentAirliner ( ) : FleetAirliner
GetDestinations ( ) : List
GetDistance ( ) : double
GetFillingDegree ( ) : double
GetFlightTime ( AirlinerType type ) : TimeSpan
GetInvoices ( ) : Invoices
GetObjectData ( SerializationInfo info, StreamingContext context ) : void
GetRouteInvoiceAmount ( Invoice type ) : double
GetRouteInvoiceAmount ( Invoice type, DateTime startTime, DateTime endTime ) : double
GetRouteInvoiceTypes ( ) : List
RemoveStopover ( Airport stopover ) : void
SetRouteInvoice ( Invoice type, int year, int month, int day, double amount ) : void

Protected Methods

Method Description
Route ( RouteType type, string id, Airport destination1, Airport destination2, DateTime startDate ) : System
Route ( SerializationInfo info, StreamingContext ctxt ) : System

Private Methods

Method Description
GetBalance ( ) : double

Method Details

AddRouteInvoice() public method

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

AddStopover() public method

public AddStopover ( StopoverRoute stopover ) : void
stopover StopoverRoute
return void

ClearRouteStats() public method

public ClearRouteStats ( ) : void
return void

ContainsDestination() public method

public ContainsDestination ( Airport destination ) : bool
destination TheAirline.Models.Airports.Airport
return bool

GetAirliners() public method

public GetAirliners ( ) : List
return List

GetBalance() public method

public GetBalance ( DateTime startTime, DateTime endTime ) : double
startTime DateTime
endTime DateTime
return double

GetCurrentAirliner() public method

public GetCurrentAirliner ( ) : FleetAirliner
return FleetAirliner

GetDestinations() public method

public GetDestinations ( ) : List
return List

GetDistance() public method

public GetDistance ( ) : double
return double

GetFillingDegree() public abstract method

public abstract GetFillingDegree ( ) : double
return double

GetFlightTime() public method

public GetFlightTime ( AirlinerType type ) : TimeSpan
type AirlinerType
return TimeSpan

GetInvoices() public method

public GetInvoices ( ) : Invoices
return Invoices

GetObjectData() public method

public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info SerializationInfo
context StreamingContext
return void

GetRouteInvoiceAmount() public method

public GetRouteInvoiceAmount ( Invoice type ) : double
type Invoice
return double

GetRouteInvoiceAmount() public method

public GetRouteInvoiceAmount ( Invoice type, DateTime startTime, DateTime endTime ) : double
type Invoice
startTime DateTime
endTime DateTime
return double

GetRouteInvoiceTypes() public method

public GetRouteInvoiceTypes ( ) : List
return List

RemoveStopover() public method

public RemoveStopover ( Airport stopover ) : void
stopover Airport
return void

Route() protected method

protected Route ( RouteType type, string id, Airport destination1, Airport destination2, DateTime startDate ) : System
type RouteType
id string
destination1 Airport
destination2 Airport
startDate DateTime
return System

Route() protected method

protected Route ( SerializationInfo info, StreamingContext ctxt ) : System
info SerializationInfo
ctxt StreamingContext
return System

SetRouteInvoice() public method

public SetRouteInvoice ( Invoice type, int year, int month, int day, double amount ) : void
type Invoice
year int
month int
day int
amount double
return void