Package edu.gsu.cs.dmlab.datatypes
Class GeneralSTInterpolationEvent
- java.lang.Object
-
- edu.gsu.cs.dmlab.datatypes.BaseTemporalObject
-
- edu.gsu.cs.dmlab.datatypes.GeneralSTObject
-
- edu.gsu.cs.dmlab.datatypes.GeneralSTInterpolationEvent
-
- All Implemented Interfaces:
IBaseTemporalObject
,ISpatialTemporalObj
,ISTInterpolationEvent
public class GeneralSTInterpolationEvent extends GeneralSTObject implements ISTInterpolationEvent
Is an event object used to represent a single detection of a solar event taken from HEK. This object contains the logic needed for interpolation. Mainly the ability to update the interval of this event and an indicator of it being interpolated or not.- Author:
- Dustin Kempton, Data Mining Lab, Georgia State University Michael Tinglof, 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 GeneralSTInterpolationEvent(int id, org.joda.time.Interval timePeriod, EventType type, org.locationtech.jts.geom.Geometry geometry)
Constructor that assumes the object is representing an object from the database and not one that has been interpolated.GeneralSTInterpolationEvent(org.joda.time.Interval timePeriod, EventType type, org.locationtech.jts.geom.Geometry geometry)
Default constructor that assumes that the object is representing an interpolated event object.
-
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 representsEventType
getType()
Returns the type of event that this object represents.boolean
isInterpolated()
Returns an indicator of whether the trajectory is interpolated or not.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
-
GeneralSTInterpolationEvent
public GeneralSTInterpolationEvent(org.joda.time.Interval timePeriod, EventType type, org.locationtech.jts.geom.Geometry geometry)
Default constructor that assumes that the object is representing an interpolated event object.- Parameters:
timePeriod
- The valid time for this event representation.type
- The type of event that this object represents.geometry
- The geometry of this object.
-
GeneralSTInterpolationEvent
public GeneralSTInterpolationEvent(int id, org.joda.time.Interval timePeriod, EventType type, org.locationtech.jts.geom.Geometry geometry)
Constructor that assumes the object is representing an object from the database and not one that has been interpolated.- Parameters:
id
- The id of the event in the database so we can reference back to the database to store the interpolated objects between this and another one from the database.timePeriod
- The valid time for this event representation.type
- The type of event that this object represents.geometry
- The geometry of this object.
-
-
Method Detail
-
getId
public int getId()
Description copied from interface:ISTInterpolationEvent
Returns the primary key Id in a database, of the event that this object represents- Specified by:
getId
in interfaceISTInterpolationEvent
- Returns:
- id of the event that this object represents if the event was already stored in the database. This will be -1 for objects created by interpolation because they have yet to be stored in the database.
-
isInterpolated
public boolean isInterpolated()
Description copied from interface:ISTInterpolationEvent
Returns an indicator of whether the trajectory is interpolated or not. This is just so we can have an indicator of this.- Specified by:
isInterpolated
in interfaceISTInterpolationEvent
- Returns:
- True if the trajectory is interpolated, false if it is not.
-
updateTimePeriod
public void updateTimePeriod(org.joda.time.Interval period)
Description copied from interface:ISTInterpolationEvent
Updates the time period that this object is valid- Specified by:
updateTimePeriod
in interfaceISTInterpolationEvent
- Parameters:
period
- the new period for this object to be considered valid over
-
getType
public EventType getType()
Description copied from interface:ISTInterpolationEvent
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 interfaceISTInterpolationEvent
- Returns:
- the type of event that this object represents.
-
-