Skip to content

Path Class

adjusted_fare_price instance-attribute

adjusted_fare_price: tuple[float]

Adjusted fare by DCP.

This will be an empty tuple if fare adjustment is not being computed.

booking_class instance-attribute

booking_class: str

decision_fare instance-attribute

decision_fare: float

fare instance-attribute

fare: Fare | None

fcst_mean instance-attribute

fcst_mean: float

fcst_std_dev instance-attribute

fcst_std_dev: float

forecast instance-attribute

forecast: Forecast

Forecast of total demand.

If hybrid forecasting is in use, this forecast includes both priceable and yieldable demand.

gt_revenue instance-attribute

gt_revenue: float

gt_sold instance-attribute

gt_sold: int

gt_sold_priceable instance-attribute

gt_sold_priceable: int

identifier instance-attribute

identifier: str

path_id instance-attribute

path_id: int

q_forecast instance-attribute

q_forecast: Forecast

Forecast of the class allocation of Q-equivalent priceable demand.

The forecasting for Q-equivalent priceable demand is handled at the Path level, and this attribute is used to store the allocated portion of that forecast for this pathclass.

sold instance-attribute

sold: int

sold_priceable instance-attribute

sold_priceable: int

y_forecast instance-attribute

y_forecast: Forecast

Forecast of yieldable demand.

If hybrid forecasting is not in use, this will be the same as forecast.

__init__

__init__(booking_class: Any, fare: Fare | None = None)

add_fare

add_fare(fare: Fare)

Add a Fare to the PathClass

This method is deprecated, use the fare attribute instead.

get_indexes

get_indexes(leg_number: int) -> None

Get a VN index for this PathClass.

set_indexes

set_indexes(leg_number: int, index: int) -> None

Set a VN index for this PathClass.