|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.memphis.ccrg.lida.globalworkspace.MockBroadcastTrigger
public class MockBroadcastTrigger
Field Summary | |
---|---|
java.util.Collection<Coalition> |
coalitions
|
boolean |
wasReset
|
Constructor Summary | |
---|---|
MockBroadcastTrigger()
|
Method Summary | |
---|---|
void |
checkForTriggerCondition(java.util.Collection<Coalition> coalitions)
Each time a new Coalition is put in the GW, this method is called for all the registered Triggers. |
void |
init(java.util.Map<java.lang.String,java.lang.Object> parameters,
GlobalWorkspace gw)
This method is a generic way to setup the Trigger. |
void |
reset()
To reset the Trigger. |
void |
start()
To start the Trigger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.Collection<Coalition> coalitions
public boolean wasReset
Constructor Detail |
---|
public MockBroadcastTrigger()
Method Detail |
---|
public void checkForTriggerCondition(java.util.Collection<Coalition> coalitions)
BroadcastTrigger
checkForTriggerCondition
in interface BroadcastTrigger
coalitions
- All the coalitions in the GW.public void init(java.util.Map<java.lang.String,java.lang.Object> parameters, GlobalWorkspace gw)
BroadcastTrigger
init
in interface BroadcastTrigger
parameters
- a map for generic parameters.gw
- A TriggerListener. Most of the cases is the same class that
implements GlobalWorkspace Interface.public void reset()
BroadcastTrigger
reset
in interface BroadcastTrigger
public void start()
BroadcastTrigger
start
in interface BroadcastTrigger
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |