Market¶
- class passengersim.core.Market¶
Bases:
objectMarket objects
Methods
__init__(*args, **kwargs)Add a demand to the market
Add an Offer to the demand.
Get the market share for the specified carrier
Get the sold count for the specified carrier
Get the market share for the specified carrier
Set the market share for the specified carrier
Set the price for the specified carrier
Attributes
Iterator over Demand objects in this Market
Destination Airport code
Great Circle Distance of this market, usually in nautical miles
Iterator over Fare objects in this Market
Unique identifier
Origin Airport code
Iterator over Path objects in this Market
Total revenue, is reset after each sample
Total sold, is reset after each sample
- add_demand()¶
Add a demand to the market
- add_offer()¶
Add an Offer to the demand. UNIT TESTING
- demands¶
Iterator over Demand objects in this Market
- dest¶
Destination Airport code
- distance¶
Great Circle Distance of this market, usually in nautical miles
- fares¶
Iterator over Fare objects in this Market
Get the market share for the specified carrier
- get_carrier_sold()¶
Get the sold count for the specified carrier
- get_competitor_price()¶
Get the market share for the specified carrier
- identifier¶
Unique identifier
- orig¶
Origin Airport code
- paths¶
Iterator over Path objects in this Market
- revenue¶
Total revenue, is reset after each sample
Set the market share for the specified carrier
- set_competitor_price()¶
Set the price for the specified carrier
- sold¶
Total sold, is reset after each sample