Package xal.smf.attr
Class ApertureBucket
java.lang.Object
xal.smf.attr.AttributeBucket
xal.smf.attr.ApertureBucket
- All Implemented Interfaces:
Serializable
,DataListener
The aperture bucket defines the inner geometry of the elements.
For elements with constant aperture, set a single value for x and y.
For elements with more complicated geometry, use the array "pos" to define the apertures "x" and "y" (also arrays of the same length) at different points in the element. The first and last points should correspond to the ends of the element.
- Version:
- 1.0, 2.0
- Author:
- Christopher K. Allen, Juan F. Esteban Müller <JuanF.EstebanMuller@esss.se>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class xal.smf.attr.AttributeBucket
AttributeBucket.MissingAttributeException
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
double[]
getAperX()
double[]
getAperY()
String[]
int
getShape()
getType()
Furnish a unique type idvoid
setAperPos
(double dblVal) void
setAperPos
(double[] dblArr) void
setAperX
(double dblVal) void
setAperX
(double[] dblArr) void
setAperY
(double dblVal) void
setAperY
(double[] dblArr) void
setShape
(int intVal) Methods inherited from class xal.smf.attr.AttributeBucket
checkAttribute, dataLabel, getAttr, getAttrDescription, parseAttrValue, registerAttribute, registerAttribute, setAttrValue, setAttrValue, setAttrValue, setAttrValue, setAttrValue, setAttrValue, setAttrValue, setAttrValue, setAttrValue, setAttrValue, update, write
-
Field Details
-
UNKNOWN
public static final int UNKNOWN- See Also:
-
ELLIPSE
public static final int ELLIPSE- See Also:
-
RECTANGLE
public static final int RECTANGLE- See Also:
-
DIAMOND
public static final int DIAMOND- See Also:
-
IRREGULAR
public static final int IRREGULAR- See Also:
-
TYPE
- See Also:
-
-
Constructor Details
-
ApertureBucket
public ApertureBucket()Creates new ApertureBucket
-
-
Method Details
-
getType
Furnish a unique type id- Specified by:
getType
in classAttributeBucket
-
getAttrNames
- Overrides:
getAttrNames
in classAttributeBucket
-
getShape
public int getShape() -
getAperX
public double[] getAperX() -
getAperY
public double[] getAperY() -
getAperPos
public double[] getAperPos() -
setShape
public void setShape(int intVal) -
setAperX
public void setAperX(double dblVal) -
setAperY
public void setAperY(double dblVal) -
setAperPos
public void setAperPos(double dblVal) -
setAperX
public void setAperX(double[] dblArr) -
setAperY
public void setAperY(double[] dblArr) -
setAperPos
public void setAperPos(double[] dblArr)
-