public class Electrostatic extends AcceleratorNode
Modifier and Type | Field and Description |
---|---|
protected boolean |
_useFieldReadback
indicates whether to use the actual field readback or the field setting in the getField() method
|
static java.lang.String |
FIELD_RB_HANDLE
field readback handle
|
static int |
HORIZONTAL |
protected MagnetBucket |
m_bucMagnet
The container for the magnet information
|
protected java.lang.String |
mainSupplyId
the ID of this magnet's main power supply
|
static int |
NO_ORIENTATION |
static int |
VERTICAL |
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
Constructor and Description |
---|
Electrostatic(java.lang.String strId) |
Modifier and Type | Method and Description |
---|---|
void |
addBucket(AttributeBucket buc)
Override AcceleratorNode implementation to check for a MultipoleBucket
|
double |
getDesignField()
get the design field for the magnet (T for dipole, T/m for quad, etc.)
|
double |
getDfltField()
get the default magnetic field
|
double |
getEffLength()
get the effective magnetic length (m)
|
double |
getField()
Get the field in this electromagnet via ca.
|
double |
getFieldReadback()
Get the field in this electromagnet via ca.
|
double |
getFieldSetting()
Get the value to which the main power supply's field contribution is set.
|
MagnetBucket |
getMagBucket() |
MagnetMainSupply |
getMainSupply()
Get the main power supply for this magnet.
|
int |
getOrientation()
Get the orientation of the magnet as defined by MagnetType.
|
double |
getPolarity()
get magnet polarity
|
double |
getTotalFieldSetting()
Get the value to which the field is set including both the main supply and possible trim supply contributions.
|
java.lang.String |
getType()
Derived class must furnish a unique type id
|
boolean |
isHorizontal() |
boolean |
isVertical() |
void |
setMagBucket(MagnetBucket buc)
Set the attribute bucket containing the machine magnet info
|
double |
toCAFromField(double field)
Convert the field value to a channel access value.
|
double |
toFieldFromCA(double rawValue)
Convert the raw channel access value to get the field.
|
protected void |
writePowerSupplies(DataAdaptor powerSupplyAdaptor)
Write data to the power supply data adaptor.
|
channelSuite, clear, dataLabel, findChannel, getAccelerator, getAlign, getAndConnectChannel, getAper, getBucket, getBuckets, getChannel, getDesignPropertyValue, getEId, getHandles, getId, getLength, getLivePropertyChannels, getLivePropertyValue, getParent, getPId, getPitchAngle, getPosition, getPrimaryAncestor, getRollAngle, getSDisplay, getSoftType, getStatus, getTwiss, getValid, getXOffset, getYawAngle, getYOffset, getZOffset, hasBucket, hasParent, isKindOf, isMagnet, lazilyGetAndConnect, removeFromParent, setAccelerator, setAlign, setAper, setLength, setParent, setPitchAngle, setPosition, setRollAngle, setSDisplay, setStatus, setTwiss, setValid, setXOffset, setYawAngle, setYOffset, setZOffset, toString, update, write
public static final int NO_ORIENTATION
public static final int HORIZONTAL
public static final int VERTICAL
protected MagnetBucket m_bucMagnet
protected boolean _useFieldReadback
public static final java.lang.String FIELD_RB_HANDLE
protected java.lang.String mainSupplyId
public MagnetBucket getMagBucket()
public void addBucket(AttributeBucket buc)
addBucket
in class AcceleratorNode
public void setMagBucket(MagnetBucket buc)
public java.lang.String getType()
AcceleratorNode
getType
in class AcceleratorNode
public double getDesignField()
public double getEffLength()
public double getDfltField()
public double getField() throws ConnectionException, GetException
ConnectionException
GetException
public double getTotalFieldSetting() throws ConnectionException, GetException
ConnectionException
GetException
public double getFieldReadback() throws ConnectionException, GetException
ConnectionException
GetException
public double getFieldSetting() throws ConnectionException, GetException
ConnectionException
GetException
public MagnetMainSupply getMainSupply()
public double getPolarity()
public final double toFieldFromCA(double rawValue)
rawValue
- the raw channel valuepublic final double toCAFromField(double field)
field
- the magnetic field in T/m^(n-1)protected void writePowerSupplies(DataAdaptor powerSupplyAdaptor)
powerSupplyAdaptor
- The data sink for the power supply informationpublic int getOrientation()
public boolean isHorizontal()
public boolean isVertical()