Package xal.smf.scada
Class XalPvDescriptor
java.lang.Object
xal.smf.scada.XalPvDescriptor
- Direct Known Subclasses:
ScadaFieldDescriptor
Encapsulates the properties of an EPICS process variable, as referenced
through the XAL channel lookup mechanism (that is, through the XAL channel
handle).
- Since:
- Nov 6, 2009
- Author:
- Christopher K. Allen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Used by the enumerations to indicate they return PV descriptors for their enumeration values. -
Constructor Summary
ConstructorsConstructorDescriptionXalPvDescriptor
(Class<?> clsType, String strHandleRb) Create a newXalPvDescriptor
object with read back values only.XalPvDescriptor
(Class<?> clsType, String strHandleRb, String strHandleSet) Create a newXalPvDescriptor
object that is controllable with the given channel handles and data type.Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
clone()
Returns a deep copy of this object, as deep as you can get anyway.Class<?>
Return the data type of Process Variable associate with this handle.Return the channel handle for the PV corresponding to the current enumeration constant.Returns the channel handle of the channel used to set the PV.boolean
Indicates whether or not the process variable can be set.toString()
Write out the readback and set signal names for this PV descriptor.
-
Constructor Details
-
XalPvDescriptor
Create a newXalPvDescriptor
object with read back values only. The read back channel hand the given handles and the PV value has the given data type.- Parameters:
clsType
- PV value data typestrHandleRb
- read back channel XAL handle- Since:
- Nov 6, 2009
-
XalPvDescriptor
Create a newXalPvDescriptor
object that is controllable with the given channel handles and data type.- Parameters:
clsType
- PV value data typestrHandleRb
- read back channel XAL handlestrHandleSet
- set channel XAL handle- Since:
- Nov 6, 2009
-
XalPvDescriptor
Copy constructor. Create a new a deep copy of the given PV Descriptor.NOTE: Added to implement the functionality of PvDescriptor in XAL.
· Jonathan M. Freed
· Jul 15, 2014- Parameters:
pvd
- PV descriptor to be copied- Since:
- Mar 10, 2011
-
-
Method Details
-
getRbHandle
Return the channel handle for the PV corresponding to the current enumeration constant.- Returns:
- XAL channel handle for read back signal
- Since:
- Nov 6, 2009
-
getSetHandle
Returns the channel handle of the channel used to set the PV.- Returns:
- PV set XAL channel handle
- Since:
- Nov 6, 2009
-
getPvType
Return the data type of Process Variable associate with this handle.- Returns:
- return the data type of the PV value
- Since:
- Nov 6, 2009
-
isControllable
public boolean isControllable()Indicates whether or not the process variable can be set.- Returns:
true
if the PV is controllable,false
if it can only be read- Since:
- Nov 6, 2009
-
clone
Returns a deep copy of this object, as deep as you can get anyway.NOTE: Added to implement the functionality of PvDescriptor in XAL.
· Jonathan M. Freed
· Jul 15, 2014- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
- Since:
- Apr 19, 2012
- See Also:
-
toString
Write out the readback and set signal names for this PV descriptor.NOTE: Added to implement the functionality of PvDescriptor in XAL.
· Jonathan M. Freed
· Jul 15, 2014
-