gov.sns.xal.smf
Class SignalSuite

java.lang.Object
  |
  +--gov.sns.xal.smf.SignalSuite

public class SignalSuite
extends java.lang.Object

SignalSuite represents the map of handle/signal pairs that identifies a channel and associates it with a node via the handle.


Field Summary
protected  java.util.Map signalMap
           
protected  java.util.Map transformTable
           
 
Constructor Summary
SignalSuite()
          Creates a new instance of SignalSuite
 
Method Summary
 java.util.Collection getHandles()
          Get all of the handles within this suite.
 java.lang.String getSignal(java.lang.String handle)
          Get the PV signal associated with the handle.
 ValueTransform getTransform(java.lang.String handle)
          Get the transform associated with the specified handle.
 boolean hasHandle(java.lang.String handle)
          Check if the signal suite manages the handle.
 boolean hasTransform(java.lang.String handle)
          Check if the signal entry associated with the specified handle has an associated value transform.
 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

signalMap

protected java.util.Map signalMap

transformTable

protected java.util.Map transformTable
Constructor Detail

SignalSuite

public SignalSuite()
Creates a new instance of SignalSuite

Method Detail

update

public void update(DataAdaptor adaptor)
Update the data based on the information provided by the data provider.

Parameters:
adaptor - The adaptor from which to update the data

write

public void write(DataAdaptor adaptor)
Write data to the data adaptor for storage.

Parameters:
adaptor - The adaptor to which the receiver's data is written

getSignal

public java.lang.String getSignal(java.lang.String handle)
Get the PV signal associated with the handle.

Parameters:
handle - The handle for which to get the associated PV signal.
Returns:
The signal associated with the specified handle.

getHandles

public java.util.Collection getHandles()
Get all of the handles within this suite.

Returns:
The handles managed by this suite.

hasHandle

public boolean hasHandle(java.lang.String handle)
Check if the signal suite manages the handle.

Parameters:
handle - The handle for which to check availability.
Returns:
true if the handle is available and false otherwise.

hasTransform

public boolean hasTransform(java.lang.String handle)
Check if the signal entry associated with the specified handle has an associated value transform.

Parameters:
handle - The handle to check for an associated transform.
Returns:
true if the handle has an associated value transform and false otherwise.

getTransform

public ValueTransform getTransform(java.lang.String handle)
Get the transform associated with the specified handle.

Parameters:
handle - The handle for which to get the transform.
Returns:
The transform for the specified handle.