Package dataGram

Class Datagram

java.lang.Object
dataGram.Datagram
All Implemented Interfaces:
Serializable, ManagedParameters
Direct Known Subclasses:
CPODDataGram

public class Datagram extends Object implements Serializable, ManagedParameters
A datagram is a set of data which summarises the real data content in quite course bins of about 10 minutes (though this may vary).
Generally, Datagram data look a bit like very course spectrogram data, except that they are designed to show data density as a function of frequency instead of energy density as a function of frequency.
They can be calculated automatically from many types of data and are stored in the binary index files for easy access when mapping data.
Author:
Doug Gillespie
See Also:
  • Constructor Details

    • Datagram

      public Datagram(int intervalSeconds)
      Parameters:
      intervalSeconds -
  • Method Details

    • getIntervalSeconds

      public int getIntervalSeconds()
      Returns:
      the intervalSeconds
    • getOfflineDataMapPoint

      public OfflineDataMapPoint getOfflineDataMapPoint()
      Returns:
      the offlineDataMapPoint
    • getDataPoints

      public ArrayList<DatagramDataPoint> getDataPoints()
      Returns:
      the dataPoints
    • addDataPoint

      public void addDataPoint(DatagramDataPoint datagramPoint)
      Add a data point to a datagram
      Parameters:
      datagramPoint -
    • getNumDataPoints

      public int getNumDataPoints()
      Get the number of data points.
      Returns:
      the number of data points
    • getDataPoint

      public DatagramDataPoint getDataPoint(int iDataPoint)
      Parameters:
      iDataPoint -
      Returns:
      a datagram point.
    • getLastDataPoint

      public DatagramDataPoint getLastDataPoint()
    • writeDatagram

      public boolean writeDatagram(DataOutputStream dos)
      Write the datagram to an output stream.
      Parameters:
      dos -
      Returns:
    • readDatagramData

      public void readDatagramData(DataInputStream dis, int objectLength)
    • 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.