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

A trigger that fires when a certain number of ticks have passed without a new Coalition being added to the GlobalWorkspace. Inherits most of its fields and methods from its parent class NoBroadcastOccurringTrigger.

Author:
Javier Snaider
See Also:
NoBroadcastOccurringTrigger

Constructor Summary
NoCoalitionArrivingTrigger()
           
 
Method Summary
 void checkForTriggerCondition(java.util.Collection<Coalition> coalitions)
          Called each time a new coalition is added to the GlobalWorkspace.
 
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. Specifically for this trigger NoBroadcastOccurringTrigger.reset() is called which resets the TimerTask object. Thus this trigger fires when a certain number of ticks have passed without a new Coalition entering the GlobalWorkspace.

Specified by:
checkForTriggerCondition in interface BroadcastTrigger
Overrides:
checkForTriggerCondition in class NoBroadcastOccurringTrigger
Parameters:
coalitions - Coalition objects the trigger can check