Package de.fraunhofer.iosb.ilt.sta.model
Class Task
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.sta.model.Entity<Task>
-
- de.fraunhofer.iosb.ilt.sta.model.Task
-
-
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 protected void
ensureServiceOnChildren(SensorThingsService service)
boolean
equals(Object obj)
ZonedDateTime
getCreationTime()
BaseDao<Task>
getDao(SensorThingsService service)
TaskingCapability
getTaskingCapability()
Map<String,Object>
getTaskingParameters()
int
hashCode()
void
setCreationTime(ZonedDateTime creationTime)
void
setTaskingCapability(TaskingCapability taskingCapability)
void
setTaskingParameters(Map<String,Object> taskingParameters)
String
toString()
Task
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
-
-
-
-
Constructor Detail
-
Task
public Task()
-
Task
public Task(ZonedDateTime creationTime, Map<String,Object> taskingParameters)
-
-
Method Detail
-
ensureServiceOnChildren
protected void ensureServiceOnChildren(SensorThingsService service)
- Specified by:
ensureServiceOnChildren
in classEntity<Task>
-
getCreationTime
public ZonedDateTime getCreationTime()
-
setCreationTime
public void setCreationTime(ZonedDateTime creationTime)
-
getTaskingCapability
public TaskingCapability getTaskingCapability() throws ServiceFailureException
- Throws:
ServiceFailureException
-
setTaskingCapability
public void setTaskingCapability(TaskingCapability taskingCapability)
-
getDao
public BaseDao<Task> getDao(SensorThingsService service)
-
withOnlyId
public Task 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<Task>
- Returns:
- a copy with only the ID field set.
-
-