trestle.core.models.plans
trestle.core.models.plans
¤
Plan of action of a command.
Attributes¤
logger = logging.getLogger(__name__)
module-attribute
¤
Classes¤
Plan
¤
Plan of action of a command.
Source code in trestle/core/models/plans.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
|
Functions¤
__eq__(other)
¤
Check that two plans are equal.
Source code in trestle/core/models/plans.py
79 80 81 82 83 84 |
|
__init__()
¤
Initialize a plan.
Source code in trestle/core/models/plans.py
27 28 29 |
|
__str__()
¤
Print the plan.
Source code in trestle/core/models/plans.py
34 35 36 37 38 39 40 41 42 43 |
|
add_action(action)
¤
Add a new action.
Source code in trestle/core/models/plans.py
49 50 51 |
|
add_actions(actions)
¤
Add actions in order.
Source code in trestle/core/models/plans.py
53 54 55 |
|
clear_actions()
¤
Clear all actions.
Source code in trestle/core/models/plans.py
57 58 59 |
|
execute()
¤
Execute the actions in the plan.
Source code in trestle/core/models/plans.py
61 62 63 64 65 66 67 68 69 |
|
get_actions()
¤
Get all actions.
Source code in trestle/core/models/plans.py
45 46 47 |
|
rollback()
¤
Rollback the actions in the plan.
Source code in trestle/core/models/plans.py
71 72 73 74 75 76 77 |
|
handler: python