org.mitre.sim.api3.exec.reference
Class ReferencePopulation.TriggerSizeExceeds

java.lang.Object
  extended byorg.mitre.sim.api3.Trigger
      extended byorg.mitre.sim.api3.exec.reference.ReferencePopulation.TriggerSizeExceeds
Enclosing class:
ReferencePopulation

public class ReferencePopulation.TriggerSizeExceeds
extends Trigger


Field Summary
protected  int threshold
           
 
Constructor Summary
ReferencePopulation.TriggerSizeExceeds(int thresh)
           
 
Method Summary
 boolean condition()
          Decision logic of the trigger.
 
Methods inherited from class org.mitre.sim.api3.Trigger
action, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

threshold

protected int threshold
Constructor Detail

ReferencePopulation.TriggerSizeExceeds

public ReferencePopulation.TriggerSizeExceeds(int thresh)
Method Detail

condition

public boolean condition()
Description copied from class: Trigger
Decision logic of the trigger. Instances of trigger are used by simulation developers to detect changes in the simulation environment and trigger action in their entities. Triggers are used to wake up entities whose agendas are suspended in a call to waitForActionOrTrigger. The simulation executive may invoke this method an undetermined number of times. As a result, evaluation of the condition method should have no side effect in the simulation.

Specified by:
condition in class Trigger
Returns:
The value of the developer supplied condition.
See Also:
Entity.waitForActionOrTrigger(Trigger[] cs, double backStop)