|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BroadcastTrigger
A BroadcastTrigger determines when a new broadcast must be triggered.
Its start()
method should be invoked once and only once (this is likely to be when the GlobalWorkspace starts)
Its checkForTriggerCondition(Collection)
method is called every time a new Coalition
enters the GlobalWorkspace
.
IndividualCoaltionActivationTrigger
,
NoBroadcastOccurringTrigger
Method Summary | |
---|---|
void |
checkForTriggerCondition(java.util.Collection<Coalition> coalitions)
When called the trigger checks if its firing condition. |
void |
init(java.util.Map<java.lang.String,java.lang.Object> params,
GlobalWorkspace gw)
Provides a generic way to setup a BroadcastTrigger. |
void |
reset()
Resets the trigger. |
void |
start()
Starts the trigger. |
Method Detail |
---|
void init(java.util.Map<java.lang.String,java.lang.Object> params, GlobalWorkspace gw)
params
- a map for generic parametersgw
- A TriggerListener
and likely a class that implements the GlobalWorkspace
interface.void checkForTriggerCondition(java.util.Collection<Coalition> coalitions)
Coalition
is put in the GlobalWorkspace
coalitions
- All the Coalition
objects currently in the GlobalWorkspace
.void reset()
void start()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |