Package edu.gsu.cs.dmlab.datatypes
Class GeneralSTObject
- java.lang.Object
-
- edu.gsu.cs.dmlab.datatypes.BaseTemporalObject
-
- edu.gsu.cs.dmlab.datatypes.GeneralSTObject
-
- All Implemented Interfaces:
IBaseTemporalObject
,ISpatialTemporalObj
- Direct Known Subclasses:
GeneralSTInterpolationEvent
,GeneralSTTrackingEvent
public class GeneralSTObject extends BaseTemporalObject implements ISpatialTemporalObj
Is a generic spatialtemporal object type. One should derive a class by extending this class if a specific implementation for your specific project is needed.- Author:
- Dustin Kempton, Data Mining Lab, Georgia State University
-
-
Field Summary
-
Fields inherited from class edu.gsu.cs.dmlab.datatypes.BaseTemporalObject
timePeriod
-
Fields inherited from interface edu.gsu.cs.dmlab.datatypes.interfaces.IBaseTemporalObject
baseTemporalComparator
-
-
Constructor Summary
Constructors Constructor Description GeneralSTObject(org.joda.time.Interval timePeriod, org.locationtech.jts.geom.Geometry geometry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.locationtech.jts.geom.Point
getCentroid()
Computes the centroid of the envelope of this Geometry.org.locationtech.jts.geom.Envelope
getEnvelope()
Gets a Geometry representing the envelope (bounding box) of this Geometry.org.locationtech.jts.geom.Geometry
getGeometry()
Gets the Geometry of this object, which is a representation of a planar, linear vector geometry.double
getVolume()
Gets the area of this Geometry multiplied by the duration of this object.-
Methods inherited from class edu.gsu.cs.dmlab.datatypes.BaseTemporalObject
compareTime, getTimePeriod, getUUID
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.gsu.cs.dmlab.datatypes.interfaces.IBaseTemporalObject
compareTime, getTimePeriod, getUUID
-
-
-
-
Method Detail
-
getCentroid
public org.locationtech.jts.geom.Point getCentroid()
Description copied from interface:ISpatialTemporalObj
Computes the centroid of the envelope of this Geometry.- Specified by:
getCentroid
in interfaceISpatialTemporalObj
- Returns:
- The centroid of the envelope of this Geometry.
-
getEnvelope
public org.locationtech.jts.geom.Envelope getEnvelope()
Description copied from interface:ISpatialTemporalObj
Gets a Geometry representing the envelope (bounding box) of this Geometry.- Specified by:
getEnvelope
in interfaceISpatialTemporalObj
- Returns:
- a Geometry representing the envelope of this Geometry
-
getGeometry
public org.locationtech.jts.geom.Geometry getGeometry()
Description copied from interface:ISpatialTemporalObj
Gets the Geometry of this object, which is a representation of a planar, linear vector geometry.- Specified by:
getGeometry
in interfaceISpatialTemporalObj
- Returns:
- the Geometry of this object.
-
getVolume
public double getVolume()
Description copied from interface:ISpatialTemporalObj
Gets the area of this Geometry multiplied by the duration of this object. Areal Geometries have a non-zero area.- Specified by:
getVolume
in interfaceISpatialTemporalObj
- Returns:
- The computed volume of this spatio-temporal object.
-
-