示例#1
0
 /**
  * Perform logic needed to actually execute the node's behavior.
  * 
  * @param Node $node
  * @param Execution $execution
  */
 protected function executeNode(Node $node, Execution $execution)
 {
     $node->getBehavior()->execute($execution);
 }
 /**
  * Perform logic to actually signal the execution.
  * 
  * @param Node $node
  * @param Execution $execution
  * @param array $vars
  * @param array $delegation
  */
 protected function singalExecution(Node $node, Execution $execution, array $vars, array $delegation)
 {
     $behavior = $node->getBehavior();
     if ($behavior instanceof SignalableBehaviorInterface) {
         $behavior->signal($execution, $this->signal, $vars, $delegation);
     }
 }