Class TGPair
- java.lang.Object
-
- edu.gsu.cs.dmlab.solgrind.base.types.essential.TGPair
-
- All Implemented Interfaces:
Comparable<TGPair>
public class TGPair extends Object implements Comparable<TGPair>
- Author:
- Berkay Aydin, Data Mining Lab, Georgia State University
-
-
Constructor Summary
Constructors Constructor Description TGPair(long start, long end, org.locationtech.jts.geom.Geometry geom)
TGPair(long start, long end, org.locationtech.jts.geom.Geometry geom, String KBarchivID)
TGPair(long start, long end, org.locationtech.jts.geom.Geometry geom, String KBarchivID, Boolean interpolated)
TGPair(long stime, org.locationtech.jts.geom.Geometry geom)
TGPair(String startTimestamp, org.locationtech.jts.geom.Geometry geom)
TGPair(org.joda.time.DateTime start, org.joda.time.DateTime end, org.locationtech.jts.geom.Geometry geom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(TGPair tgp)
org.locationtech.jts.geom.Envelope
getEnvelope()
org.locationtech.jts.geom.Geometry
getGeometry()
boolean
getInterpolated()
org.joda.time.Interval
getTInterval()
double
getVolume()
void
setGeometry(org.locationtech.jts.geom.Geometry geom)
void
setInterpolated(boolean interpolated)
boolean
sOverlaps(TGPair tgp)
Spatial-only overlaps method.boolean
stOverlaps(TGPair tgp)
Spatiotemporal overlaps method.boolean
tOverlaps(TGPair tgp)
Temporal-only overlaps method Checks of the intervals of the objects overlap in time
-
-
-
Constructor Detail
-
TGPair
public TGPair(long start, long end, org.locationtech.jts.geom.Geometry geom)
-
TGPair
public TGPair(long start, long end, org.locationtech.jts.geom.Geometry geom, String KBarchivID, Boolean interpolated)
-
TGPair
public TGPair(long start, long end, org.locationtech.jts.geom.Geometry geom, String KBarchivID)
-
TGPair
public TGPair(long stime, org.locationtech.jts.geom.Geometry geom)
-
TGPair
public TGPair(org.joda.time.DateTime start, org.joda.time.DateTime end, org.locationtech.jts.geom.Geometry geom)
-
TGPair
public TGPair(String startTimestamp, org.locationtech.jts.geom.Geometry geom)
-
-
Method Detail
-
getEnvelope
public org.locationtech.jts.geom.Envelope getEnvelope()
-
getVolume
public double getVolume()
-
getInterpolated
public boolean getInterpolated()
-
setInterpolated
public void setInterpolated(boolean interpolated)
-
stOverlaps
public boolean stOverlaps(TGPair tgp)
Spatiotemporal overlaps method. Checks if the given time geometry pair both temporally and spatially intersects with the parameter tgp.- Returns:
- True if overlap occurs, False otherwise
-
sOverlaps
public boolean sOverlaps(TGPair tgp)
Spatial-only overlaps method. Checks if the geometries of the objects overlap in space- Parameters:
tgp
-- Returns:
-
tOverlaps
public boolean tOverlaps(TGPair tgp)
Temporal-only overlaps method Checks of the intervals of the objects overlap in time- Parameters:
tgp
-- Returns:
-
getTInterval
public org.joda.time.Interval getTInterval()
-
getGeometry
public org.locationtech.jts.geom.Geometry getGeometry()
-
setGeometry
public void setGeometry(org.locationtech.jts.geom.Geometry geom)
-
compareTo
public int compareTo(TGPair tgp)
- Specified by:
compareTo
in interfaceComparable<TGPair>
-
-