|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.tools.pvlogger.ChannelSnapshot
ChannelSnapshot is a representation of the data associated with a channel at some point in time.
| Field Summary | |
protected java.lang.String |
_pv
|
protected int |
_severity
|
protected int |
_status
|
protected Timestamp |
_timestamp
|
protected double[] |
_value
|
| Constructor Summary | |
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. |
|
| Method Summary | |
java.lang.String |
getPV()
Get the PV |
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 |
java.lang.String |
toString()
Override toString() to describe the snapshot in a meaningful way. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected final java.lang.String _pv
protected final Timestamp _timestamp
protected final double[] _value
protected final int _status
protected final int _severity
| Constructor Detail |
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 timestamp| Method Detail |
public java.lang.String getPV()
public double[] getValue()
public int getStatus()
public int getSeverity()
public Timestamp getTimestamp()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||