|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.xal.smf.ChannelSuite
Manage the mapping of handles to signals and channels for a node. A signal is the unique PV name used for accessing EPICS records. A handle is a high level name used to access a PV in a specific context. For example a channel suite instance typically represents a suite of PVs associated with a particular element. Consider a BPM element. It has several PVs associated with it. The handles are labels common to all BPMs such as "xAvg", "yAvg", ... The handle is used to access a particular PV when applied to an element. So for example "xAvg" applied to BPM 1 of the MEBT refers to the specific PV "MEBT_Diag:BPM01:xAvg". Thus a handle is to a ChannelSuite instance much like an instance variable is to an instance of a class.
| Field Summary | |
protected ChannelFactory |
_channelFactory
|
protected java.util.Map |
channelMap
|
static java.lang.String |
DATA_LABEL
|
protected SignalSuite |
signalSuite
|
| Constructor Summary | |
ChannelSuite()
Creates a new instance of ChannelSuite |
|
ChannelSuite(ChannelFactory channelFactory)
Primary constructor for creating an instance of channel suite |
|
| Method Summary | |
java.lang.String |
dataLabel()
dataLabel() provides the name used to identify the class in an external data source. |
Channel |
getChannel(java.lang.String handle)
Get the channel corresponding to the specified handle. |
java.util.Collection |
getHandles()
Get all of the handles managed by the is channel suite. |
java.lang.String |
getSignal(java.lang.String handle)
Get the channel signal corresponding to the handle. |
ValueTransform |
getTransform(java.lang.String handle)
Get the transform associated with the specified handle. |
boolean |
hasHandle(java.lang.String handle)
See if this channel suite manages the specified handle. |
protected boolean |
hasSignal(java.lang.String signal)
See if this channel suite manages the specified signal. |
void |
update(DataAdaptor adaptor)
Update the data based on the information provided by the data provider. |
void |
write(DataAdaptor adaptor)
Write data to the data adaptor for storage. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DATA_LABEL
protected ChannelFactory _channelFactory
protected SignalSuite signalSuite
protected java.util.Map channelMap
| Constructor Detail |
public ChannelSuite()
public ChannelSuite(ChannelFactory channelFactory)
| Method Detail |
public java.lang.String dataLabel()
dataLabel in interface DataListenerpublic void update(DataAdaptor adaptor)
update in interface DataListeneradaptor - The adaptor from which to update the datapublic void write(DataAdaptor adaptor)
write in interface DataListeneradaptor - The adaptor to which the receiver's data is writtenprotected boolean hasSignal(java.lang.String signal)
signal - The PV signal to check for availability.
public final boolean hasHandle(java.lang.String handle)
handle - The handle to check for availability.
public final java.util.Collection getHandles()
public final java.lang.String getSignal(java.lang.String handle)
handle - The handle for which to get the PV signal name.
public final ValueTransform getTransform(java.lang.String handle)
handle - The handle for which to get the transform.
public Channel getChannel(java.lang.String handle)
handle - The handle for which to get the associated Channel.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||