Package edu.gsu.cs.dmlab.datatypes
Class BaseTemporalObject
- java.lang.Object
-
- edu.gsu.cs.dmlab.datatypes.BaseTemporalObject
-
- All Implemented Interfaces:
IBaseTemporalObject
- Direct Known Subclasses:
GeneralSTInterpolationTrajectory
,GeneralSTObject
,GeneralSTTrackingTrajectory
public class BaseTemporalObject extends Object implements IBaseTemporalObject
Is a generic temporal 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 Modifier and Type Field Description protected org.joda.time.Interval
timePeriod
-
Fields inherited from interface edu.gsu.cs.dmlab.datatypes.interfaces.IBaseTemporalObject
baseTemporalComparator
-
-
Constructor Summary
Constructors Constructor Description BaseTemporalObject()
BaseTemporalObject(org.joda.time.Interval timePeriod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTime(IBaseTemporalObject baseDataType)
Compares the valid time of another IBaseDataType to this object's valid time.org.joda.time.Interval
getTimePeriod()
Returns the time period that the object is valid forUUID
getUUID()
Returns a unique identifier for this object inside this program.
-
-
-
Method Detail
-
getTimePeriod
public org.joda.time.Interval getTimePeriod()
Description copied from interface:IBaseTemporalObject
Returns the time period that the object is valid for- Specified by:
getTimePeriod
in interfaceIBaseTemporalObject
- Returns:
- The interval over which the data type is valid.
-
compareTime
public int compareTime(IBaseTemporalObject baseDataType)
Description copied from interface:IBaseTemporalObject
Compares the valid time of another IBaseDataType to this object's valid time.- Specified by:
compareTime
in interfaceIBaseTemporalObject
- Parameters:
baseDataType
- The object to compare against this object.- Returns:
- a negative integer, zero, or a positive integer as the passed in object is less than, equal to, or greater than this object.
-
getUUID
public UUID getUUID()
Description copied from interface:IBaseTemporalObject
Returns a unique identifier for this object inside this program. This was added for use in caching because different event types may contain identifiers in the ID that overlap from one event type to the next. This is so we can uniquely identify this particular object when caching such things as image parameters.- Specified by:
getUUID
in interfaceIBaseTemporalObject
- Returns:
- A unique identifier for this object inside this program.
-
-