Package xal.smf.impl
Class MagnetTrimSupply
java.lang.Object
xal.smf.impl.MagnetPowerSupply
xal.smf.impl.MagnetTrimSupply
- All Implemented Interfaces:
DataListener
TrimMagnetSupply is a power supply that represents a trim magnet supply.
- Author:
- tap
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class xal.smf.impl.MagnetPowerSupply
accelerator, channelSuite, current, CURRENT_RB_HANDLE, CURRENT_SET_HANDLE, CYCLE_INVALID, CYCLE_STATE_HANDLE, CYCLE_VALID, cycleState, CYCLING, strId
-
Constructor Summary
ConstructorsConstructorDescriptionMagnetTrimSupply
(Accelerator anAccelerator) Creates a new instance of TrimMagnetSupply -
Method Summary
Modifier and TypeMethodDescriptiondouble
getField()
Get the trim field contribution from this power supply.double
Get the value to which the field is set.double
Get the magnet trim power supply currentgetType()
Get the power supply typedouble
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.void
setTrimCurrent
(double current) Set the magnet trim power supply current.boolean
suppliesNode
(AcceleratorNode node) Check if the electromagnet is supplied by this power supply.double
get the field upper settable limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.Methods inherited from class xal.smf.impl.MagnetPowerSupply
dataLabel, findChannel, getAccelerator, getAccessibleProperties, getAccessibleProperties, getAndConnectChannel, getChannel, getChannelSuite, getCurrent, getCycleState, getDefaultHandles, getId, getNodes, getNodes, getProperties, getReadbackHandles, getSetHandle, lowerCurrentLimit, setCurrent, setId, update, upperCurrentLimit, write
-
Field Details
-
FIELD_SET_HANDLE
- See Also:
-
FIELD_RB_HANDLE
- See Also:
-
TRIM_CURRENT_SET_HANDLE
- See Also:
-
TRIM_CURRENT_RB_HANDLE
- See Also:
-
-
Constructor Details
-
MagnetTrimSupply
Creates a new instance of TrimMagnetSupply
-
-
Method Details
-
getType
Get the power supply type- Specified by:
getType
in classMagnetPowerSupply
- Returns:
- The power supply type
-
getField
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
- Throws:
GetException
-
setField
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.- Throws:
PutException
-
getFieldSetting
Get the value to which the field is set. Note that this is not the readback.- Returns:
- the field setting in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.
- Throws:
GetException
-
getTrimCurrent
Get the magnet trim power supply current- Returns:
- the magnet trim power supply current in amperes
- Throws:
ConnectionException
- if the readback channel cannot be connectedGetException
- if the readback channel get action fails
-
setTrimCurrent
Set the magnet trim power supply current.- Parameters:
current
- The current in amperes- Throws:
ConnectionException
- if the put channel cannot be connectedPutException
- if the put channel set action fails
-
upperFieldLimit
get the field upper settable limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.- Throws:
GetException
-
lowerFieldLimit
get the field lower settable limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.- Throws:
GetException
-
suppliesNode
Check if the electromagnet is supplied by this power supply.- Specified by:
suppliesNode
in classMagnetPowerSupply
- Parameters:
node
- The electromagnet to check- Returns:
- true if the node is supplied by this supply and false otherwise
-