Package dataMap
Class OfflineDataMapPoint
java.lang.Object
dataMap.OfflineDataMapPoint
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<OfflineDataMapPoint>
,ManagedParameters
- Direct Known Subclasses:
BinaryOfflineDataMapPoint
,DBOfflineDataMapPoint
,FileDataMapPoint
,OfflineFileMapPoint
,TideOfflineDataMapPoint
public abstract class OfflineDataMapPoint
extends Object
implements Comparable<OfflineDataMapPoint>, Serializable, Cloneable, ManagedParameters
Map points to go into an OfflineDataMap.
- Author:
- Doug Gillespie
- See Also:
-
Constructor Summary
ConstructorDescriptionOfflineDataMapPoint
(long startTime, long endTime, int nDatas, long missingUIDs) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addOneData
(long timeMilliseconds) clone()
boolean
coincides
(long startTime, long endTime) Test whether or not this map point overlaps with a pair of times.int
boolean
long
abstract Long
abstract Long
long
abstract String
getName()
int
Get a set of data that describes all of the parameters in a classlong
void
setEndTime
(long endTime) abstract void
setHighestUID
(Long uid) abstract void
setLowestUID
(Long uid) void
setMatchedPoint
(OfflineDataMapPoint matchedPoint) void
setMinMaxUID
(Long uid) Add a uid to this map point which will keep track of the lowest and largest values.void
setMissingUIDs
(long missingUIDs) void
setNDatas
(int datas) void
setStartTime
(long startTime) toString()
-
Constructor Details
-
OfflineDataMapPoint
public OfflineDataMapPoint(long startTime, long endTime, int nDatas, long missingUIDs)
-
-
Method Details
-
getName
- Returns:
- a name for the map point
-
clone
-
getStartTime
public long getStartTime()- Returns:
- the startTime
-
setStartTime
public void setStartTime(long startTime) - Parameters:
startTime
- the startTime to set
-
getEndTime
public long getEndTime()- Returns:
- the endTime
-
setEndTime
public void setEndTime(long endTime) - Parameters:
endTime
- the endTime to set
-
setMinMaxUID
Add a uid to this map point which will keep track of the lowest and largest values.- Parameters:
uid
- can be null (will be null for old data).
-
getNDatas
public int getNDatas()- Returns:
- the nDatas
-
setNDatas
public void setNDatas(int datas) - Parameters:
datas
- the nDatas to set
-
coincides
public boolean coincides(long startTime, long endTime) Test whether or not this map point overlaps with a pair of times.- Parameters:
startTime
- start time in millisecondsendTime
- end time in milliseconds.- Returns:
- true if there is any overlap.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<OfflineDataMapPoint>
-
equals
-
getMatchedPoint
- Returns:
- the matchedPoint
-
setMatchedPoint
- Parameters:
matchedPoint
- the matchedPoint to set
-
getLowestUID
- Returns:
- the lowestUId
-
setLowestUID
-
getHighestUID
- Returns:
- the highestUID
-
setHighestUID
-
getMissingUIDs
public long getMissingUIDs()- Returns:
- the missingUIDs
-
setMissingUIDs
public void setMissingUIDs(long missingUIDs) - Parameters:
missingUIDs
- the missingUIDs to set
-
addMissingUID
public void addMissingUID() -
toString
-
addOneData
public void addOneData(long timeMilliseconds) -
getParameterSet
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-