org.ascape.model.engine
Class RuleOrderStrategy

java.lang.Object
  extended by org.ascape.model.engine.ExecutionStrategy
      extended by org.ascape.model.engine.IncrementalExecutionStrategy
          extended by org.ascape.model.engine.ParallelExecutionStrategy
              extended by org.ascape.model.engine.RuleOrderStrategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
RuleOrderMutableStrategy, RuleOrderUpdateStrategy

public class RuleOrderStrategy
extends ParallelExecutionStrategy

The Class RuleOrderStrategy.

See Also:
Serialized Form

Constructor Summary
RuleOrderStrategy(StrategyFactory factory)
          Instantiates a new rule order strategy.
 
Method Summary
 boolean hasNext()
          Checks for next.
 boolean hasNextParallel()
          Checks for next parallel.
 void increment()
          Increment.
 boolean isSupportsParallel()
          Checks if is supports parallel.
 void nextParallelSequence()
          Next parallel sequence.
 void reset()
          Reset.
 
Methods inherited from class org.ascape.model.engine.ParallelExecutionStrategy
execute, executeParallel, incrementParallel
 
Methods inherited from class org.ascape.model.engine.IncrementalExecutionStrategy
clone, fire, getAgentIterator, getAgentSelector, getCurrentAgent, getCurrentRule, getRules, getRuleSelector, getScape, setAgentIterator, setAgentSelector, setRuleSelector
 
Methods inherited from class org.ascape.model.engine.ExecutionStrategy
chain
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleOrderStrategy

public RuleOrderStrategy(StrategyFactory factory)
Instantiates a new rule order strategy.

Parameters:
factory - the factory
Method Detail

hasNext

public boolean hasNext()
Description copied from class: IncrementalExecutionStrategy
Checks for next.

Specified by:
hasNext in class IncrementalExecutionStrategy
Returns:
true, if successful

hasNextParallel

public final boolean hasNextParallel()
Description copied from class: ParallelExecutionStrategy
Checks for next parallel.

Overrides:
hasNextParallel in class ParallelExecutionStrategy
Returns:
true, if successful

nextParallelSequence

public void nextParallelSequence()
Description copied from class: ParallelExecutionStrategy
Next parallel sequence.

Overrides:
nextParallelSequence in class ParallelExecutionStrategy

increment

public void increment()
Description copied from class: IncrementalExecutionStrategy
Increment.

Specified by:
increment in class IncrementalExecutionStrategy

reset

public void reset()
Description copied from class: ExecutionStrategy
Reset.

Overrides:
reset in class IncrementalExecutionStrategy

isSupportsParallel

public boolean isSupportsParallel()
Description copied from class: ExecutionStrategy
Checks if is supports parallel.

Overrides:
isSupportsParallel in class ExecutionStrategy
Returns:
true, if is supports parallel


Copyright © 1998-2008 The Brookings Institution, NuTech Solutions, Metascape, LLC All Rights Reserved.