
public class TrendableOPCRecord extends Object implements TrendableRecord
| Constructor and Description |
|---|
TrendableOPCRecord(String masterKey,
Instant masterTimestamp,
Map<String,Serializable> items)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Serializable> |
getItems()
Gets the map of trending keys to serializable values.
|
String |
getMasterKey()
Gets the master key for the record.
|
Instant |
getMasterTimestamp()
Gets the master timestamp for the record.
|
boolean |
hasLimitViolation()
Gets the value of the limit violation flag for this record.
|
boolean |
hasMalfunction()
Gets the value of the instrument malfunction flag for this record.
|
void |
post(org.lsst.ccs.Subsystem subsys)
Post this data to the local CCS trending database.
|
String |
toString()
Create a printable representation of this object.
|
public TrendableOPCRecord(String masterKey, Instant masterTimestamp, Map<String,Serializable> items)
masterKey - Will become the master key.masterTimestamp - Will the common timestamp.items - A Map from value key to serializable value.public String getMasterKey()
getMasterKey in interface TrendableRecordpublic Instant getMasterTimestamp()
getMasterTimestamp in interface TrendableRecordpublic boolean hasLimitViolation()
hasLimitViolation in interface TrendableRecordpublic boolean hasMalfunction()
hasMalfunction in interface TrendableRecordpublic Map<String,Serializable> getItems()
getItems in interface TrendableRecordpublic void post(org.lsst.ccs.Subsystem subsys)
KeyValueDataList to which is added
one item for each data channel.post in interface TrendableRecordsubsys - A reference to the CCS subsystem object.Copyright © 2017 LSST. All rights reserved.