Market

class passengersim.core.Market

Bases: object

Market objects

Methods

__init__(*args, **kwargs)

add_demand

Add a demand to the market

add_offer

Add an Offer to the demand.

get_carrier_share

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

set_carrier_share

Set the market share for the specified carrier

set_competitor_price

Set the price for the specified carrier

Attributes

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

identifier

Unique identifier

orig

Origin Airport code

paths

Iterator over Path objects in this Market

revenue

Total revenue, is reset after each sample

sold

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_carrier_share()

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_carrier_share()

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