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 void
ensureServiceOnChildren(SensorThingsService service)
boolean
equals(Object obj)
BaseDao<HistoricalLocation>
getDao(SensorThingsService service)
EntityList<Location>
getLocations()
Thing
getThing()
ZonedDateTime
getTime()
int
hashCode()
BaseDao<Location>
locations()
void
setLocations(List<Location> locations)
void
setThing(Thing thing)
void
setTime(ZonedDateTime time)
String
toString()
HistoricalLocation
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
-
HistoricalLocation
public HistoricalLocation()
-
HistoricalLocation
public HistoricalLocation(ZonedDateTime time)
-
-
Method Detail
-
ensureServiceOnChildren
protected void ensureServiceOnChildren(SensorThingsService service)
- Specified by:
ensureServiceOnChildren
in classEntity<HistoricalLocation>
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classEntity<HistoricalLocation>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in 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:
getDao
in classEntity<HistoricalLocation>
-
withOnlyId
public HistoricalLocation 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<HistoricalLocation>
- Returns:
- a copy with only the ID field set.
-
toString
public String toString()
- Overrides:
toString
in classEntity<HistoricalLocation>
-
-