RM Systems
RmSystem
Bases: Named
Source code in passengersim/config/rm_systems.py
availability_control
class-attribute
instance-attribute
availability_control: Literal[
"infer",
"leg",
"cabin",
"theft",
"bp",
"bp_loose",
"vn",
"classless",
"none",
] = "infer"
Fare class availability algorithm for carriers using this RmSystem.
The default value will infer the appropriate control based on the steps in the DCP process (This is pending implementation).
Allowed values include: - "leg" (default): Uses leg-based controls. - "bp": Bid price controls with strict resolution (fare must be strictly greater than bid price). - "bp_loose": Bid price controls with non-strict resolution (fare must be greater than or equal to bid price). - "vn": Virtual nesting. - "none": No controls.
description
class-attribute
instance-attribute
Description of the RM system.
The description is optional and can be used to summarize the RM system. It has no effect on the actual operation of the RM system.
frat5
class-attribute
instance-attribute
Default Frat5 curve to use for the carrier if not otherwise defined.
Some RM systems strictly require a Frat5 curve to be defined for every
carrier and market. This attribute allows the user to define a default
Frat5 curve to be used as the global default by any carrier assigned this
RM system. If a carrier defines its own global frat5 then that value will
override this default. If this attribute is set to None, then the RM system
does not define a default Frat5 curve, and the carrier must define its own
frat5 attribute if necessary. Some RM systems do not require a Frat5 curve
to be defined, in which case this attribute can be left as None without
affecting the operation of the RM system.