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
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 85 | |
Functions¤
__eq__(other) ¤
Check that two plans are equal.
Source code in trestle/core/models/plans.py
80 81 82 83 84 85 | |
__init__() ¤
Initialize a plan.
Source code in trestle/core/models/plans.py
28 29 30 | |
__str__() ¤
Print the plan.
Source code in trestle/core/models/plans.py
35 36 37 38 39 40 41 42 43 44 | |
add_action(action) ¤
Add a new action.
Source code in trestle/core/models/plans.py
50 51 52 | |
add_actions(actions) ¤
Add actions in order.
Source code in trestle/core/models/plans.py
54 55 56 | |
clear_actions() ¤
Clear all actions.
Source code in trestle/core/models/plans.py
58 59 60 | |
execute() ¤
Execute the actions in the plan.
Source code in trestle/core/models/plans.py
62 63 64 65 66 67 68 69 70 | |
get_actions() ¤
Get all actions.
Source code in trestle/core/models/plans.py
46 47 48 | |
rollback() ¤
Rollback the actions in the plan.
Source code in trestle/core/models/plans.py
72 73 74 75 76 77 78 | |
handler: python