UserAction

class passengersim.core.UserAction

Bases: object

UserAction program object

Methods

__init__(*args, **kwargs)

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)

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)