public class ChannelSnapshot
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
_pv
raw process variable
|
protected int |
_severity
severity code
|
protected int |
_status
status code
|
protected Timestamp |
_timestamp
time stamp reported for the channel monitor event
|
protected double[] |
_value
value array
|
| Constructor and Description |
|---|
ChannelSnapshot(java.lang.String pv,
ChannelTimeRecord record)
Constructor of a snaphsot from a channel record.
|
ChannelSnapshot(java.lang.String pv,
double[] value,
int status,
int severity,
Timestamp timestamp)
Primary constructor of a snapshot.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPV()
Get the PV
|
double |
getScalarValue()
get the scalar value which corresponds to the first element of the value array if it exists or NaN otherwise
|
int |
getSeverity()
Get the severity of the PV at the time of the snapshot.
|
int |
getStatus()
Get the status of the PV at the time of the snapshot.
|
Timestamp |
getTimestamp()
Get the timestamp of the PV's data identifying the time the data was acquired.
|
double[] |
getValue()
Get the value of the PV's data at the time of the snapshot
|
int |
getValueCount()
Get the number of elements in the value array
|
java.lang.String |
toString()
Override toString() to describe the snapshot in a meaningful way.
|
protected final java.lang.String _pv
protected final Timestamp _timestamp
protected final double[] _value
protected final int _status
protected final int _severity
public ChannelSnapshot(java.lang.String pv,
double[] value,
int status,
int severity,
Timestamp timestamp)
pv - The PV identifying the channel.value - The value of the channel's data at the time of the snapshot.status - The status of the channel at the time of the snapshot.severity - The severity of the channel at the time of the snapshot.timestamp - The timestamp of the snapshot identifying when the data was acquired.public ChannelSnapshot(java.lang.String pv,
ChannelTimeRecord record)
pv - The PV identifying the channel.record - The record holding the channel data, state and timestamppublic java.lang.String getPV()
public double[] getValue()
public double getScalarValue()
public int getValueCount()
public int getStatus()
public int getSeverity()
public Timestamp getTimestamp()
public java.lang.String toString()
toString in class java.lang.Object