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
FieldsModifier and TypeFieldDescriptionstatic final intConstantPR_X_SIZE=6static final intConstantPR_Z_SIZE=7Fields inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractTransferElement
length, matrices, matrix, PR_LENGTHFields inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractOpticalElement
PR_POSITION, PR_REL_FROM, PR_REL_POSITIONFields inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractDataBushElement
lastActionResult, owner, PR_ELEMENT_NAME, PR_VIRTUAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the descriptor object for this element.intelType()Returns the code of element's type.doublegetXsize()This method returns aperture of lead shields in x direction.doublegetZsize()Getter for the fieldzsize.voidSets parameters values of this element to those in parameter array.voidsetXsize(double newValue) This method sets aperture in x direction.voidsetZsize(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, setLengthMethods inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractOpticalElement
getAlpha, getBeta, getDispersion, getIndex, getPosition, getQ, getRelFrom, getRelPosition, setPosition, setRelFrom, setRelPositionMethods 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.DBElementDescriptorhelps manipulating DataBush elements dynamically.descriptor.
- Specified by:
descriptorin classAbstractDataBushElement- Returns:
- the descriptor object for this element.
- See Also:
-
elType
public int elType()Returns the code of element's type.elType.
- Specified by:
elTypein 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 notnullobject in array.setWith.
setWith.
setWith.
- Overrides:
setWithin classAbstractTransferElement- Parameters:
par- an array ofObjectobjects- 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:
toStringin interfaceISimpleElement- Overrides:
toStringin classAbstractTransferElement- See Also:
-