|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.sns.xal.model.elem.Element
|
+--gov.sns.xal.model.elem.ThickElement
|
+--gov.sns.xal.model.elem.IdealMagQuad
Represents an ideal magnetic quadrupole magnet for a beam transport/accelerator system.
| Field Summary | |
static java.lang.String |
s_strParamField
|
static java.lang.String |
s_strParamOrient
Parameters for XAL MODEL LATTICE dtd |
static java.lang.String |
s_strType
string type identifier for all IdealMagQuad objects |
| Fields inherited from interface gov.sns.xal.model.elem.IElectromagnet |
ORIENT_HOR, ORIENT_NONE, ORIENT_VER |
| Fields inherited from interface gov.sns.xal.model.IElement |
LightSpeed, Permeability, Permittivity, UnitCharge |
| Constructor Summary | |
IdealMagQuad()
JavaBean constructor - creates a new unitialized instance of IdealMagQuad BE CAREFUL |
|
IdealMagQuad(java.lang.String strId,
int enmOrient,
double dblFld,
double dblLen)
Creates a new instance of IdealMagQuad |
|
| Method Summary | |
double |
elapsedTime(IProbe probe,
double dblLen)
Returns the time taken for the probe to drift through part of the element. |
double |
energyGain(IProbe probe,
double dblLen)
Return the energy gain imparted to a particular probe. |
double |
getMagField()
Get the magnetic field strength of the electromagnet |
int |
getOrientation()
Return the orientation enumeration code. |
void |
print(java.io.PrintWriter os)
Dump current state and content to output stream. |
void |
setMagField(double dblField)
Set the magnetic field strength of the electromagnet. |
void |
setOrientation(int enmOrient)
Set the magnet orientation |
PhaseMap |
transferMap(IProbe probe,
double dblLen)
Compute the partial transfer map of an ideal quadrupole for the particular probe. |
| Methods inherited from class gov.sns.xal.model.elem.ThickElement |
getLength, setLength |
| Methods inherited from class gov.sns.xal.model.elem.Element |
compDriftingTime, getId, getType, getUID, initializeFrom, propagate, setId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String s_strType
public static final java.lang.String s_strParamOrient
public static final java.lang.String s_strParamField
| Constructor Detail |
public IdealMagQuad(java.lang.String strId,
int enmOrient,
double dblFld,
double dblLen)
strId - identifier for this IdealMagQuad objectenmOrient - enumeration specifying the quadrupole orientation
(ORIENT_HOR or ORIENT_VER)dblFld - field gradient strength (in Tesla/meter)dblLen - length of the quadrupolepublic IdealMagQuad()
| Method Detail |
public int getOrientation()
getOrientation in interface IElectromagnetpublic double getMagField()
getMagField in interface IElectromagnetpublic void setOrientation(int enmOrient)
setOrientation in interface IElectromagnetenmOrient - magnet orientation enumeration codegetOrientation()public void setMagField(double dblField)
setMagField in interface IElectromagnetdblField - magnetic field (in
public double elapsedTime(IProbe probe,
double dblLen)
elapsedTime in interface IElementelapsedTime in class Elementprobe - propagating probedblLen - length of subsection to propagate through meters
public double energyGain(IProbe probe,
double dblLen)
energyGain in interface IElementenergyGain in class ThickElementdblLen - dummy argumentprobe - dummy argument
public PhaseMap transferMap(IProbe probe,
double dblLen)
throws ModelException
dblLen meters
in length.
transferMap in interface IElementtransferMap in class ThickElementdblLen - compute transfer matrix for section of this lengthprobe - uses the rest and kinetic energy parameters from the probe
ModelException - unknown quadrupole orientationpublic void print(java.io.PrintWriter os)
print in class Elementos - output stream object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||