public abstract class ThinElectromagnet extends ThinElement implements IElectromagnet
| Modifier and Type | Field and Description |
|---|---|
protected double |
dblField
Field strength of the dipole magnet
|
protected int |
enmOrient
bending plane of dipole
|
ORIENT_HOR, ORIENT_NONE, ORIENT_VERLightSpeed, Permeability, Permittivity, UnitCharge| Constructor and Description |
|---|
ThinElectromagnet(java.lang.String strType) |
ThinElectromagnet(java.lang.String strType,
java.lang.String strId) |
| Modifier and Type | Method and Description |
|---|---|
double |
getMagField()
Get the magnetic field strength of the associated dipole
|
int |
getOrientation()
Return the orientation enumeration code for the bending plane of the
associated dipole magnet.
|
void |
initializeFrom(LatticeElement latticeElement)
Conversion method to be provided by the user
|
void |
setMagField(double dblField)
Set the magnetic field strength of the dipole electromagnet.
|
void |
setOrientation(int enmOrient)
Set the dipole bending plane orientation
|
elapsedTime, elapsedTime, energyGain, energyGain, getLength, transferMap, transferMapaddCloseElements, applyAlignError, backPropagate, backPropagate, compDriftingTime, compProbeLocation, getAlignX, getAlignY, getAlignZ, getCloseElements, getHardwareNodeId, getId, getPosition, getType, getUID, print, propagate, propagate, setAlign, setAlignX, setAlignY, setAlignZ, setHardwareNodeId, setId, setPosition, toStringprotected int enmOrient
protected double dblField
public ThinElectromagnet(java.lang.String strType)
public ThinElectromagnet(java.lang.String strType,
java.lang.String strId)
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 void initializeFrom(LatticeElement latticeElement)
initializeFrom in interface IComponentinitializeFrom in class ElementlatticeElement - the SMF node to convert