Public Member Functions |
| | DtPlanBuilder () |
| | CTOR.
|
| | DtPlanBuilder (const DtString &planName) |
| | DtPlanBuilder (const DtUUID &planName) |
| virtual | ~DtPlanBuilder () |
| | DTOR.
|
| virtual void | setPlanName (const DtString &) |
| | Sets the name of the plan.
|
| virtual void | setPlanName (const DtUUID &) |
| virtual const DtPlan & | plan () const |
| | Returns the plan in it's current state.
|
| virtual DtPlan * | planCopy () const |
| | Returns a copy of the plan. This pointer must be deleted if no longer needed.
|
| | operator const DtPlan & () const |
| virtual SharedPlanBlockBuilder | addTriggerStatement (const DtSimCondExpr &, DtUUID &triggerUUID, const DtString &description="", bool reregister=true, const DtString &option="ReTask", bool addToStart=false) |
| | Add a new trigger statement and register it at the current plan position.
|
| | DtPlanBlockBuilder () |
| | CTOR.
|
| | DtPlanBlockBuilder (DtSimBlock *) |
| virtual | ~DtPlanBlockBuilder () |
| | DTOR.
|
| virtual DtSimBlock * | planBlock () |
| | Access to the block that this class represents.
|
| virtual void | addStatement (const DtSimTask &, bool addToStart=false) |
| | Add a statement to the current block. The statement is added to the start if the flag is true, else the end of the block.
|
| virtual void | addStatement (const DtSetDataRequest &, bool addToStart=false) |
| virtual void | addStatement (const DtSimCommand &, bool addToStart=false) |
| virtual void | addSetDataCommand (const DtSetDataRequest &, const DtUUID &, bool addToStart=false) |
| | Adds a new set data command to issue to the given object.
|
| virtual void | addTaskCommand (const DtSimTask &, const DtUUID &, bool addToStart=false) |
| | Adds a new task to issue to the given object.
|
| virtual void | addWaitUntilCondition (const DtSimCondExpr &, bool addToStart=false) |
| | Creates a wait until conditional statement.
|
| virtual void | addIfCondition (const DtSimCondExpr &, SharedPlanBlockBuilder &thenBlockBuilder, SharedPlanBlockBuilder &elseBlockBuilder, bool addToStart=false) |
| | Because an if conditional has 2 blocks (then and else) need to have two shared block pointers.
|
| virtual SharedPlanBlockBuilder | addWhileCondition (const DtSimCondExpr &, bool addToStart=false) |
| | Adds a while condition to the plan and returns a block builder for the block.
|
class DtPlanBlockBuilder:
This helper class will allow for the creation of a plan by adding task, set and conditional statements to it. The plan() method will return the current state of the plan being created