Package de.fraunhofer.iosb.ilt.sta.model
Class Thing
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.sta.model.Entity<Thing>
-
- de.fraunhofer.iosb.ilt.sta.model.Thing
-
-
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 Thing()
Thing(String name, String description)
Thing(String name, String description, Map<String,Object> properties)
Thing(String name, String description, Map<String,Object> properties, List<Location> locations, List<HistoricalLocation> historicalLocations, List<Datastream> datastreams)
-
Method Summary
-
Methods inherited from class de.fraunhofer.iosb.ilt.sta.model.Entity
getId, getSelfLink, getService, getType, handleNamespacedProperties, setId, setSelfLink, setSelfLink, setService, subscribe, subscribeRelative
-
-
-
-
Method Detail
-
ensureServiceOnChildren
protected void ensureServiceOnChildren(SensorThingsService service)
- Specified by:
ensureServiceOnChildren
in classEntity<Thing>
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getLocations
public EntityList<Location> getLocations()
-
historicalLocations
public BaseDao<HistoricalLocation> historicalLocations()
-
getHistoricalLocations
public EntityList<HistoricalLocation> getHistoricalLocations()
-
setHistoricalLocations
public void setHistoricalLocations(List<HistoricalLocation> historicalLocations)
-
datastreams
public BaseDao<Datastream> datastreams()
-
getDatastreams
public EntityList<Datastream> getDatastreams()
-
setDatastreams
public void setDatastreams(List<Datastream> datastreams)
-
multiDatastreams
public BaseDao<MultiDatastream> multiDatastreams()
-
getMultiDatastreams
public EntityList<MultiDatastream> getMultiDatastreams()
-
setMultiDatastreams
public void setMultiDatastreams(List<MultiDatastream> multiDatastreams)
-
taskingCapabilities
public BaseDao<TaskingCapability> taskingCapabilities()
-
getTaskingCapabilities
public EntityList<TaskingCapability> getTaskingCapabilities()
-
setTaskingCapabilities
public void setTaskingCapabilities(List<TaskingCapability> taskingCapabilities)
-
getDao
public ThingDao getDao(SensorThingsService service)
-
withOnlyId
public Thing withOnlyId()
Description copied from class:Entity
Creates a copy of the entity, with only the ID field set. Useful when creating a new entity that links to this entity.- Specified by:
withOnlyId
in classEntity<Thing>
- Returns:
- a copy with only the ID field set.
-
-