|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.ca.ChannelFactory
ChannelFactory is a factory for generating channels.
| Field Summary | |
protected java.util.Map |
channelMap
|
protected static ChannelFactory |
defaultFactory
|
| Constructor Summary | |
protected |
ChannelFactory()
Creates a new instance of ChannelFactory |
| Method Summary | |
protected abstract ChannelSystem |
channelSystem()
Get the associated channel system from the channel factory implementation. |
static ChannelFactory |
defaultFactory()
Get the default factory which determines the low level channel implementation |
Channel |
getChannel(java.lang.String signalName)
Get a channel associated with the signal name. |
Channel |
getChannel(java.lang.String signalName,
ValueTransform transform)
Get a channel associated with the signal name. |
abstract boolean |
init()
Initialize the channel system |
protected abstract Channel |
newChannel(java.lang.String signalName)
Create a concrete channel which makes an appropriate low level channel |
protected Channel |
newChannel(java.lang.String signalName,
ValueTransform transform)
Create a new channel for the given signal name and set its value transform. |
protected static ChannelFactory |
newFactory()
Instantiate a new ChannelFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static ChannelFactory defaultFactory
protected java.util.Map channelMap
| Constructor Detail |
protected ChannelFactory()
| Method Detail |
public abstract boolean init()
public Channel getChannel(java.lang.String signalName)
signalName - The PV signal name of the channel
public Channel getChannel(java.lang.String signalName,
ValueTransform transform)
signalName - The PV signal name of the channeltransform - The channel's value transform
protected abstract Channel newChannel(java.lang.String signalName)
protected Channel newChannel(java.lang.String signalName,
ValueTransform transform)
signalName - The PV signal nametransform - The value transform to use in the channel
public static ChannelFactory defaultFactory()
protected abstract ChannelSystem channelSystem()
protected static ChannelFactory newFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||