|
||||||||||
| 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.ThinElement
|
+--gov.sns.xal.model.elem.IdealMagSteeringDipole
Represents the action of an ideal magnetic dipole. These structures are typically used for beam steering.
| Field Summary | |
static java.lang.String |
s_strParamField
|
static java.lang.String |
s_strParamLenEff
Parameters for XAL MODEL LATTICE dtd |
static java.lang.String |
s_strParamOrient
|
static java.lang.String |
s_strType
the string type identifier for all IdealMagSteeringDipole's |
| 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 | |
IdealMagSteeringDipole()
Default constructor - creates a new uninitialized instance of IdealMagSteeringDipole. |
|
IdealMagSteeringDipole(java.lang.String strId)
Create a new instance of IdealMagSteeringDipole and specify its instance identifier. |
|
IdealMagSteeringDipole(java.lang.String strId,
double dblLenEff,
int enmOrient,
double dblFld)
Creates a new instance of IdealMagSteeringDipole. |
|
| Method Summary | |
double |
elapsedTime(IProbe probe)
Returns the time taken for the probe to propagate through element. |
double |
energyGain(IProbe probe)
Return the energy gain for this Element. |
double |
getEffLength()
Return the effective length of this dipole magnet |
double |
getMagField()
Return the current magnetic field |
int |
getOrientation()
Return the orientation enumeration code. |
void |
print(java.io.PrintWriter os)
Dump current state and content to output stream. |
void |
setEffLength(double dblLenEff)
Set the effective length of the dipole magnet. |
void |
setMagField(double dblAmp)
Set the field amplitude of the dipole magnet |
void |
setOrientation(int enmOrient)
Set the magnet orientation |
protected PhaseMap |
transferMap(IProbe probe)
Computes the transfer map for an ideal magnetic dipole. |
| Methods inherited from class gov.sns.xal.model.elem.ThinElement |
elapsedTime, energyGain, getLength, transferMap |
| 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_strParamLenEff
public static final java.lang.String s_strParamOrient
public static final java.lang.String s_strParamField
| Constructor Detail |
public IdealMagSteeringDipole()
public IdealMagSteeringDipole(java.lang.String strId)
strId - string instance identifier of element
public IdealMagSteeringDipole(java.lang.String strId,
double dblLenEff,
int enmOrient,
double dblFld)
strId - string identifier of elementdblFld - field strength (in Tesla)enmOrient - dipole orientation (ORIENT_HOR or ORIENT_VER)dblLenEff - effective length of dipole magnet| Method Detail |
public void setEffLength(double dblLenEff)
dblLenEff - effective length (in meters)public double getEffLength()
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 dblAmp)
setMagField in interface IElectromagnetdblAmp - magnetic field strength (in Tesla)public double elapsedTime(IProbe probe)
elapsedTime in class ThinElementprobe - propagating probe
public double energyGain(IProbe probe)
energyGain in class ThinElementprobe - dummy argument
protected PhaseMap transferMap(IProbe probe)
throws ModelException
transferMap in class ThinElementprobe - probe interface from which we get rest energy and kinetic energy
ModelException - bad orientation codepublic 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 | |||||||||