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 void
ensureServiceOnChildren(SensorThingsService service)
boolean
equals(Object obj)
BaseDao<Sensor>
getDao(SensorThingsService service)
EntityList<Datastream>
getDatastreams()
String
getDescription()
String
getEncodingType()
Object
getMetadata()
EntityList<MultiDatastream>
getMultiDatastreams()
String
getName()
Map<String,Object>
getProperties()
int
hashCode()
BaseDao<MultiDatastream>
multiDatastreams()
void
setDatastreams(List<Datastream> datastreams)
void
setDescription(String description)
void
setEncodingType(String encodingType)
void
setMetadata(Object metadata)
void
setMultiDatastreams(List<MultiDatastream> multiDatastreams)
void
setName(String name)
void
setProperties(Map<String,Object> properties)
String
toString()
Sensor
withOnlyId()
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:
ensureServiceOnChildren
in 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: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<Sensor>
- Returns:
- a copy with only the ID field set.
-
-