Package org.sensorhub.api.command
Class CommandStreamEvent
java.lang.Object
org.sensorhub.api.event.Event
org.sensorhub.api.system.SystemEvent
org.sensorhub.api.command.CommandStreamEvent
- Direct Known Subclasses:
 CommandEvent,CommandStatusEvent,CommandStreamAddedEvent,CommandStreamChangedEvent,CommandStreamDisabledEvent,CommandStreamEnabledEvent,CommandStreamRemovedEvent
Base class for all command stream (i.e. tasking/control input) related events
- 
Field Summary
FieldsFields inherited from class org.sensorhub.api.system.SystemEvent
sourceID, systemID, systemUID - 
Constructor Summary
ConstructorsConstructorDescriptionCommandStreamEvent(long timeStamp, String sysUID, String controlInputName) CommandStreamEvent(String sysUID, String controlInputName) Helper constructor that sets the timestamp to current system timeCommandStreamEvent(ICommandStreamInfo csInfo) Helper constructor that sets the timestamp to current system time - 
Method Summary
Modifier and TypeMethodDescriptionvoidassignCommandStreamID(BigId internalID) Called by the framework to assign the command stream's local ID to this event.Gets the ID of the source of event.Methods inherited from class org.sensorhub.api.system.SystemEvent
assignSystemID, getSystemID, getSystemUIDMethods inherited from class org.sensorhub.api.event.Event
getSource, getTimeStamp, toString 
- 
Field Details
- 
cmdStreamID
 
 - 
 - 
Constructor Details
- 
CommandStreamEvent
- Parameters:
 timeStamp- time of event generation (unix time in milliseconds, base 1970)sysUID- Unique ID of parent systemcontrolInputName- Name of control input
 - 
CommandStreamEvent
Helper constructor that sets the timestamp to current system time- Parameters:
 sysUID- Unique ID of parent systemcontrolInputName- Name of output producing the datastream
 - 
CommandStreamEvent
Helper constructor that sets the timestamp to current system time- Parameters:
 csInfo- Command stream the event relates to
 
 - 
 - 
Method Details
- 
getControlInputName
- Returns:
 - Name of control input
 
 - 
getCommandStreamID
- Returns:
 - Internal ID of the command stream related to this event
 
 - 
assignCommandStreamID
Called by the framework to assign the command stream's local ID to this event. This can only be called once and must be called before the event is dispatched.- Parameters:
 internalID- Internal ID of related command stream
 - 
getSourceID
Description copied from class:EventGets the ID of the source of event.- Overrides:
 getSourceIDin classSystemEvent- Returns:
 - ID of the event source
 
 
 -