Package de.fraunhofer.iosb.ilt.sta.model
Class HistoricalLocation
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.sta.model.Entity<HistoricalLocation>
-
- de.fraunhofer.iosb.ilt.sta.model.HistoricalLocation
-
public class HistoricalLocation extends Entity<HistoricalLocation>
-
-
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 HistoricalLocation()HistoricalLocation(ZonedDateTime time)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidensureServiceOnChildren(SensorThingsService service)booleanequals(Object obj)BaseDao<HistoricalLocation>getDao(SensorThingsService service)EntityList<Location>getLocations()ThinggetThing()ZonedDateTimegetTime()inthashCode()BaseDao<Location>locations()voidsetLocations(List<Location> locations)voidsetThing(Thing thing)voidsetTime(ZonedDateTime time)StringtoString()HistoricalLocationwithOnlyId()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
-
HistoricalLocation
public HistoricalLocation()
-
HistoricalLocation
public HistoricalLocation(ZonedDateTime time)
-
-
Method Detail
-
ensureServiceOnChildren
protected void ensureServiceOnChildren(SensorThingsService service)
- Specified by:
ensureServiceOnChildrenin classEntity<HistoricalLocation>
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classEntity<HistoricalLocation>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classEntity<HistoricalLocation>
-
getTime
public ZonedDateTime getTime()
-
setTime
public void setTime(ZonedDateTime time)
-
getLocations
public EntityList<Location> getLocations()
-
getThing
public Thing getThing() throws ServiceFailureException
- Throws:
ServiceFailureException
-
setThing
public void setThing(Thing thing)
-
getDao
public BaseDao<HistoricalLocation> getDao(SensorThingsService service)
- Specified by:
getDaoin classEntity<HistoricalLocation>
-
withOnlyId
public HistoricalLocation 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<HistoricalLocation>- Returns:
- a copy with only the ID field set.
-
toString
public String toString()
- Overrides:
toStringin classEntity<HistoricalLocation>
-
-