|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.ca.Monitor
Monitor
| Field Summary | |
static int |
ALARM
The monitor is triggered when the PV alarm state change. |
static int |
LOG
The monitor is triggered when the PV log value change. |
protected boolean |
m_bolMonitoring
|
protected int |
m_intMaskEvent
|
protected Channel |
m_xalChan
|
static int |
VALUE
The monitor is triggered when the PV value change. |
| Constructor Summary | |
protected |
Monitor(Channel chan,
int intMaskEvent)
Creates new Monitor |
| Method Summary | |
protected abstract void |
begin()
Start the channel monitoring |
abstract void |
clear()
Stop the monitoring of PV |
protected void |
finalize()
Make sure monitoring is shut down before destruction |
Channel |
getChannel()
Return the associated Channel object |
protected void |
post(IEventSinkValStatus listener,
StatusAdaptor adaptor)
Post the value-status record to the listener. |
protected void |
post(IEventSinkValTime listener,
TimeAdaptor adaptor)
Post the value-status-timestamp record to the listener. |
protected void |
post(IEventSinkValue listener,
ValueAdaptor adaptor)
Post the value record to the listener. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int VALUE
public static final int LOG
public static final int ALARM
protected boolean m_bolMonitoring
protected int m_intMaskEvent
protected Channel m_xalChan
| Constructor Detail |
protected Monitor(Channel chan,
int intMaskEvent)
throws ConnectionException
chan - Channel object to monitorintMaskEvent - code specifying when monitor event is fired
ConnectionException - Channel is not connected| Method Detail |
public abstract void clear()
public Channel getChannel()
protected abstract void begin()
throws MonitorException
MonitorException - unable to setup the channel access monitorprotected void finalize()
finalize in class java.lang.Object
protected final void post(IEventSinkValue listener,
ValueAdaptor adaptor)
listener - The object receiving the monitor record.adaptor - The adaptor to the internal data record.
protected final void post(IEventSinkValStatus listener,
StatusAdaptor adaptor)
listener - The object receiving the monitor record.adaptor - The adaptor to the internal data record.
protected final void post(IEventSinkValTime listener,
TimeAdaptor adaptor)
listener - The object receiving the monitor record.adaptor - The adaptor to the internal data record.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||