Package xal.model.elem.sync
Interface IElectrostatic
- All Known Implementing Classes:
IdealEDipole
,IdealEQuad
,ThickElectrostatic
public interface IElectrostatic
This interface defines the common properties of all electrostatic elements.
- Author:
- Carla Benatti, adapted from Christopher K. Allen's IElectromagnet.java
-
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 TypeMethodDescriptionint
Return the orientation enumeration code.double
Get the voltage applied to the electrostatic devicevoid
setOrientation
(int enmOrient) Return the orientation enumeration code.void
setVoltage
(double dblVoltage) Set the voltage applied to the electrostatic device.
-
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 electrostatic orientation (possible error) ORIENT_HOR - magnet oriented for action in x (horizontal) plane ORIENT_VER - magnet oriented for action in y (vertical) plane
-
getVoltage
double getVoltage()Get the voltage applied to the electrostatic device- Returns:
- Voltage (in
kV ).
-
setOrientation
void setOrientation(int enmOrient) Return the orientation enumeration code.- Parameters:
enmOrient
- magnet orientation enumeration code- See Also:
-
setVoltage
void setVoltage(double dblVoltage) Set the voltage applied to the electrostatic device.- Parameters:
dblVoltage
- Voltage (inkV ).
-