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
ConstructorsConstructorDescriptionOfflineDataMapPoint(long startTime, long endTime, int nDatas, long missingUIDs)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddOneData(long timeMilliseconds) clone()booleancoincides(long startTime, long endTime) Test whether or not this map point overlaps with a pair of times.intbooleanlongabstract Longabstract Longlongabstract StringgetName()intGet a set of data that describes all of the parameters in a classlongvoidsetEndTime(long endTime) abstract voidsetHighestUID(Long uid) abstract voidsetLowestUID(Long uid) voidsetMatchedPoint(OfflineDataMapPoint matchedPoint) voidsetMinMaxUID(Long uid) Add a uid to this map point which will keep track of the lowest and largest values.voidsetMissingUIDs(long missingUIDs) voidsetNDatas(int datas) voidsetStartTime(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:
 compareToin 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:ManagedParametersGet a set of data that describes all of the parameters in a class- Specified by:
 getParameterSetin interfaceManagedParameters- Returns:
 - description of the parameters in a class.
 
 
 -