ch.tatool.core.element
Class DefaultExecutionStrategy

java.lang.Object
  extended by ch.tatool.core.element.DefaultExecutionStrategy
All Implemented Interfaces:
ExecutionStrategy, TemporaryElementSupport

public class DefaultExecutionStrategy
extends Object
implements ExecutionStrategy, TemporaryElementSupport

Default execution strategy implementation. This strategy updates the stack so that the top element contains an executable element.

Author:
Michael Ruflin.

Constructor Summary
DefaultExecutionStrategy()
           
 
Method Summary
 void addTemporaryElement(Element element)
           
 boolean updateElementStack(ExecutionContext executionContext)
          Updates the stack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExecutionStrategy

public DefaultExecutionStrategy()
Method Detail

addTemporaryElement

public void addTemporaryElement(Element element)
Specified by:
addTemporaryElement in interface TemporaryElementSupport

updateElementStack

public boolean updateElementStack(ExecutionContext executionContext)
Updates the stack

Specified by:
updateElementStack in interface ExecutionStrategy
Returns:
true if another element is ready for execution


Copyright © 2012. All Rights Reserved.