Package dataGram
Class Datagram
java.lang.Object
dataGram.Datagram
- All Implemented Interfaces:
Serializable
,ManagedParameters
- Direct Known Subclasses:
CPODDataGram
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.
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataPoint
(DatagramDataPoint datagramPoint) Add a data point to a datagramgetDataPoint
(int iDataPoint) int
int
Get the number of data points.Get a set of data that describes all of the parameters in a classvoid
readDatagramData
(DataInputStream dis, int objectLength) boolean
Write the datagram to an output stream.
-
Constructor Details
-
Datagram
public Datagram(int intervalSeconds) - Parameters:
intervalSeconds
-
-
-
Method Details
-
getIntervalSeconds
public int getIntervalSeconds()- Returns:
- the intervalSeconds
-
getOfflineDataMapPoint
- Returns:
- the offlineDataMapPoint
-
getDataPoints
- Returns:
- the dataPoints
-
addDataPoint
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
- Parameters:
iDataPoint
-- Returns:
- a datagram point.
-
getLastDataPoint
-
writeDatagram
Write the datagram to an output stream.- Parameters:
dos
-- Returns:
-
readDatagramData
-
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.
-