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

A trigger that fires if any coalition is above a threshold.

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 object's activation is 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 object's activation is over threshold.

Specified by:
checkForTriggerCondition in interface BroadcastTrigger
Overrides:
checkForTriggerCondition in class AggregateCoalitionActivationTrigger
Parameters:
coalitions - Coalition objects current in the GlobalWorkspace
See Also:
GlobalWorkspaceImpl.addCoalition(Coalition)