Class AbstractTransferElement
java.lang.Object
org.scictrl.mp.orbitcorrect.model.optics.AbstractDataBushElement
org.scictrl.mp.orbitcorrect.model.optics.AbstractOpticalElement
org.scictrl.mp.orbitcorrect.model.optics.AbstractTransferElement
- All Implemented Interfaces:
Cloneable,ISimpleElement
- Direct Known Subclasses:
AbstractMagnetElement,Aperture,Cavity
Transfer elements are all elements that transfer electron beam. Their dimension in
direction of electron beam is not zero.
- Author:
- igor@scictrl.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleLength of this element.protected List<TransferMatrix> Matrices which depend on this element for updates.protected TransferMatrixMain transfer matrix.static final intConstantPR_LENGTH=5Fields 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
ConstructorsConstructorDescriptionConstructs transfer element with specified name and default parameter's values.AbstractTransferElement(String name, boolean virtual, double position, double relpos, String relFrom, double length) Constructs theAbstractTransferElementwith specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns the clone of this element.This method return machine function alpha in the beginning of the transfer element.This method return machine function alpha in the end of the transfer element.getBeta1()This method return machine function beta in the beginning of the transfer element.getBeta2()This method return machine function beta in the end of the transfer element.This method return machine function dispersion in the beginning of the transfer element.This method return machine function dispersion in the end of the transfer element.doubleThis method return length of the element.This method return transfer matrix of the element.getQ1()This method return normalised beam phase in teh beginning of the elemnet.getQ2()This method return normalised beam phase in teh end of the elemnet.This method return transfer matrix of drift with the same length as this element.newMatrix(double length) This method return transfer matrix of drift with the specified length.voidsetLength(double value) Sets the length of element.voidSets parameters values of this element to those in parameter array.toString()Returns the string representation of this element.Methods 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
descriptor, elType, equals, getLastActionResult, getName, getOwner, getVirtual, hashCode, isInitialized, isVirtual, setVirtual, throwISE
-
Field Details
-
PR_LENGTH
public static final int PR_LENGTHConstantPR_LENGTH=5- See Also:
-
matrix
Main transfer matrix. -
matrices
Matrices which depend on this element for updates. -
length
protected double lengthLength of this element.
-
-
Constructor Details
-
AbstractTransferElement
Constructs transfer element with specified name and default parameter's values.- Parameters:
name- aStringname
-
AbstractTransferElement
public AbstractTransferElement(String name, boolean virtual, double position, double relpos, String relFrom, double length) Constructs theAbstractTransferElementwith specified parameters.
-
-
Method Details
-
clone
Returns the clone of this element. Returns not initialized clone of this element. All data is copied to the clone. Returns not initialized clone of this element. All data is copied to the clone.clone.
- Specified by:
clonein interfaceISimpleElement- Overrides:
clonein classAbstractOpticalElement- Returns:
- a
Objectthe clone of this element. - See Also:
-
getAlpha1
This method return machine function alpha in the beginning of the transfer element.- Returns:
- a
PositionedDataobject
-
getAlpha2
This method return machine function alpha in the end of the transfer element.- Returns:
- a
PositionedDataobject
-
getBeta1
This method return machine function beta in the beginning of the transfer element.- Returns:
- a
PositionedDataobject
-
getBeta2
This method return machine function beta in the end of the transfer element.- Returns:
- a
PositionedDataobject
-
getDispersion1
This method return machine function dispersion in the beginning of the transfer element.- Returns:
- a
DispersionDataobject
-
getDispersion2
This method return machine function dispersion in the end of the transfer element.- Returns:
- a
DispersionDataobject
-
getLength
public double getLength()This method return length of the element.- Returns:
- a double
-
getMatrix
This method return transfer matrix of the element.- Returns:
- a
TransferMatrixobject - See Also:
-
getQ1
This method return normalised beam phase in teh beginning of the elemnet.- Returns:
- a
PositionedDataobject
-
getQ2
This method return normalised beam phase in teh end of the elemnet.- Returns:
- a
PositionedDataobject
-
newMatrix
This method return transfer matrix of drift with the same length as this element.- Returns:
- a
TransferMatrixobject - See Also:
-
newMatrix
This method return transfer matrix of drift with the specified length.- Parameters:
length- a double- Returns:
- a
TransferMatrixobject - See Also:
-
setLength
Sets the length of element. This operation is valid only when DataBush is in ACCESS_ALL_DATA mode, otherwize IllegalAccessException is thrown.- Parameters:
value- a double- Throws:
IllegalStateException- if any.
-
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.
- Overrides:
setWithin classAbstractOpticalElement- Parameters:
par- an array ofObjectobjects- Throws:
IllegalStateException- if element is initialized and inside DataBush.- 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.
- Specified by:
toStringin interfaceISimpleElement- Overrides:
toStringin classAbstractOpticalElement- See Also:
-