public class TrimmedQuadrupole extends Quadrupole implements TrimmedMagnet
Electromagnet.Property
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_trimSupplyID
unique ID for this magnet's trim supply
|
static java.lang.String |
HORIZONTAL_TYPE |
static java.lang.String |
s_strType |
static java.lang.String |
VERTICAL_TYPE |
_type, SKEW_TYPE
_useFieldReadback, FIELD_RB_HANDLE, mainSupplyId
leff, m_bucMagnet
channelSuite, m_bolIsSoft, m_bolStatus, m_bolValid, m_bucAlign, m_bucAper, m_bucTwiss, m_dblLen, m_dblPos, m_dblS, m_mapAttrs, m_objAccel, m_seqParent, m_strEId, m_strId, m_strPId
DIPOLE, HORIZONTAL, NO_ORIENTATION, OCT, OCTUPOLE, poles, QUAD, QUADRUPOLE, SEXT, SEXTUPOLE, SOL, SOLENOID, VERTICAL
Constructor and Description |
---|
TrimmedQuadrupole(java.lang.String strID)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Channel |
findChannel(java.lang.String handle)
Find the channel for the specified handle checking the trim supply if the channel suite or main supply does not contain the handle
|
java.util.Collection<java.lang.String> |
getHandles()
Get the channel handles.
|
Channel[] |
getLivePropertyChannels(java.lang.String propertyName)
Get the array of channels for the specified property
|
double |
getLivePropertyValue(java.lang.String propertyName,
double[] channelValues)
Get the live property value for the corresponding array of channel values in the order given by getLivePropertyChannels()
|
int |
getOrientation()
Get the orientation of the magnet as defined by MagnetType.
|
double |
getTotalFieldSetting()
Get the value to which the field is set including both the main supply and trim supply contributions.
|
double |
getTrimCurrent()
Get the trim power supply current in this electromagnet via ca (A)
|
double |
getTrimFieldSetting()
Get the value to which the trim supply's field contribution is set.
|
MagnetTrimSupply |
getTrimSupply()
Get the trim power supply for this magnet.
|
void |
setTrimCurrent(double newCurrent)
set the trim power supply current in the magnet (A)
|
void |
setTrimField(double newField)
Set the trim power supply field contribution in the magnet.
|
protected void |
updatePowerSupplies(DataAdaptor powerSupplyAdaptor)
Update data from the power supply data adaptor.
|
protected void |
writePowerSupplies(DataAdaptor powerSupplyAdaptor)
Write data to the power supply data adaptor.
|
getType, isKindOf, isPole, update
getCurrent, getCycleState, getDesignPropertyValue, getField, getFieldInt, getFieldReadback, getFieldSetting, getMainSupply, isPermanent, lowerAlarmFieldLimit, lowerCurrentLimit, lowerDisplayFieldLimit, lowerFieldLimit, lowerWarningFieldLimit, setCurrent, setCycleEnable, setField, setUseFieldReadback, toCAFromField, toFieldFromCA, upperAlarmFieldLimit, upperCurrentLimit, upperDisplayFieldLimit, upperFieldLimit, upperWarningFieldLimit, useFieldReadback, write
addBucket, getDesignField, getDfltField, getEffLength, getMagBucket, getNormField, getPolarity, getTangField, isCorrector, isHorizontal, isMagnet, isSkew, isVertical, setDfltField, setMagBucket
channelSuite, clear, dataLabel, getAccelerator, getAlign, getAndConnectChannel, getAper, getBucket, getBuckets, getChannel, getEId, getId, getLength, getParent, getPId, getPitchAngle, getPosition, getPrimaryAncestor, getRollAngle, getSDisplay, getSoftType, getStatus, getTwiss, getValid, getXOffset, getYawAngle, getYOffset, getZOffset, hasBucket, hasParent, lazilyGetAndConnect, removeFromParent, setAccelerator, setAlign, setAper, setLength, setParent, setPitchAngle, setPosition, setRollAngle, setSDisplay, setStatus, setTwiss, setValid, setXOffset, setYawAngle, setYOffset, setZOffset, toString
public static final java.lang.String s_strType
public static final java.lang.String HORIZONTAL_TYPE
public static final java.lang.String VERTICAL_TYPE
protected java.lang.String _trimSupplyID
public TrimmedQuadrupole(java.lang.String strID)
strID
- this magnet's unique node IDprotected void updatePowerSupplies(DataAdaptor powerSupplyAdaptor)
updatePowerSupplies
in class Electromagnet
powerSupplyAdaptor
- The data provider of power supply information.protected void writePowerSupplies(DataAdaptor powerSupplyAdaptor)
writePowerSupplies
in class Electromagnet
powerSupplyAdaptor
- The data sink for the power supply informationpublic java.util.Collection<java.lang.String> getHandles()
getHandles
in class Electromagnet
public Channel findChannel(java.lang.String handle)
findChannel
in class Electromagnet
handle
- The handle for the channel to get.public MagnetTrimSupply getTrimSupply()
getTrimSupply
in interface TrimmedMagnet
public double getLivePropertyValue(java.lang.String propertyName, double[] channelValues)
getLivePropertyValue
in class Electromagnet
public Channel[] getLivePropertyChannels(java.lang.String propertyName)
getLivePropertyChannels
in class Electromagnet
public void setTrimField(double newField) throws ConnectionException, PutException
newField
- is the new field level in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.ConnectionException
PutException
public double getTrimFieldSetting() throws ConnectionException, GetException
ConnectionException
GetException
public double getTotalFieldSetting() throws ConnectionException, GetException
getTotalFieldSetting
in class Electromagnet
ConnectionException
GetException
public double getTrimCurrent() throws ConnectionException, GetException
ConnectionException
GetException
public void setTrimCurrent(double newCurrent) throws ConnectionException, PutException
newCurrent
- is the new current (A)ConnectionException
PutException
public int getOrientation()
getOrientation
in interface MagnetType
getOrientation
in class Quadrupole