Class RBending
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.AbstractMagnetElement
org.scictrl.mp.orbitcorrect.model.optics.AbstractCalibratedMagnet
org.scictrl.mp.orbitcorrect.model.optics.AbstractBending
org.scictrl.mp.orbitcorrect.model.optics.RBending
- All Implemented Interfaces:
Cloneable,ISimpleElement,AbstractUpdateableElement,IApplyableElement
This type represent rectangular dipole magnet. It has parallel side faces and additional wedge foccusing.
- Author:
- igor@scictrl.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstantPR_LEFT_WEDGE_ANGLE=12static final intConstantPR_RIGHT_WEDGE_ANGLE=13Fields inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractBending
PR_DFIELD, PR_ENERGY, PR_QUADRUPOLE_STRENGTH, PR_RADIUS, quadrupoleStrength, radiusFields inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractCalibratedMagnet
calibrationEntry, current, dataInvalidated, PR_CALIBRATION_ENTRYFields inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractMagnetElement
PR_POWER_SUPPLY, psHFields 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
ConstructorsConstructorDescriptionConstructsRBendingwith specified name and default parameter's values.RBending(String name, boolean virtual, double position, double relpos, String relFrom, double length, String ps, String calibrationEntry, double quadrupoleStrength, double radius, double dipoleField, double energy, double lwedge, double rwedge) Constructs theRBendingwith specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns the descriptor object for this element.intelType()Returns the code of element's type.doubleGetter for the fieldleftWedgeAngle.doubleGetter for the fieldrightWedgeAngle.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.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.AbstractBending
applyField, clone, getCalculator, getDipoleField, getEnergy, getMaxEnergy, getMinEnergy, getQuadrupoleStrength, getRadius, setCurrent, setDipoleField, setEnergy, setQuadrupoleStrength, setRadius, updateMethods inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractCalibratedMagnet
getCalibrationEntry, getCurrent, invalidateData, isDataInvalidated, updateMatricesMethods inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractMagnetElement
getPowerSupply, getPSMethods inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractTransferElement
getAlpha1, getAlpha2, getBeta1, getBeta2, getDispersion1, getDispersion2, getLength, getMatrix, getQ1, getQ2, 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_LEFT_WEDGE_ANGLE
public static final int PR_LEFT_WEDGE_ANGLEConstantPR_LEFT_WEDGE_ANGLE=12- See Also:
-
PR_RIGHT_WEDGE_ANGLE
public static final int PR_RIGHT_WEDGE_ANGLEConstantPR_RIGHT_WEDGE_ANGLE=13- See Also:
-
-
Constructor Details
-
RBending
ConstructsRBendingwith specified name and default parameter's values.- Parameters:
name- aStringname of abstract bending
-
RBending
public RBending(String name, boolean virtual, double position, double relpos, String relFrom, double length, String ps, String calibrationEntry, double quadrupoleStrength, double radius, double dipoleField, double energy, double lwedge, double rwedge) Constructs theRBendingwith specified parameters.- Parameters:
name- aStringobjectvirtual- a booleanposition- a doublerelpos- a doublerelFrom- aStringobjectlength- a doubleps- aStringobjectcalibrationEntry- aStringobjectquadrupoleStrength- a doubleradius- a doubledipoleField- a doubleenergy- a doublelwedge- a doublerwedge- a double
-
-
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:
-
newMatrix
This method return transfer matrix of drift with the same length as this element. This method return transfer matrix, calculated with current length, quadrupole strength and radius. This method return transfer matrix, calculated with current length, quadrupole strength and radius.- Overrides:
newMatrixin classAbstractBending- Returns:
- a
TransferMatrixobject - See Also:
-
newMatrix
This method return transfer matrix of drift with the specified length. This method return transfer matrix, calculated with current quadrupole strength, radius and as parameter specified length. This method return transfer matrix, calculated with current quadrupole strength, radius and as parameter specified length.- Overrides:
newMatrixin classAbstractBending- Parameters:
length- a double- Returns:
- a
TransferMatrixobject - 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.
toString.
toString.
Returns a String that represents the value of this object.- Specified by:
toStringin interfaceISimpleElement- Overrides:
toStringin classAbstractBending- See Also:
-
getLeftWedgeAngle
public double getLeftWedgeAngle()Getter for the field
leftWedgeAngle.- Returns:
- a double
-
getRightWedgeAngle
public double getRightWedgeAngle()Getter for the field
rightWedgeAngle.- Returns:
- a 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.
setWith.
setWith.
setWith.
- Overrides:
setWithin classAbstractBending- Parameters:
par- an array ofObjectobjects- Throws:
IllegalStateException- if element is initialized and inside DataBush.- See Also:
-