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

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

public class ReferencePopulation.TriggerBecomesEmpty
extends Trigger


Constructor Summary
ReferencePopulation.TriggerBecomesEmpty()
           
 
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
 

Constructor Detail

ReferencePopulation.TriggerBecomesEmpty

public ReferencePopulation.TriggerBecomesEmpty()
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)