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 voidensureServiceOnChildren(SensorThingsService service)booleanequals(Object obj)ZonedDateTimegetCreationTime()BaseDao<Task>getDao(SensorThingsService service)TaskingCapabilitygetTaskingCapability()Map<String,Object>getTaskingParameters()inthashCode()voidsetCreationTime(ZonedDateTime creationTime)voidsetTaskingCapability(TaskingCapability taskingCapability)voidsetTaskingParameters(Map<String,Object> taskingParameters)StringtoString()TaskwithOnlyId()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:
ensureServiceOnChildrenin 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: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<Task>- Returns:
- a copy with only the ID field set.
-
-