public class MonitoredPV
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected ScanChannelMonitor |
_monitor
monitor of channel to monitor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStateListener(java.awt.event.ActionListener actionListener)
Add a listener for state change events from this monitored PV
|
void |
addValueListener(java.awt.event.ActionListener actionListener)
Add a listener for value change events from this monitored PV
|
java.lang.String |
getAlias()
Returns the alias attribute of the MonitoredPV object
|
static java.lang.Object[] |
getAliases()
Returns the aliases attribute of the MonitoredPV class
|
Channel |
getChannel()
Get the channel to be monitored
|
java.lang.String |
getChannelName()
Get the name of the channel to be monitored
|
static MonitoredPV |
getMonitoredPV(java.lang.String alias)
Returns the monitoredPV attribute of the MonitoredPV class
|
double |
getValue()
Get the latest value of the monitored channel
|
boolean |
isGood()
Determine whether the channel is good meaning that it is connected, has posted a monitored value and the latest event was successful
|
static void |
removeMonitoredPV(MonitoredPV mpv)
Dispose of the monitored PV and remove its alias
|
static void |
removeMonitoredPV(java.lang.String alias)
Remove the monitored PV associated with the alias
|
void |
removeStateListener(java.awt.event.ActionListener actionListener)
Remove the listener from getting state change events from this monitored PV
|
void |
removeValueListener(java.awt.event.ActionListener actionListener)
Remove the listener from getting value change events from this monitored PV
|
void |
setChannel(Channel channel)
Sets the channel to monitor
|
void |
setChannelName(java.lang.String channelName)
Set the name of the channel to monitor
|
void |
setChannelNameQuietly(java.lang.String chanName)
Sets the name of the channel to monitor without posting events
|
void |
setChannelQuietly(Channel channel)
Sets the channelQuietly attribute of the MonitoredPV object
|
void |
setValueChanged(boolean valueChanged)
Sets the boolean marker to the specified change state
|
void |
startMonitor()
Start the monitor
|
void |
stopMonitor()
Stop the monitor
|
boolean |
valueChanged()
Determine whether the value was changed since the last reset (i.e.
|
protected ScanChannelMonitor _monitor
public static MonitoredPV getMonitoredPV(java.lang.String alias)
alias - The Parameterpublic boolean valueChanged()
public void setValueChanged(boolean valueChanged)
valueChanged - The new value change marker statepublic static void removeMonitoredPV(java.lang.String alias)
alias - The Parameterpublic static void removeMonitoredPV(MonitoredPV mpv)
mpv - the monitored PV to removepublic static java.lang.Object[] getAliases()
public java.lang.String getAlias()
public java.lang.String getChannelName()
public Channel getChannel()
public void setChannel(Channel channel)
channel - the new channel to monitorpublic void setChannelQuietly(Channel channel)
channel - The new channelQuietly valuepublic void setChannelName(java.lang.String channelName)
channelName - The new channelName valuepublic void setChannelNameQuietly(java.lang.String chanName)
chanName - The new channelNameQuietly valuepublic double getValue()
public boolean isGood()
public void addStateListener(java.awt.event.ActionListener actionListener)
actionListener - listener of state change eventspublic void removeStateListener(java.awt.event.ActionListener actionListener)
actionListener - the listener to removepublic void addValueListener(java.awt.event.ActionListener actionListener)
actionListener - The listener to add for value change eventspublic void removeValueListener(java.awt.event.ActionListener actionListener)
actionListener - the listener to removepublic void stopMonitor()
public void startMonitor()