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_VER
LightSpeed, 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, transferMap
addCloseElements, applyAlignError, backPropagate, backPropagate, compDriftingTime, compProbeLocation, getAlignX, getAlignY, getAlignZ, getCloseElements, getHardwareNodeId, getId, getPosition, getType, getUID, print, propagate, propagate, setAlign, setAlignX, setAlignY, setAlignZ, setHardwareNodeId, setId, setPosition, toString
protected 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 IElectromagnet
public double getMagField()
getMagField
in interface IElectromagnet
public void setOrientation(int enmOrient)
setOrientation
in interface IElectromagnet
enmOrient
- magnet orientation enumeration codegetOrientation()
public void setMagField(double dblField)
setMagField
in interface IElectromagnet
dblField
- magnetic field (in public void initializeFrom(LatticeElement latticeElement)
initializeFrom
in interface IComponent
initializeFrom
in class Element
latticeElement
- the SMF node to convert