Package xal.model.elem.sync
Interface IElectromagnet
- All Known Implementing Classes:
ElectromagnetSeq
,IdealHorMagSteeringDipole
,IdealMagDipoleFace
,IdealMagDipoleFace
,IdealMagDipoleFace2
,IdealMagFringeQuad
,IdealMagFringeQuadFace
,IdealMagQuad
,IdealMagSectorDipole
,IdealMagSectorDipole
,IdealMagSectorDipole2
,IdealMagSkewQuad
,IdealMagSkewQuad3
,IdealMagSolenoid
,IdealMagSteeringDipole
,IdealMagWedgeDipole
,IdealMagWedgeDipole
,IdealMagWedgeDipole2
,IdealPermMagQuad
,IdealVerMagSteeringDipole
,ThickDipole
,ThickElectromagnet
,ThickMagFieldMap
,ThinElectromagnet
,ThinMagFieldMap
public interface IElectromagnet
This interface defines the common properties of all electromagnet elements.
- Author:
- Christopher K. Allen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
dipole is oriented to provide action in the horizontal planestatic final int
no dipole orientation given - indicates error condition for oriented elementsstatic final int
dipole is oriented to provide action in the vertical plane -
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the magnetic field strength of the electromagnetint
Return the orientation enumeration code.void
setMagField
(double dblField) Set the magnetic field strength of the electromagnet.void
setOrientation
(int enmOrient) Return the orientation enumeration code.
-
Field Details
-
ORIENT_NONE
static final int ORIENT_NONEno dipole orientation given - indicates error condition for oriented elements- See Also:
-
ORIENT_HOR
static final int ORIENT_HORdipole is oriented to provide action in the horizontal plane- See Also:
-
ORIENT_VER
static final int ORIENT_VERdipole is oriented to provide action in the vertical plane- See Also:
-
-
Method Details
-
getOrientation
int getOrientation()Return the orientation enumeration code.- Returns:
- ORIENT_NONE - no electromagnet orientation (possible error) ORIENT_HOR - magnet oriented for action in x (horizontal) plane ORIENT_VER - magnet oriented for action in y (vertical) plane
-
getMagField
double getMagField()Get the magnetic field strength of the electromagnet- Returns:
- magnetic field (in
Tesla ).
-
setOrientation
void setOrientation(int enmOrient) Return the orientation enumeration code.- Parameters:
enmOrient
- magnet orientation enumeration code- See Also:
-
setMagField
void setMagField(double dblField) Set the magnetic field strength of the electromagnet.- Parameters:
dblField
- magnetic field (inTesla ).
-