Package org.sensorhub.api.feature
Class FoiAddedEvent
java.lang.Object
org.sensorhub.api.event.Event
org.sensorhub.api.system.SystemEvent
org.sensorhub.api.feature.FoiAddedEvent
Event sent when a new FOI is being targeted by an observing system. It is immutable and carries feature data by reference.
- Since:
- Apr 23, 2015
-
Field Summary
FieldsFields inherited from class org.sensorhub.api.system.SystemEvent
sourceID, systemID, systemUID
-
Constructor Summary
ConstructorsConstructorDescriptionFoiAddedEvent
(long timeStamp, String sysUID, String foiUID, Instant startTime) Creates a new event with only the feature UIDFoiAddedEvent
(long timeStamp, IDataProducer producer, String foiUID, Instant startTime) Creates a new event with only the feature UIDFoiAddedEvent
(long timeStamp, IDataProducer producer, IFeature foi, Instant startTime) Creates a new event with an attached feature object -
Method Summary
Methods inherited from class org.sensorhub.api.system.SystemEvent
assignSystemID, getSourceID, getSystemID, getSystemUID
Methods inherited from class org.sensorhub.api.event.Event
getSource, getTimeStamp, toString
-
Field Details
-
foi
-
foiUID
-
startTime
-
-
Constructor Details
-
FoiAddedEvent
Creates a new event with only the feature UID- Parameters:
timeStamp
- Time of event generation (unix time in milliseconds, base 1970)sysUID
- Unique ID of producer that generated the eventfoiUID
- Unique ID of feature of intereststartTime
- Time at which observation of the FoI started
-
FoiAddedEvent
Creates a new event with only the feature UID- Parameters:
timeStamp
- Time of event generation (unix time in milliseconds, base 1970)producer
- Producer that generated the eventfoiUID
- Unique ID of feature of intereststartTime
- Time at which observation of the FoI started
-
FoiAddedEvent
Creates a new event with an attached feature object- Parameters:
timeStamp
- time of event generation (unix time in milliseconds, base 1970)producer
- producer that generated the eventfoi
- feature objectstartTime
- time at which observation of the FoI started
-
-
Method Details
-
getFoiUID
- Returns:
- The unique ID of the feature of interest related to this event
-
getFoi
- Returns:
- The description of the feature of interest related to this event or null if the description was already registered by some other means. (in this case, only the UID is provided in the event)
-
getStartTime
- Returns:
- The time at which the feature of interest started being observed.
-