Package org.lsst.ccs.services
Class AgentCommandDictionaryService.AgentCommandDictionaryEvent
java.lang.Object
org.lsst.ccs.services.AgentCommandDictionaryService.AgentCommandDictionaryEvent
- Enclosing class:
- AgentCommandDictionaryService
An event fired to
AgentCommandDictionaryListeners when an agent
command dictionary has changed.
It contains the EventType describing the nature of the change:
* ADDED: fired when an Agent first joins the buses
* UPDATED: fired when an existing dictionary is updated. Currently unused.
* REMOVED: fired when an agent leaves the buses. The corresponding dictionary is null.
An AgentCommandDictionaryEvent also contains the AgentInfo for which
the event was fired and the Map<String,Dictionary> containing all
the targets and corresponding dictionaries for the given Agent.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEventType enumeration describing the nature of the dictionary change. -
Method Summary
Modifier and TypeMethodDescriptionThe AgentInfo for the Agent that triggered the event.Get theMap<String,Dictionary>of targets with correspondingDictionarythat are available for the givenAgentInfo.Get the EventType describing this event.
-
Method Details
-
getEventType
Get the EventType describing this event.- Returns:
- The
EventTypethat describes the event.
-
getAgentInfo
The AgentInfo for the Agent that triggered the event.- Returns:
- The
AgentInfoobject.
-
getDictionary
Get theMap<String,Dictionary>of targets with correspondingDictionarythat are available for the givenAgentInfo.- Returns:
- The Map of targets, Dictionaries.
-