UserAction¶
- class passengersim.core.UserAction¶
Bases:
objectUserAction program object
Methods
__init__(*args, **kwargs)Add a threshold curve for booked load factor
Adjust forecasts for all Buckets on a Leg OR all PathClasses on a Path
Clear the user action for a single leg
Reset adjustments for all Buckets on a Leg OR all PathClasses on a Path
Path adjustment for all paths using the given carrier
Return the threshold curve data as a dictionary
Initialize the user adjustment for use in this simulation.
Run for a single leg
Test for a single leg (doesn't take any actions)
- add_curve()¶
Add a threshold curve for booked load factor
- adjust_path()¶
Adjust forecasts for all Buckets on a Leg OR all PathClasses on a Path
- clear()¶
Clear the user action for a single leg
- clear_path()¶
Reset adjustments for all Buckets on a Leg OR all PathClasses on a Path
- do_all_paths()¶
Path adjustment for all paths using the given carrier
- get_curve_data()¶
Return the threshold curve data as a dictionary
- initialize()¶
Initialize the user adjustment for use in this simulation.
- run()¶
Run for a single leg
- test_leg()¶
Test for a single leg (doesn’t take any actions)