Package xal.model.elem
Class ThickElectrostatic
java.lang.Object
xal.model.elem.Element
xal.model.elem.ThickElement
xal.model.elem.ThickElectrostatic
- All Implemented Interfaces:
IElectrostatic,IComponent,IElement
- Direct Known Subclasses:
IdealEDipole,IdealEQuad
This class implements IElectrostatic interface for thick electrostatics.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleField strength of the dipole magnetprotected intbending plane of dipoleFields inherited from class xal.model.elem.Element
dblNodeLen, dblNodePosFields inherited from interface xal.model.elem.sync.IElectrostatic
ORIENT_HOR, ORIENT_NONE, ORIENT_VERFields inherited from interface xal.model.IElement
LIGHT_SPEED, PERMEABILITY, PERMITTIVITY, UNIT_CHARGE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThickElectrostatic(String strType) protectedThickElectrostatic(String strType, String strId) protectedThickElectrostatic(String strType, String strId, double dblLen) -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the magnetic field strength of the associated dipoleintReturn the orientation enumeration code for the bending plane of the associated dipole magnet.voidinitializeFrom(LatticeElement latticeElement) Conversion method to be provided by the uservoidsetMagField(double dblField) Set the magnetic field strength of the dipole electromagnet.voidsetOrientation(int enmOrient) Set the dipole bending plane orientationMethods inherited from class xal.model.elem.ThickElement
applyErrors, elapsedTime, energyGain, getLength, isFirstSubslice, isLastSubslice, longitudinalPhaseAdvance, setLength, transferMapMethods inherited from class xal.model.elem.Element
addCloseElements, backPropagate, backPropagate, compDriftingTime, compProbeLocation, getAlignX, getAlignY, getAlignZ, getCloseElements, getHardwareNodeId, getId, getLatticePosition, getNodeLen, getNodePos, getParent, getPhiX, getPhiY, getPhiZ, getPosition, getType, getUID, print, propagate, propagate, setAlign, setAlignX, setAlignY, setAlignZ, setHardwareNodeId, setId, setParent, setPhiX, setPhiY, setPhiZ, setPosition, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface xal.model.elem.sync.IElectrostatic
getVoltage, setVoltage
-
Field Details
-
enmOrient
protected int enmOrientbending plane of dipole -
dblField
protected double dblFieldField strength of the dipole magnet
-
-
Constructor Details
-
ThickElectrostatic
-
ThickElectrostatic
-
ThickElectrostatic
-
-
Method Details
-
getOrientation
public int getOrientation()Return the orientation enumeration code for the bending plane of the associated dipole magnet.- Specified by:
getOrientationin interfaceIElectrostatic- Returns:
- ORIENT_HOR - dipole has steering action in x (horizontal) plane ORIENT_VER - dipole has steering action in y (vertical) plane ORIENT_NONE - error
-
getMagField
public double getMagField()Get the magnetic field strength of the associated dipole- Returns:
- magnetic field (in Tesla).
-
setOrientation
public void setOrientation(int enmOrient) Set the dipole bending plane orientation- Specified by:
setOrientationin interfaceIElectrostatic- Parameters:
enmOrient- magnet orientation enumeration code- See Also:
-
setMagField
public void setMagField(double dblField) Set the magnetic field strength of the dipole electromagnet.- Parameters:
dblField- magnetic field (in Tesla).
-
initializeFrom
Conversion method to be provided by the user- Specified by:
initializeFromin interfaceIComponent- Overrides:
initializeFromin classThickElement- Parameters:
latticeElement- the SMF node to convert
-