Package edu.gsu.cs.dmlab.datatypes
Class GeneralSTTrackingEvent
- java.lang.Object
-
- edu.gsu.cs.dmlab.datatypes.BaseTemporalObject
-
- edu.gsu.cs.dmlab.datatypes.GeneralSTObject
-
- edu.gsu.cs.dmlab.datatypes.GeneralSTTrackingEvent
-
- All Implemented Interfaces:
IBaseTemporalObject
,ISpatialTemporalObj
,ISTTrackingEvent
public class GeneralSTTrackingEvent extends GeneralSTObject implements ISTTrackingEvent
Is an event object used to represent a single detection of a solar event taken from HEK. This object contains the logic needed for tracking. Mainly the ability to link this event to others to form a 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 GeneralSTTrackingEvent(int id, EventType type, org.joda.time.Interval timePeriod, org.locationtech.jts.geom.Geometry geometry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
Returns the primary key Id in a database, of the event that this object representsISTTrackingEvent
getNext()
Returns a pointer to the event detection that is considered the next detection of the same object.ISTTrackingEvent
getPrevious()
Returns a pointer to the event detection that is considered the previous detection of the same object.EventType
getType()
Returns the type of event that this object represents.void
setNext(ISTTrackingEvent event)
Sets a pointer to the event detection that is considered the next detection of the same object.void
setPrevious(ISTTrackingEvent event)
Sets a pointer to the event detection that is considered the previous detection of the same object.void
updateTimePeriod(org.joda.time.Interval period)
Updates the time period that this object is valid-
Methods inherited from class edu.gsu.cs.dmlab.datatypes.GeneralSTObject
getCentroid, getEnvelope, getGeometry, getVolume
-
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
-
Methods inherited from interface edu.gsu.cs.dmlab.datatypes.interfaces.ISpatialTemporalObj
getCentroid, getEnvelope, getGeometry, getVolume
-
-
-
-
Constructor Detail
-
GeneralSTTrackingEvent
public GeneralSTTrackingEvent(int id, EventType type, org.joda.time.Interval timePeriod, org.locationtech.jts.geom.Geometry geometry)
-
-
Method Detail
-
getId
public int getId()
Description copied from interface:ISTTrackingEvent
Returns the primary key Id in a database, of the event that this object represents- Specified by:
getId
in interfaceISTTrackingEvent
- Returns:
- id of the event that this object represents
-
updateTimePeriod
public void updateTimePeriod(org.joda.time.Interval period)
Description copied from interface:ISTTrackingEvent
Updates the time period that this object is valid- Specified by:
updateTimePeriod
in interfaceISTTrackingEvent
- Parameters:
period
- the new period for this object to be considered valid over
-
getType
public EventType getType()
Description copied from interface:ISTTrackingEvent
Returns the type of event that this object represents. It is usually a two letter designation such as AR for Active IRegion, SS for Sun Spot etc.- Specified by:
getType
in interfaceISTTrackingEvent
- Returns:
- the type of event that this object represents.
-
getPrevious
public ISTTrackingEvent getPrevious()
Description copied from interface:ISTTrackingEvent
Returns a pointer to the event detection that is considered the previous detection of the same object.- Specified by:
getPrevious
in interfaceISTTrackingEvent
- Returns:
- pointer to the previous detection in the chain.
-
setPrevious
public void setPrevious(ISTTrackingEvent event)
Description copied from interface:ISTTrackingEvent
Sets a pointer to the event detection that is considered the previous detection of the same object. This method only changes the pointer from null to a non-null value. Once it is set, it does not change with the next call.- Specified by:
setPrevious
in interfaceISTTrackingEvent
- Parameters:
event
- the previous detection in the chain
-
getNext
public ISTTrackingEvent getNext()
Description copied from interface:ISTTrackingEvent
Returns a pointer to the event detection that is considered the next detection of the same object.- Specified by:
getNext
in interfaceISTTrackingEvent
- Returns:
- a pointer to the next detection in the chain.
-
setNext
public void setNext(ISTTrackingEvent event)
Description copied from interface:ISTTrackingEvent
Sets a pointer to the event detection that is considered the next detection of the same object. This method only changes the pointer from null to a non-null value. Once it is set, it does not change with the next call.- Specified by:
setNext
in interfaceISTTrackingEvent
- Parameters:
event
- the next detection in the chain
-
-