|
|||||||||
| Atavism Version 2018.1 | AGIS API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatavism.msgsys.MessageTrigger
atavism.server.messages.PerceptionTrigger
public class PerceptionTrigger
Track union of perceived objects. This trigger only works with
PerceptionFilter and PerceptionMessage. By default,
match() returns true for any instance of PerceptionMessage.
The trigger tracks the union of objects perceived by the filter's target OIDs. The filter subject OIDs are kept in-sync with this union.
| Nested Class Summary | |
|---|---|
protected class |
PerceptionTrigger.IntHolder
|
| Constructor Summary | |
|---|---|
PerceptionTrigger()
No-arg constructor required for marshalling. |
|
| Method Summary | |
|---|---|
boolean |
match(Message message)
True if the trigger should run for the message. |
void |
setFilter(IFilter filter)
Set the trigger's filter. |
void |
setTriggeringTypes(java.util.Collection<MessageType> types)
Set the message types that run the trigger. |
void |
trigger(Message triggeringMessage,
IFilter triggeringFilter,
MessageAgent agent)
Track union of perceived objects and keep filter in-sync. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PerceptionTrigger()
| Method Detail |
|---|
public void setFilter(IFilter filter)
setFilter in class MessageTriggerpublic void setTriggeringTypes(java.util.Collection<MessageType> types)
public boolean match(Message message)
message type to the triggering types. If no
triggering types are set (the default) then returns true
if message is a PerceptionMessage.
match in class MessageTrigger
public void trigger(Message triggeringMessage,
IFilter triggeringFilter,
MessageAgent agent)
PerceptionFilter and the
message must be a PerceptionMessage.
trigger in class MessageTriggertriggeringMessage - The matched message.triggeringFilter - The matched filter.agent - The local message agent.
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||