ch.tatool.core.element.handler
Class CompoundElementTrialCountEvaluator

java.lang.Object
  extended by ch.tatool.core.element.AbstractPropertyHolder
      extended by ch.tatool.core.element.NodeImpl
          extended by ch.tatool.core.element.handler.CompoundElementTrialCountEvaluator
All Implemented Interfaces:
TrialCountEvaluator, PropertyHolder, Node

public class CompoundElementTrialCountEvaluator
extends NodeImpl
implements TrialCountEvaluator

Only counts the trials of the primary element.

Author:
Michael Ruflin

Constructor Summary
CompoundElementTrialCountEvaluator()
           
 
Method Summary
 TrialCountEvaluator getBaseEvaluator()
           
 int getTrialCount(ExecutionContext context)
          Returns the trial count of the baseEvaluator in case the primary element is in the execution stack, 0 otherwise.
 void setBaseEvaluator(TrialCountEvaluator baseEvaluator)
           
 
Methods inherited from class ch.tatool.core.element.NodeImpl
assignParent, assignParent, assignParents, getId, getLocalId, getParent, setId, setLocalId, setParent
 
Methods inherited from class ch.tatool.core.element.AbstractPropertyHolder
clearProperties, getKeys, getProperty, removeProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ch.tatool.element.Node
getParent, setParent
 
Methods inherited from interface ch.tatool.data.PropertyHolder
clearProperties, getId, getKeys, getProperty, removeProperty, setProperty
 

Constructor Detail

CompoundElementTrialCountEvaluator

public CompoundElementTrialCountEvaluator()
Method Detail

getTrialCount

public int getTrialCount(ExecutionContext context)
Returns the trial count of the baseEvaluator in case the primary element is in the execution stack, 0 otherwise.

Specified by:
getTrialCount in interface TrialCountEvaluator

getBaseEvaluator

public TrialCountEvaluator getBaseEvaluator()

setBaseEvaluator

public void setBaseEvaluator(TrialCountEvaluator baseEvaluator)


Copyright © 2012. All Rights Reserved.