T - - type representing a geometry value at a specific momentpublic interface MovingGeometry<T extends Geometry> extends Moving, Geometry
MovingGeometryFactoryTheoretically one can imagine a moving geometry that tracks the entire history of an object's movement from its creation to its end of life, which in some cases might not be limited in time. However, in reality this is impractical and often not necessary. Therefore one can limit the size of the geometry history by providing a value for the history time limit. By default the history is limited to 24 hours.
| Modifier and Type | Method and Description |
|---|---|
double |
getAcceleration(AccelerationUnit accelerationUnit) |
double |
getAcceleration(java.time.ZonedDateTime timestamp,
AccelerationUnit accelerationUnit) |
double |
getAvgSpeed(SpeedUnit speedUnit) |
double |
getAvgSpeed(SpeedUnit speedUnit,
TimeInterval timeInterval) |
java.time.Duration |
getDuration() |
double |
getDynamicTimeWarpingDistance(MovingGeometry<? extends Geometry> otherMovingGeometry,
LengthUnit units)
Compute the dynamic time warping distance between the moving geometries.
|
java.util.List<TimeInterval> |
getEncounters(Geometry geometry,
double maxDistance,
LengthUnit distanceUnits)
Compute the time intervals in which encounters between this object and the other (argument) geometry occurred.
|
T |
getFirstObservedGeometry() |
java.time.ZonedDateTime |
getFirstObservedTime() |
double |
getFretchetDistance(MovingGeometry<? extends Geometry> otherMovingGeometry,
LengthUnit units)
Compute the Fretchet distance between the moving geometries.
|
T |
getGeometry()
Get the associated geometry
|
Geometry |
getGeometryAtTime(java.time.ZonedDateTime timestamp) |
java.time.Duration |
getHistoryTimeLimit() |
java.lang.String |
getId() |
T |
getLastObservedGeometry() |
java.time.ZonedDateTime |
getLastObservedTime() |
double |
getLength(LengthUnit units) |
LineString |
getLineString() |
double |
getMaxSpeed(SpeedUnit speedUnit) |
double |
getMaxSpeed(SpeedUnit speedUnit,
TimeInterval timeInterval) |
double |
getMinRouteDistance(MovingGeometry<T> stg,
LengthUnit units)
Compute the minimum distance between the routes of the moving geometries
|
double |
getMinSpeed(SpeedUnit speedUnit) |
double |
getMinSpeed(SpeedUnit speedUnit,
TimeInterval timeInterval) |
int |
getNumberOfSnapshots() |
Snapshot<T> |
getSnapshot(int index)
Get a snapshot by index
|
java.util.List<Snapshot<T>> |
getSnapshots() |
java.util.List<Snapshot<T>> |
getSnapshots(java.util.List<TimeInterval> timeIntervals) |
java.util.List<Snapshot<T>> |
getSnapshots(TimeInterval timeInterval) |
double |
getSpeed(SpeedUnit speedUnit) |
double |
getSpeed(java.time.ZonedDateTime timestamp,
SpeedUnit speedUnit) |
MovingGeometry<T> |
getSubtrajectory(TimeInterval interval) |
double |
getSynchronizedDistanceMax(MovingGeometry<? extends Geometry> otherTrjectory,
LengthUnit units)
Compute the maximum distance between the moving geometries, synchronizing them
with the time
|
double |
getSynchronizedDistanceMin(MovingGeometry<? extends Geometry> otherTrjectory,
LengthUnit units)
Compute the minimum distance between the moving geometries, synchronizing them
with the time
|
double |
getSynchronizedDistanceSum(MovingGeometry<? extends Geometry> otherMovingGeometry,
LengthUnit units)
Compute the sum of distances between the moving geometries, synchronizing them
with the time
|
boolean |
hasBeenDwellingInAreaDuringTimePeriod(Polygon area,
TimeInterval timeInterval)
Check whether this object existed (its first sample occurred before the beginning of timeInterval) and
has been dwelling within the area during the duration of timeInterval.
|
boolean |
hasBeenDwellingInAreaSince(Polygon area,
java.time.ZonedDateTime time)
Check whether this object existed (its first sample occurred before time) and has been dwelling within
the area since time.
|
boolean |
hasBeenDwellingWithinDistanceDuringTimePeriod(Geometry geometry,
TimeInterval timeInterval,
double distance,
LengthUnit units)
Check whether this object existed (its first sample occurred before the beginning of timeInterval) and
has been dwelling within the specified distance during the duration of timeInterval.
|
boolean |
hasBeenDwellingWithinDistanceSince(Geometry geometry,
java.time.ZonedDateTime time,
double distance,
LengthUnit units)
Check whether this object existed (its first sample occurred before time) and
has been dwelling within the specified distance since time.
|
boolean |
hasEntered(Polygon area)
Check whether this object has entered the specified area during its known history.
|
boolean |
hasEnteredSince(Polygon area,
java.time.ZonedDateTime time)
Check whether this object has entered the specified area since the specified moment
|
boolean |
hasExited(Polygon area)
Check whether this object has exited the specified area during its known history.
|
boolean |
hasExitedSince(Polygon area,
java.time.ZonedDateTime time)
Check whether this object has exited the specified area since the specified moment
|
boolean |
isAccelerating() |
boolean |
isAccelerating(java.time.ZonedDateTime timestamp) |
boolean |
isApproaching(Geometry geometry)
Check if the object is approaching the given geometry
|
boolean |
isDecelerating() |
boolean |
isDecelerating(java.time.ZonedDateTime timestamp) |
boolean |
isLeaving(Geometry geometry)
Check if the object is leaving the given geometry
|
boolean |
isMoving(double threshold,
SpeedUnit speedUnit)
Check whether this object is moving.
|
void |
setGeometryAtTime(T geometry,
java.time.ZonedDateTime timestamp)
Report a geometry value at a specific moment
|
void |
setHistoryTimeLimit(java.time.Duration duration) |
void |
setId(java.lang.String id)
Set the id of the gometry
|
getMovingGeometryclone, contains, equals, getArea, getArea, getBoundingBox, getContained, getContainers, getCoordinateReferenceSystem, getDistance, getHeading, getKNearestNeighbors, getNearestNeighbor, getReferencePoint, getSqrDistance, getWithinDistance, intersects, setHeading, setReferencePoint, toString, toStringvoid setHistoryTimeLimit(java.time.Duration duration)
duration - java.time.Duration getHistoryTimeLimit()
T getGeometry()
SpatialgetGeometry in interface SpatialgetLastObservedGeometry().Spatial#getGeometry()},
MovingGeometry#getLastObservedGeometry()}Geometry getGeometryAtTime(java.time.ZonedDateTime timestamp)
timestamp - void setGeometryAtTime(T geometry, java.time.ZonedDateTime timestamp)
geometry - timestamp - Snapshot<T> getSnapshot(int index)
index - java.util.List<Snapshot<T>> getSnapshots(TimeInterval timeInterval)
timeInterval - java.util.List<Snapshot<T>> getSnapshots(java.util.List<TimeInterval> timeIntervals)
timeIntervals - int getNumberOfSnapshots()
boolean isApproaching(Geometry geometry)
geometry - - geometry to which this object is approachingboolean isLeaving(Geometry geometry)
geometry - - geometry which this object is leavingboolean hasEntered(Polygon area)
area - boolean hasEnteredSince(Polygon area, java.time.ZonedDateTime time)
area - time - boolean hasExited(Polygon area)
area - boolean hasExitedSince(Polygon area, java.time.ZonedDateTime time)
area - time - boolean hasBeenDwellingInAreaSince(Polygon area, java.time.ZonedDateTime time)
area - time - boolean hasBeenDwellingInAreaDuringTimePeriod(Polygon area, TimeInterval timeInterval)
area - timeInterval - boolean hasBeenDwellingWithinDistanceDuringTimePeriod(Geometry geometry, TimeInterval timeInterval, double distance, LengthUnit units)
geometry - the other geometrytimeInterval - distance - maximal distance limitunits - the distance unitsboolean hasBeenDwellingWithinDistanceSince(Geometry geometry, java.time.ZonedDateTime time, double distance, LengthUnit units)
geometry - the other geometrytime - distance - units - maximal distance limitjava.time.ZonedDateTime getFirstObservedTime()
java.time.ZonedDateTime getLastObservedTime()
T getFirstObservedGeometry()
T getLastObservedGeometry()
java.util.List<TimeInterval> getEncounters(Geometry geometry, double maxDistance, LengthUnit distanceUnits)
geometry - maxDistance - maximal distance that qualifies as an encounterdistanceUnits - java.time.Duration getDuration()
MovingGeometry<T> getSubtrajectory(TimeInterval interval)
interval - LineString getLineString()
double getSynchronizedDistanceMax(MovingGeometry<? extends Geometry> otherTrjectory, LengthUnit units)
interval - the interval for which the subtrajectory is requiresdouble getSynchronizedDistanceMin(MovingGeometry<? extends Geometry> otherTrjectory, LengthUnit units)
otherMovingGeometry - the other instance to compute the distance todouble getSynchronizedDistanceSum(MovingGeometry<? extends Geometry> otherMovingGeometry, LengthUnit units)
otherMovingGeometry - the other instance to compute the distance todouble getFretchetDistance(MovingGeometry<? extends Geometry> otherMovingGeometry, LengthUnit units)
otherMovingGeometry - units - - the length unit of the resultdouble getDynamicTimeWarpingDistance(MovingGeometry<? extends Geometry> otherMovingGeometry, LengthUnit units)
otherSolidMovingGeometry - units - - the length unit of the resultdouble getMinRouteDistance(MovingGeometry<T> stg, LengthUnit units)
otherSolidMovingGeometry - units - - the length unit of the resultdouble getAcceleration(AccelerationUnit accelerationUnit)
accelerationUnit - double getAcceleration(java.time.ZonedDateTime timestamp,
AccelerationUnit accelerationUnit)
accelerationUnit - boolean isAccelerating()
boolean isAccelerating(java.time.ZonedDateTime timestamp)
timestamp - boolean isDecelerating()
boolean isDecelerating(java.time.ZonedDateTime timestamp)
timestamp - double getSpeed(SpeedUnit speedUnit)
speedUnit - double getSpeed(java.time.ZonedDateTime timestamp,
SpeedUnit speedUnit)
timestamp - speedUnit - double getAvgSpeed(SpeedUnit speedUnit, TimeInterval timeInterval)
speedUnit - timeInterval - double getMinSpeed(SpeedUnit speedUnit, TimeInterval timeInterval)
speedUnit - timeInterval - double getMaxSpeed(SpeedUnit speedUnit, TimeInterval timeInterval)
speedUnit - timeInterval - double getAvgSpeed(SpeedUnit speedUnit)
speedUnit - timeInterval - double getMinSpeed(SpeedUnit speedUnit)
speedUnit - double getMaxSpeed(SpeedUnit speedUnit)
speedUnit - double getLength(LengthUnit units)
boolean isMoving(double threshold,
SpeedUnit speedUnit)
threshold - - the minimal speed which qualifies as movementspeedUnit - - units for speedvoid setId(java.lang.String id)
id - java.lang.String getId()
© Copyright IBM 2017