public function execute(Node $node)
    {
        if ($this->isTerminated()) {
            throw new \RuntimeException(sprintf('%s is terminated', $this));
        }
        
        $this->engine->pushCommand($this->engine->createExecuteNodeCommand($this, $node));
    }
public function execute(Node $node)
    {
        if ($this->isTerminated()) {
            throw new \RuntimeException(sprintf('%s is terminated', $this));
        }
        
        $this->engine->pushCommand($this->engine->createExecuteNodeCommand($this, $node));
    }
public function execute ( Node $ node ) { if ( $ this -> isTerminated ( ) ) { throw new \ RuntimeException ( sprintf ( '%s is terminated' , $ this ) ) ; } $ this -> engine -> pushCommand ( $ this -> engine -> createExecuteNodeCommand ( $ this , $ node ) ) ; }
Register commands to execute the behavior of the given node.

@param Node $node

@throws \RuntimeException When the execution has been terminated.
Register commands to execute the behavior of the given node .