Package edu.gsu.cs.dmlab.datatypes
Class GeneralSTTrackingTrajectory
- java.lang.Object
-
- edu.gsu.cs.dmlab.datatypes.BaseTemporalObject
-
- edu.gsu.cs.dmlab.datatypes.GeneralSTTrackingTrajectory
-
- All Implemented Interfaces:
IBaseTemporalObject
,ISpatialTemporalTrajectory<ISTTrackingEvent>
,ISTTrackingTrajectory
public class GeneralSTTrackingTrajectory extends BaseTemporalObject implements ISTTrackingTrajectory
Is an trajectory object used to represent track of a solar event taken from HEK. It is composed of a number of individual reports linked together to represent the trajectory. This object contains the logic needed for tracking. Mainly the ability to traverse a doubly linked list of event detections to update the list of detections that are in the trajectory.- 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 GeneralSTTrackingTrajectory(ISTTrackingEvent event)
Constructor that assumes that the head and tail event of the linked list of detections is the same object.GeneralSTTrackingTrajectory(ISTTrackingEvent headEvent, ISTTrackingEvent tailEvent)
Constructor that uses a head and tail event to point to the head of the doubly linked list of detections and the tail of the linked list of detections.
-
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.ISTTrackingEvent
getFirst()
Returns the first event in the trackISTTrackingEvent
getLast()
Returns the last event in the trackorg.locationtech.jts.geom.Envelope
getMBR()
SortedSet<ISTTrackingEvent>
getSTObjects()
Produces a sorted set of all the spatiotemporal objects contained in this trajectory.org.joda.time.Interval
getTimePeriod()
Returns the time period that the object is valid forEventType
getType()
Returns the event type of the trackdouble
getVolume()
Computes the volume of this trajectory by using the volume of each of the spatiotemporal objects it contains.int
size()
Gets the number of spatiotemporal objects contained in this trajectory.-
Methods inherited from class edu.gsu.cs.dmlab.datatypes.BaseTemporalObject
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
getUUID
-
-
-
-
Constructor Detail
-
GeneralSTTrackingTrajectory
public GeneralSTTrackingTrajectory(ISTTrackingEvent headEvent, ISTTrackingEvent tailEvent)
Constructor that uses a head and tail event to point to the head of the doubly linked list of detections and the tail of the linked list of detections. This is to save having to traverse the list- Parameters:
headEvent
- The head of the linked list of event detections.tailEvent
- The tail of the linked list of event detections.
-
GeneralSTTrackingTrajectory
public GeneralSTTrackingTrajectory(ISTTrackingEvent event)
Constructor that assumes that the head and tail event of the linked list of detections is the same object.- Parameters:
event
- The event detection to be set as both the head and tail of the linked list of event detections that represent this trajectory.
-
-
Method Detail
-
getSTObjects
public SortedSet<ISTTrackingEvent> getSTObjects()
Description copied from interface:ISpatialTemporalTrajectory
Produces a sorted set of all the spatiotemporal objects contained in this trajectory. The objects are ordered by their start time.- Specified by:
getSTObjects
in interfaceISpatialTemporalTrajectory<ISTTrackingEvent>
- Returns:
- A sorted set of all the spatiotemporal objects in this trajectory.
-
getMBR
public org.locationtech.jts.geom.Envelope getMBR()
- Specified by:
getMBR
in interfaceISpatialTemporalTrajectory<ISTTrackingEvent>
- Returns:
-
size
public int size()
Description copied from interface:ISpatialTemporalTrajectory
Gets the number of spatiotemporal objects contained in this trajectory.- Specified by:
size
in interfaceISpatialTemporalTrajectory<ISTTrackingEvent>
- Returns:
- The number of spatiotemporal objects in this trajectory.
-
getVolume
public double getVolume()
Description copied from interface:ISpatialTemporalTrajectory
Computes the volume of this trajectory by using the volume of each of the spatiotemporal objects it contains.- Specified by:
getVolume
in interfaceISpatialTemporalTrajectory<ISTTrackingEvent>
- Returns:
- The volume of the trajectory.
-
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
- Overrides:
getTimePeriod
in classBaseTemporalObject
- Returns:
- The interval over which the data type is valid.
-
getFirst
public ISTTrackingEvent getFirst()
Description copied from interface:ISTTrackingTrajectory
Returns the first event in the track- Specified by:
getFirst
in interfaceISTTrackingTrajectory
- Returns:
- the first event in the track
-
getLast
public ISTTrackingEvent getLast()
Description copied from interface:ISTTrackingTrajectory
Returns the last event in the track- Specified by:
getLast
in interfaceISTTrackingTrajectory
- Returns:
- the last event in the track
-
getType
public EventType getType()
Description copied from interface:ISTTrackingTrajectory
Returns the event type of the track- Specified by:
getType
in interfaceISTTrackingTrajectory
- Returns:
- the event type of the track
-
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
- Overrides:
compareTime
in classBaseTemporalObject
- 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.
-
-