Class AbstractMagnetElement
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
- All Implemented Interfaces:
Cloneable,ISimpleElement
- Direct Known Subclasses:
AbstractCalibratedMagnet,Septum
AbstractMagnetElement represent element that generate quasi-static magnet field. It has pointer to PowerSupply- Author:
- igor@scictrl.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstantPR_POWER_SUPPLY=6protected PowerSupplyAssociated power supply object.Fields 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
ConstructorsConstructorDescriptionAbstractMagnetElement(String name) ConstructsAbstractMagnetElementwith specified name and default parameter's values.AbstractMagnetElement(String name, boolean virtual, double position, double relpos, String relFrom, double length, String ps) Constructs theAbstractMagnetElementwith specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionThis method returnPowerSupplywhich controls power supply, physically connected to this element.getPS()This method returns name of power supply.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.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
descriptor, elType, equals, getLastActionResult, getName, getOwner, getVirtual, hashCode, isInitialized, isVirtual, setVirtual, throwISE
-
Field Details
-
psH
Associated power supply object. -
PR_POWER_SUPPLY
public static final int PR_POWER_SUPPLYConstantPR_POWER_SUPPLY=6- See Also:
-
-
Constructor Details
-
AbstractMagnetElement
ConstructsAbstractMagnetElementwith specified name and default parameter's values.- Parameters:
name- aStringname of transfer element
-
AbstractMagnetElement
public AbstractMagnetElement(String name, boolean virtual, double position, double relpos, String relFrom, double length, String ps) Constructs theAbstractMagnetElementwith specified parameters.
-
-
Method Details
-
getPS
This method returns name of power supply.- Returns:
psname of power supply, specified by constructor.
-
getPowerSupply
This method returnPowerSupplywhich controls power supply, physically connected to this element.- Returns:
- a
PowerSupplyobject - See Also:
-
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:
-
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:
-