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

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

public class NoCoalitionArrivingTrigger
extends NoBroadcastOccurringTrigger

This trigger fires when 'delay' ms has passed without a new broadcast. Check the parent class NoBroadcastTrigger for full understanding.

Author:
Javier Snaider

Constructor Summary
NoCoalitionArrivingTrigger()
           
 
Method Summary
 void checkForTriggerCondition(java.util.Collection<Coalition> coalitions)
          Called each time a new coalition is added to the GlobalWorkspace each BroadcastTrigger's 'checkForTriggerCondition' method is called.
 
Methods inherited from class edu.memphis.ccrg.lida.globalworkspace.triggers.NoBroadcastOccurringTrigger
getDelay, getTaskManager, init, reset, setTaskManager, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoCoalitionArrivingTrigger

public NoCoalitionArrivingTrigger()
Method Detail

checkForTriggerCondition

public void checkForTriggerCondition(java.util.Collection<Coalition> coalitions)
Called each time a new coalition is added to the GlobalWorkspace each BroadcastTrigger's 'checkForTriggerCondition' method is called. In the case of this trigger the 'reset()' method inherited from NoBroadcastOccurringTrigger is called which resets the TimerTask object. Thus this trigger fires when 'delay' ms has passed w/o a new broadcast.

Specified by:
checkForTriggerCondition in interface BroadcastTrigger
Overrides:
checkForTriggerCondition in class NoBroadcastOccurringTrigger
Parameters:
coalitions - Coalitions trigger will check