|
||||||||||
| 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
The abstract Magnet Class element. This class contains elements common to all magnets in an accelerator.
| Field Summary | |
double |
leff
The effective magnetic length (m) |
protected MagnetBucket |
m_bucMagnet
The container for the magnet information |
| 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 | |
Magnet(java.lang.String strId)
|
|
| Method Summary | |
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) |
MagnetBucket |
getMagBucket()
|
double[] |
getNormField()
get Normal fields |
int |
getOrientation()
Get the orientation of the magnet as defined by MagnetType. |
double |
getPolarity()
get magnet polarity |
double[] |
getTangField()
get tangential fields |
boolean |
isCorrector()
Determine whether this magnet is a corrector. |
boolean |
isHorizontal()
|
boolean |
isMagnet()
Override the inherited method to be true since all magnets are of the magnet type. |
boolean |
isPermanent()
Get whether this magnet is a permanent magnet or an electromagnet. |
boolean |
isPole(java.lang.String compPole)
Test if the magnet is of the specified pole type. |
boolean |
isSkew()
Determine whether this magnet is a skew magnet. |
boolean |
isVertical()
|
void |
setMagBucket(MagnetBucket buc)
Set the attribute bucket containing the machine magnet info |
| Methods inherited from class gov.sns.xal.smf.AcceleratorNode |
channelSuite, clear, dataLabel, getAccelerator, getAlign, getAndConnectChannel, getAper, getBucket, getBuckets, getChannel, getHandles, getId, getLength, getParent, getPosition, getStatus, getTwiss, getType, getValid, hasBucket, hasParent, isKindOf, lazilyGetAndConnect, removeFromParent, setAccelerator, setAlign, setAper, setLength, setParent, setPosition, setStatus, setTwiss, setValid, toString, update, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gov.sns.xal.smf.impl.qualify.ElementType |
isKindOf |
| Field Detail |
public double leff
protected MagnetBucket m_bucMagnet
| Constructor Detail |
public Magnet(java.lang.String strId)
| Method Detail |
public MagnetBucket getMagBucket()
public void setMagBucket(MagnetBucket buc)
public void addBucket(AttributeBucket buc)
addBucket in class AcceleratorNodepublic boolean isMagnet()
isMagnet in interface ElementTypeisMagnet in class AcceleratorNodepublic boolean isPole(java.lang.String compPole)
isPole in interface MagnetTypecompPole - Comparison pole which should be one of MagnetType.poles
public int getOrientation()
getOrientation in interface MagnetTypepublic final boolean isHorizontal()
isHorizontal in interface MagnetTypepublic final boolean isVertical()
isVertical in interface MagnetTypepublic boolean isSkew()
isSkew in interface MagnetTypepublic boolean isPermanent()
isPermanent in interface MagnetTypepublic boolean isCorrector()
isCorrector in interface MagnetTypepublic double getDesignField()
public double getEffLength()
public double getDfltField()
public double getPolarity()
public double[] getNormField()
public double[] getTangField()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||