Package de.fraunhofer.iosb.ilt.sta.model
Class Datastream
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.sta.model.Entity<Datastream>
-
- de.fraunhofer.iosb.ilt.sta.model.Datastream
-
public class Datastream extends Entity<Datastream>
-
-
Field Summary
-
Fields inherited from class de.fraunhofer.iosb.ilt.sta.model.Entity
AT_IOT_COUNT, AT_IOT_NAVIGATION_LINK, AT_IOT_NEXT_LINK, AT_IOT_SELF_LINK, id, IOT_COUNT, IOT_NAVIGATION_LINK, IOT_NEXT_LINK, IOT_SELF_LINK, selfLink
-
-
Constructor Summary
Constructors Constructor Description Datastream()Datastream(String name, String description, String observationType, UnitOfMeasurement unitOfMeasurement)
-
Method Summary
-
Methods inherited from class de.fraunhofer.iosb.ilt.sta.model.Entity
getId, getSelfLink, getService, getType, handleNamespacedProperties, setId, setSelfLink, setSelfLink, setService, subscribe, subscribeRelative
-
-
-
-
Constructor Detail
-
Datastream
public Datastream()
-
Datastream
public Datastream(String name, String description, String observationType, UnitOfMeasurement unitOfMeasurement)
-
-
Method Detail
-
ensureServiceOnChildren
protected void ensureServiceOnChildren(SensorThingsService service)
- Specified by:
ensureServiceOnChildrenin classEntity<Datastream>
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classEntity<Datastream>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classEntity<Datastream>
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getObservationType
public String getObservationType()
-
setObservationType
public void setObservationType(String observationType)
-
getUnitOfMeasurement
public UnitOfMeasurement getUnitOfMeasurement()
-
setUnitOfMeasurement
public void setUnitOfMeasurement(UnitOfMeasurement unitOfMeasurement)
-
getObservedArea
public org.geojson.GeoJsonObject getObservedArea()
-
setObservedArea
public void setObservedArea(org.geojson.GeoJsonObject observedArea)
-
getPhenomenonTime
public org.threeten.extra.Interval getPhenomenonTime()
-
setPhenomenonTime
public void setPhenomenonTime(org.threeten.extra.Interval phenomenonTime)
-
getResultTime
public org.threeten.extra.Interval getResultTime()
-
setResultTime
public void setResultTime(org.threeten.extra.Interval resultTime)
-
getThing
public Thing getThing() throws ServiceFailureException
- Throws:
ServiceFailureException
-
setThing
public void setThing(Thing thing)
-
getSensor
public Sensor getSensor() throws ServiceFailureException
- Throws:
ServiceFailureException
-
setSensor
public void setSensor(Sensor sensor)
-
getObservedProperty
public ObservedProperty getObservedProperty() throws ServiceFailureException
- Throws:
ServiceFailureException
-
setObservedProperty
public void setObservedProperty(ObservedProperty observedProperty)
-
observations
public ObservationDao observations()
-
getObservations
public EntityList<Observation> getObservations()
-
setObservations
public void setObservations(List<Observation> observations)
-
getDao
public BaseDao<Datastream> getDao(SensorThingsService service)
- Specified by:
getDaoin classEntity<Datastream>
-
withOnlyId
public Datastream withOnlyId()
Description copied from class:EntityCreates a copy of the entity, with only the ID field set. Useful when creating a new entity that links to this entity.- Specified by:
withOnlyIdin classEntity<Datastream>- Returns:
- a copy with only the ID field set.
-
toString
public String toString()
- Overrides:
toStringin classEntity<Datastream>
-
-