public final class DataRecord extends Object implements Serializable
| Constructor and Description |
|---|
DataRecord(Instant startTime,
Duration duration,
String location,
Set<RecordFlag> flags,
List<ChannelDatum> channels)
Creates a new instance from the field values.
|
| Modifier and Type | Method and Description |
|---|---|
Stream<ChannelDatum> |
getChannels()
Gets the channel data associated with this record.
|
Duration |
getDuration()
Gets the length of time for which data was collected for this record.
|
Set<RecordFlag> |
getFlags()
The device status flags for the record.
|
String |
getLocation()
Gets the location at which the record's data was taken.
|
Instant |
getStartTime()
Gets the time at which data collection was started for this record.
|
String |
toString()
Returns a string representation of the data record.
|
public DataRecord(Instant startTime, Duration duration, String location, Set<RecordFlag> flags, List<ChannelDatum> channels)
startTime - The start time. See getStartTime().duration - The duration. See getDuration().location - The location. See getLocation().flags - The record flags. See getFlags().channels - The channel data items. See getChannels().public Instant getStartTime()
public Duration getDuration()
public String getLocation()
public Set<RecordFlag> getFlags()
public Stream<ChannelDatum> getChannels()
public String toString()
begin record
start yyyy-mm-ddThh24:mm:ssZ
duration xxxxx seconds
location B84_123
status laser! sampler!
channel 10.0 counter 12230 particles
channel 2.5 counter 14 particles
channel temp temperature 39.1 Celsius
channel hum relhumidity 1.0 percent
end record
Copyright © 2019 LSST. All rights reserved.