Class Aperture
java.lang.Object
org.scictrl.mp.orbitcorrect.model.optics.AbstractDataBushElement
org.scictrl.mp.orbitcorrect.model.optics.AbstractOpticalElement
org.scictrl.mp.orbitcorrect.model.optics.AbstractTransferElement
org.scictrl.mp.orbitcorrect.model.optics.Aperture
- All Implemented Interfaces:
Cloneable
,ISimpleElement
Aperture is drift space element. It has lead shields, which can be moved toward
the beam and stops outer electrons.
- Author:
- igor@scictrl.com
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
ConstantPR_X_SIZE=6
static final int
ConstantPR_Z_SIZE=7
Fields inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractTransferElement
length, matrices, matrix, PR_LENGTH
Fields inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractOpticalElement
PR_POSITION, PR_REL_FROM, PR_REL_POSITION
Fields inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractDataBushElement
lastActionResult, owner, PR_ELEMENT_NAME, PR_VIRTUAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the descriptor object for this element.int
elType()
Returns the code of element's type.double
getXsize()
This method returns aperture of lead shields in x direction.double
getZsize()
Getter for the fieldzsize
.void
Sets parameters values of this element to those in parameter array.void
setXsize
(double newValue) This method sets aperture in x direction.void
setZsize
(double newValue) This method sets aperture in z direction.toString()
Returns the string representation of this element.Methods inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractTransferElement
clone, getAlpha1, getAlpha2, getBeta1, getBeta2, getDispersion1, getDispersion2, getLength, getMatrix, getQ1, getQ2, newMatrix, newMatrix, setLength
Methods inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractOpticalElement
getAlpha, getBeta, getDispersion, getIndex, getPosition, getQ, getRelFrom, getRelPosition, setPosition, setRelFrom, setRelPosition
Methods inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractDataBushElement
equals, getLastActionResult, getName, getOwner, getVirtual, hashCode, isInitialized, isVirtual, setVirtual, throwISE
-
Field Details
-
PR_X_SIZE
public static final int PR_X_SIZEConstantPR_X_SIZE=6
- See Also:
-
PR_Z_SIZE
public static final int PR_Z_SIZEConstantPR_Z_SIZE=7
- See Also:
-
-
Constructor Details
-
Method Details
-
descriptor
Returns the descriptor object for this element.DBElementDescriptor
helps manipulating DataBush elements dynamically.descriptor.
- Specified by:
descriptor
in classAbstractDataBushElement
- Returns:
- the descriptor object for this element.
- See Also:
-
elType
public int elType()Returns the code of element's type.elType.
- Specified by:
elType
in classAbstractDataBushElement
- Returns:
- the code of element's type.
- See Also:
-
getXsize
public double getXsize()This method returns aperture of lead shields in x direction.- Returns:
- a double
-
getZsize
public double getZsize()Getter for the field
zsize
.- Returns:
- double
-
setWith
Sets parameters values of this element to those in parameter array. As parameter must be used such array as for dynamical construction of new instance of this class. Current values are overriden for each notnull
object in array.setWith.
setWith.
setWith.
- Overrides:
setWith
in classAbstractTransferElement
- Parameters:
par
- an array ofObject
objects- Throws:
IllegalStateException
- if element is initialized and inside DataBush.- See Also:
-
setXsize
public void setXsize(double newValue) This method sets aperture in x direction.- Parameters:
newValue
- a double- See Also:
-
setZsize
public void setZsize(double newValue) This method sets aperture in z direction.- Parameters:
newValue
- a double- See Also:
-
toString
Returns the string representation of this element. Returns string describing this element. String is formated in input-file code. Returns a String that represents the value of this object.toString.
toString.
- Specified by:
toString
in interfaceISimpleElement
- Overrides:
toString
in classAbstractTransferElement
- See Also:
-