Package xal.extension.scan
Class MonitoredArrayPV
java.lang.Object
xal.extension.scan.MonitoredArrayPV
This class keeps a reference to the PV with array data and listens to the
data change.
- Version:
- July 29, 2005
- Author:
- shishlo created October 31, 2005
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
finalize()
Removes the monitored PV.Returns the array listener that is one of the inner MonitoredPV object listenersReturns the channel.Returns the channel nameGets the monitoredPV attribute of the MonitoredArrayPV objectboolean
Returns true if the update monitor is working.Returns the syncObj reference.double[]
Returns the reference to the data array.void
setChannel
(Channel chIn) Sets the channel.void
setChannelName
(String chanName) Sets the channel name.void
setChannelNameQuietly
(String chanName) Sets the channel name without creating the monitor.void
setChannelQuietly
(Channel chIn) Sets the channel without creating the monitor.void
setSwitchOn
(boolean switchOn) Sets the switch on key for monitoring.protected void
setSyncObject
(Object syncObj) Sets the syncObject attribute of the MonitoredArrayPV object.
-
Constructor Details
-
MonitoredArrayPV
public MonitoredArrayPV()Constructor for the MonitoredArrayPV object.
-
-
Method Details
-
getArrayListener
Returns the array listener that is one of the inner MonitoredPV object listeners- Returns:
- The array listener object
-
getValues
public double[] getValues()Returns the reference to the data array. The operations with this array should be synchronized by syncObj that can be received by using getSyncObject() method.- Returns:
- The data array
-
setChannelName
Sets the channel name.- Parameters:
chanName
- The new channel name.
-
setChannelNameQuietly
Sets the channel name without creating the monitor.- Parameters:
chanName
- The new channel name.
-
getChannelName
Returns the channel name- Returns:
- The channel name.
-
setChannel
Sets the channel.- Parameters:
chIn
- The new channel.
-
setChannelQuietly
Sets the channel without creating the monitor.- Parameters:
chIn
- The new channel.
-
getChannel
Returns the channel.- Returns:
- The channel.
-
getSyncObject
Returns the syncObj reference. It is used for synchronization.- Returns:
- The syncObj reference
-
setSyncObject
Sets the syncObject attribute of the MonitoredArrayPV object. This method has to be called from UpdatingController class only.- Parameters:
syncObj
- The new syncObject value
-
getSwitchOn
public boolean getSwitchOn()Returns true if the update monitor is working. By default it is On.- Returns:
- true if the update monitor is working, false otherwise.
-
setSwitchOn
public void setSwitchOn(boolean switchOn) Sets the switch on key for monitoring.- Parameters:
switchOn
- The new switchOn value
-
getMonitoredPV
Gets the monitoredPV attribute of the MonitoredArrayPV object- Returns:
- The monitoredPV value
-
finalize
Removes the monitored PV.
-