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 Details

    • OfflineDataMapPoint

      public OfflineDataMapPoint(long startTime, long endTime, int nDatas, long missingUIDs)
  • Method Details

    • getName

      public abstract String getName()
      Returns:
      a name for the map point
    • clone

      public OfflineDataMapPoint 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

      public void setMinMaxUID(Long uid)
      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 milliseconds
      endTime - end time in milliseconds.
      Returns:
      true if there is any overlap.
    • compareTo

      public int compareTo(OfflineDataMapPoint o)
      Specified by:
      compareTo in interface Comparable<OfflineDataMapPoint>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getMatchedPoint

      public OfflineDataMapPoint getMatchedPoint()
      Returns:
      the matchedPoint
    • setMatchedPoint

      public void setMatchedPoint(OfflineDataMapPoint matchedPoint)
      Parameters:
      matchedPoint - the matchedPoint to set
    • getLowestUID

      public abstract Long getLowestUID()
      Returns:
      the lowestUId
    • setLowestUID

      public abstract void setLowestUID(Long uid)
    • getHighestUID

      public abstract Long getHighestUID()
      Returns:
      the highestUID
    • setHighestUID

      public abstract void setHighestUID(Long uid)
    • getMissingUIDs

      public long getMissingUIDs()
      Returns:
      the missingUIDs
    • setMissingUIDs

      public void setMissingUIDs(long missingUIDs)
      Parameters:
      missingUIDs - the missingUIDs to set
    • addMissingUID

      public void addMissingUID()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • addOneData

      public void addOneData(long timeMilliseconds)
    • getParameterSet

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Returns:
      description of the parameters in a class.