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
Modifier and TypeFieldDescriptionstatic final int
ConstantPR_POWER_SUPPLY=6
protected PowerSupply
Associated power supply object.Fields inherited from class org.scictrl.mp.orbitcorrect.model.optics.AbstractTransferElement
length, matrices, matrix, PR_LENGTH
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
ConstructorDescriptionAbstractMagnetElement
(String name) ConstructsAbstractMagnetElement
with specified name and default parameter's values.AbstractMagnetElement
(String name, boolean virtual, double position, double relpos, String relFrom, double length, String ps) Constructs theAbstractMagnetElement
with specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionThis method returnPowerSupply
which controls power supply, physically connected to this element.getPS()
This method returns name of power supply.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.AbstractTransferElement
clone, getAlpha1, getAlpha2, getBeta1, getBeta2, getDispersion1, getDispersion2, getLength, getMatrix, getQ1, getQ2, newMatrix, newMatrix, setLength
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
-
psH
Associated power supply object. -
PR_POWER_SUPPLY
public static final int PR_POWER_SUPPLYConstantPR_POWER_SUPPLY=6
- See Also:
-
-
Constructor Details
-
AbstractMagnetElement
ConstructsAbstractMagnetElement
with specified name and default parameter's values.- Parameters:
name
- aString
name of transfer element
-
AbstractMagnetElement
public AbstractMagnetElement(String name, boolean virtual, double position, double relpos, String relFrom, double length, String ps) Constructs theAbstractMagnetElement
with specified parameters.
-
-
Method Details
-
getPS
This method returns name of power supply.- Returns:
ps
name of power supply, specified by constructor.
-
getPowerSupply
This method returnPowerSupply
which controls power supply, physically connected to this element.- Returns:
- a
PowerSupply
object - 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 notnull
object in array.setWith.
setWith.
setWith.
- Overrides:
setWith
in classAbstractTransferElement
- 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.
toString.
- Specified by:
toString
in interfaceISimpleElement
- Overrides:
toString
in classAbstractTransferElement
- See Also:
-