|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.sns.xal.smf.AcceleratorNode
|
+--gov.sns.xal.smf.impl.Magnet
|
+--gov.sns.xal.smf.impl.Electromagnet
|
+--gov.sns.xal.smf.impl.Quadrupole
Quadrupole implements an Electromagnet Quadrupole supplied by a single power supply. Unlike many other beam line elements, Quadrupole represents more than one official type (QH and QV) as specified by the naming convention. In order to support this feature we override the getType(), update() and isKindOf() methods. The vertical and horizontal reference to a quadrapole isn't of consequence to behavior since the field of the quadrupole (including its sign) and its length characterizes the quadrupole.
| Field Summary | |
static java.lang.String |
HORIZONTAL_TYPE
|
static java.lang.String |
s_strType
|
protected java.lang.String |
type
|
static java.lang.String |
VERTICAL_TYPE
|
| Fields inherited from class gov.sns.xal.smf.impl.Electromagnet |
FIELD_RB_HANDLE, mainSupplyId |
| Fields inherited from class gov.sns.xal.smf.impl.Magnet |
leff, m_bucMagnet |
| Fields inherited from class gov.sns.xal.smf.AcceleratorNode |
channelSuite, m_bolIsSoft, m_bolStatus, m_bolValid, m_bucAlign, m_bucAper, m_bucTwiss, m_dblLen, m_dblPos, m_mapAttrs, m_objAccel, m_seqParent, m_strId |
| Fields inherited from interface gov.sns.xal.smf.impl.qualify.MagnetType |
DIPOLE, HORIZONTAL, NO_ORIENTATION, OCT, OCTUPOLE, poles, QUAD, QUADRUPOLE, SEXT, SEXTUPOLE, VERTICAL |
| Constructor Summary | |
Quadrupole(java.lang.String strId)
Quadrupole constructor. |
|
| Method Summary | |
double |
getField()
Get the field in this electromagnet via ca T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc. |
int |
getOrientation()
Get the orientation of the magnet as defined by MagnetType. |
java.lang.String |
getType()
Override to provide the correct type signature per instance. |
boolean |
isKindOf(java.lang.String compType)
Determine if this node is of the specified type. |
boolean |
isPole(java.lang.String compPole)
Test if the magnet is of the specified pole type. |
double |
lowerFieldLimit()
get the field lower settable limit of the main power supply in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc. |
void |
setField(double newField)
Set the main power supply field contribution in the magnet. |
void |
update(DataAdaptor adaptor)
Update the instance with data from the data adaptor. |
double |
upperFieldLimit()
get the field upper settable limit of the main power supply in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc. |
| Methods inherited from class gov.sns.xal.smf.impl.Electromagnet |
getChannel, getCurrent, getCycleState, getFieldInt, getHandles, getMainSupply, isPermanent, lowerCurrentLimit, setCurrent, setCycleEnable, updatePowerSupplies, upperCurrentLimit, write, writePowerSupplies |
| Methods inherited from class gov.sns.xal.smf.impl.Magnet |
addBucket, getDesignField, getDfltField, getEffLength, getMagBucket, getNormField, getPolarity, getTangField, isCorrector, isHorizontal, isMagnet, isSkew, isVertical, setMagBucket |
| Methods inherited from class gov.sns.xal.smf.AcceleratorNode |
channelSuite, clear, dataLabel, getAccelerator, getAlign, getAndConnectChannel, getAper, getBucket, getBuckets, getId, getLength, getParent, getPosition, getStatus, getTwiss, getValid, hasBucket, hasParent, lazilyGetAndConnect, removeFromParent, setAccelerator, setAlign, setAper, setLength, setParent, setPosition, setStatus, setTwiss, setValid, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
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 type
| Constructor Detail |
public Quadrupole(java.lang.String strId)
| Method Detail |
public java.lang.String getType()
getType in class AcceleratorNodepublic void update(DataAdaptor adaptor)
update in interface DataListenerupdate in class Electromagnetadaptor - The data provider.
public double getField()
throws ConnectionException,
GetException
getField in class ElectromagnetConnectionException
GetException
public void setField(double newField)
throws ConnectionException,
PutException
setField in class ElectromagnetnewField - is the new field level in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.
ConnectionException
PutException
public double upperFieldLimit()
throws ConnectionException,
GetException
upperFieldLimit in class ElectromagnetConnectionException
GetException
public double lowerFieldLimit()
throws ConnectionException,
GetException
lowerFieldLimit in class ElectromagnetConnectionException
GetExceptionpublic boolean isPole(java.lang.String compPole)
Magnet
isPole in interface MagnetTypeisPole in class MagnetcompPole - Comparison pole which should be one of MagnetType.poles
public int getOrientation()
getOrientation in interface MagnetTypegetOrientation in class Magnetpublic boolean isKindOf(java.lang.String compType)
isKindOf in interface ElementTypeisKindOf in class AcceleratorNodecompType - The type to compare against.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||