edu.memphis.ccrg.lida.globalworkspace.triggers
Class IndividualCoaltionActivationTrigger

java.lang.Object
  extended by edu.memphis.ccrg.lida.globalworkspace.triggers.AggregateCoalitionActivationTrigger
      extended by edu.memphis.ccrg.lida.globalworkspace.triggers.IndividualCoaltionActivationTrigger
All Implemented Interfaces:
BroadcastTrigger

public class IndividualCoaltionActivationTrigger
extends AggregateCoalitionActivationTrigger

If any coalition is above threshold, this trigger will fire.

Author:
Javier Snaider

Field Summary
 
Fields inherited from class edu.memphis.ccrg.lida.globalworkspace.triggers.AggregateCoalitionActivationTrigger
gw, threshold
 
Constructor Summary
IndividualCoaltionActivationTrigger()
           
 
Method Summary
 void checkForTriggerCondition(java.util.Collection<Coalition> coalitions)
          Triggers a broadcast if any Coalition has activation over threshold.
 
Methods inherited from class edu.memphis.ccrg.lida.globalworkspace.triggers.AggregateCoalitionActivationTrigger
getThreshold, init, reset, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndividualCoaltionActivationTrigger

public IndividualCoaltionActivationTrigger()
Method Detail

checkForTriggerCondition

public void checkForTriggerCondition(java.util.Collection<Coalition> coalitions)
Triggers a broadcast if any Coalition has activation over threshold.

Specified by:
checkForTriggerCondition in interface BroadcastTrigger
Overrides:
checkForTriggerCondition in class AggregateCoalitionActivationTrigger
Parameters:
coalitions - Coalitions