Package de.fraunhofer.iosb.ilt.sta.model
Class Sensor
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.sta.model.Entity<Sensor>
-
- de.fraunhofer.iosb.ilt.sta.model.Sensor
-
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseDao<Datastream>datastreams()protected voidensureServiceOnChildren(SensorThingsService service)booleanequals(Object obj)BaseDao<Sensor>getDao(SensorThingsService service)EntityList<Datastream>getDatastreams()StringgetDescription()StringgetEncodingType()ObjectgetMetadata()EntityList<MultiDatastream>getMultiDatastreams()StringgetName()Map<String,Object>getProperties()inthashCode()BaseDao<MultiDatastream>multiDatastreams()voidsetDatastreams(List<Datastream> datastreams)voidsetDescription(String description)voidsetEncodingType(String encodingType)voidsetMetadata(Object metadata)voidsetMultiDatastreams(List<MultiDatastream> multiDatastreams)voidsetName(String name)voidsetProperties(Map<String,Object> properties)StringtoString()SensorwithOnlyId()Creates a copy of the entity, with only the ID field set.-
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:
ensureServiceOnChildrenin classEntity<Sensor>
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getEncodingType
public String getEncodingType()
-
setEncodingType
public void setEncodingType(String encodingType)
-
getMetadata
public Object getMetadata()
-
setMetadata
public void setMetadata(Object metadata)
-
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)
-
getDao
public BaseDao<Sensor> getDao(SensorThingsService service)
-
withOnlyId
public Sensor 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<Sensor>- Returns:
- a copy with only the ID field set.
-
-