gov.sns.xal.smf.impl
Class MagnetTrimSupply

java.lang.Object
  |
  +--gov.sns.xal.smf.impl.MagnetPowerSupply
        |
        +--gov.sns.xal.smf.impl.MagnetTrimSupply
All Implemented Interfaces:
DataListener

public class MagnetTrimSupply
extends MagnetPowerSupply

TrimMagnetSupply is a power supply that represents a trim magnet supply.


Field Summary
static java.lang.String FIELD_RB_HANDLE
           
static java.lang.String FIELD_SET_HANDLE
           
 
Fields inherited from class gov.sns.xal.smf.impl.MagnetPowerSupply
accelerator, channelSuite, CURRENT_RB_HANDLE, CURRENT_SET_HANDLE, CYCLE_INVALID, CYCLE_STATE_HANDLE, CYCLE_VALID, CYCLING, strId
 
Constructor Summary
MagnetTrimSupply(Accelerator anAccelerator)
          Creates a new instance of TrimMagnetSupply
 
Method Summary
 double getField()
          Get the trim field contribution from this power supply.
 java.lang.String getType()
          Get the power supply type
 double lowerFieldLimit()
          get the field lower settable limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.
 void setField(double newField)
          Set the trim field contribution from this power supply.
 boolean suppliesNode(AcceleratorNode node)
          Check if the electromagnet is supplied by this power supply.
 double upperFieldLimit()
          get the field upper settable limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.
 
Methods inherited from class gov.sns.xal.smf.impl.MagnetPowerSupply
dataLabel, getAndConnectChannel, getChannel, getChannelSuite, getCurrent, getCycleState, getId, getNodes, getNodes, lowerCurrentLimit, setCurrent, update, upperCurrentLimit, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_SET_HANDLE

public static final java.lang.String FIELD_SET_HANDLE
See Also:
Constant Field Values

FIELD_RB_HANDLE

public static final java.lang.String FIELD_RB_HANDLE
See Also:
Constant Field Values
Constructor Detail

MagnetTrimSupply

public MagnetTrimSupply(Accelerator anAccelerator)
Creates a new instance of TrimMagnetSupply

Method Detail

getType

public java.lang.String getType()
Get the power supply type

Specified by:
getType in class MagnetPowerSupply
Returns:
The power supply type

getField

public double getField()
                throws ConnectionException,
                       GetException
Get the trim field contribution from this power supply. T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.

Returns:
the field contribution
ConnectionException
GetException

setField

public void setField(double newField)
              throws ConnectionException,
                     PutException
Set the trim field contribution from this power supply.

Parameters:
newField - is the new field level in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.
ConnectionException
PutException

upperFieldLimit

public double upperFieldLimit()
                       throws ConnectionException,
                              GetException
get the field upper settable limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.

ConnectionException
GetException

lowerFieldLimit

public double lowerFieldLimit()
                       throws ConnectionException,
                              GetException
get the field lower settable limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.

ConnectionException
GetException

suppliesNode

public boolean suppliesNode(AcceleratorNode node)
Check if the electromagnet is supplied by this power supply.

Specified by:
suppliesNode in class MagnetPowerSupply
Parameters:
node - The electromagnet to check
Returns:
true if the node is supplied by this supply and false otherwise