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
Modifier and TypeFieldDescriptionprotected double
Length of this element.protected List
<TransferMatrix> Matrices which depend on this element for updates.protected TransferMatrix
Main transfer matrix.static final int
ConstantPR_LENGTH=5
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
ConstructorDescriptionConstructs transfer element with specified name and default parameter's values.AbstractTransferElement
(String name, boolean virtual, double position, double relpos, String relFrom, double length) Constructs theAbstractTransferElement
with 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.double
This 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.void
setLength
(double value) Sets the length of element.void
Sets 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, setRelPosition
Methods 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
- aString
name
-
AbstractTransferElement
public AbstractTransferElement(String name, boolean virtual, double position, double relpos, String relFrom, double length) Constructs theAbstractTransferElement
with 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:
clone
in interfaceISimpleElement
- Overrides:
clone
in classAbstractOpticalElement
- Returns:
- a
Object
the clone of this element. - See Also:
-
getAlpha1
This method return machine function alpha in the beginning of the transfer element.- Returns:
- a
PositionedData
object
-
getAlpha2
This method return machine function alpha in the end of the transfer element.- Returns:
- a
PositionedData
object
-
getBeta1
This method return machine function beta in the beginning of the transfer element.- Returns:
- a
PositionedData
object
-
getBeta2
This method return machine function beta in the end of the transfer element.- Returns:
- a
PositionedData
object
-
getDispersion1
This method return machine function dispersion in the beginning of the transfer element.- Returns:
- a
DispersionData
object
-
getDispersion2
This method return machine function dispersion in the end of the transfer element.- Returns:
- a
DispersionData
object
-
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
TransferMatrix
object - See Also:
-
getQ1
This method return normalised beam phase in teh beginning of the elemnet.- Returns:
- a
PositionedData
object
-
getQ2
This method return normalised beam phase in teh end of the elemnet.- Returns:
- a
PositionedData
object
-
newMatrix
This method return transfer matrix of drift with the same length as this element.- Returns:
- a
TransferMatrix
object - See Also:
-
newMatrix
This method return transfer matrix of drift with the specified length.- Parameters:
length
- a double- Returns:
- a
TransferMatrix
object - 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 notnull
object in array.setWith.
setWith.
- Overrides:
setWith
in classAbstractOpticalElement
- Parameters:
par
- an array ofObject
objects- 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:
toString
in interfaceISimpleElement
- Overrides:
toString
in classAbstractOpticalElement
- See Also:
-