Package xal.extension.jels.smf.impl
Class DipoleCorr
java.lang.Object
xal.smf.AcceleratorNode
xal.smf.impl.Magnet
xal.smf.impl.Electromagnet
xal.smf.impl.Dipole
xal.smf.impl.DipoleCorr
xal.extension.jels.smf.impl.DipoleCorr
- All Implemented Interfaces:
Comparable
,ElementType
,MagnetType
,DataListener
Class for horizontal and vertical correctors.
- Author:
- Juan F. Esteban Müller <JuanF.EstebanMuller@esss.se>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
standard type for nodes of this classstatic final String[]
static final String[]
Fields inherited from class xal.smf.impl.Electromagnet
field, FIELD_RB_HANDLE, fieldFromCurrent, fieldRBProperty, mainSupplyId, useFieldReadback
Fields inherited from class xal.smf.AcceleratorNode
bolIsSoft, bolStatus, bolValid, bucAlign, bucAper, bucTwiss, channelSuite, dblLen, dblPos, dblS, mapAttrs, objAccel, seqParent, strEId, strId, strPId
Fields inherited from interface xal.smf.impl.qualify.MagnetType
DIPOLE, HORIZONTAL, NO_ORIENTATION, OCT, OCTUPOLE, poles, QUAD, QUADRUPOLE, SEXT, SEXTUPOLE, SOL, SOLENOID, VERTICAL
-
Constructor Summary
ConstructorsConstructorDescriptionDipoleCorr
(String strId) DipoleCorr
(String strId, int orientation) DipoleCorr
(String strId, int orientation, ChannelFactory channelFactory) Primary ConstructorDipoleCorr
(String strId, ChannelFactory channelFactory) -
Method Summary
Modifier and TypeMethodDescriptionint
Get the orientation of the magnet as defined by MagnetType.getType()
Override to provide type signatureboolean
Determine if a node is of the specified type.void
setOrientation
(int orientation) Sets orientation of the magnet as defined by MagnetType.Methods inherited from class xal.smf.impl.DipoleCorr
isCorrector
Methods inherited from class xal.smf.impl.Dipole
getBendAngle, getDfltBendAngle, getDfltPathLength, getEntrRotAngle, getExitRotAngle, getQuadComponent, isPole
Methods inherited from class xal.smf.impl.Electromagnet
findChannel, getAccessibleProperties, getCurrent, getCycleState, getDefaultHandles, getField, getFieldInt, getFieldReadback, getFieldSetting, getHandles, getMainSupply, getReadbackHandles, getSetHandle, getTotalFieldSetting, isChannelSettable, isPermanent, lowerAlarmFieldLimit, lowerCurrentLimit, lowerDisplayFieldLimit, lowerFieldLimit, lowerWarningFieldLimit, setCurrent, setCycleEnable, setField, setMainSupplyId, setUseFieldReadback, toCAFromField, toCurrentFromField, toFieldFromCA, toFieldFromCurrent, update, updatePowerSupplies, upperAlarmFieldLimit, upperCurrentLimit, upperDisplayFieldLimit, upperFieldLimit, upperWarningFieldLimit, useFieldReadback, write, writePowerSupplies
Methods inherited from class xal.smf.impl.Magnet
addBucket, getConversionFactor, getDesignField, getDfltField, getEffLength, getMagBucket, getNormField, getPolarity, getTangField, isHorizontal, isMagnet, isSkew, isVertical, setDfltField, setMagBucket
Methods inherited from class xal.smf.AcceleratorNode
batchConnectAllHandles, batchConnectAllHandlesAndWait, channelSuite, clear, compareTo, dataLabel, getAccelerator, getAccessibleProperties, getAlign, getAllChannels, getAndConnectChannel, getAndConnectChannelSetAndReadback, getAper, getBucket, getBuckets, getChannel, getDesignPropertyValue, getEId, getId, getLength, getLivePropertyChannels, getLivePropertyValue, getParent, getPId, getPitchAngle, getPosition, getPrimaryAncestor, getProperties, getRollAngle, getSDisplay, getSoftType, getStatus, getTwiss, getValid, getXOffset, getYawAngle, getYOffset, getZOffset, hasBucket, hasParent, lazilyGetAndConnect, removeFromParent, setAccelerator, setAlign, setAper, setDesignPropertyValue, setLength, setLivePropertyValue, setParent, setPitchAngle, setPosition, setRollAngle, setSDisplay, setStatus, setTwiss, setValid, setValueAndVerify, setXOffset, setYawAngle, setYOffset, setZOffset, toString, writeAttributes, writeStatus
-
Field Details
-
TYPE
standard type for nodes of this class- See Also:
-
TYPE_DCH
-
TYPE_DCV
-
-
Constructor Details
-
DipoleCorr
Primary Constructor -
DipoleCorr
-
DipoleCorr
-
DipoleCorr
-
-
Method Details
-
getType
Override to provide type signature -
setOrientation
public void setOrientation(int orientation) Sets orientation of the magnet as defined by MagnetType.- Parameters:
orientation
- orientation of the magnet, either HORIZONTAL or VERTICAL
-
getOrientation
public int getOrientation()Get the orientation of the magnet as defined by MagnetType. The orientation of the dipole is determined by its type: DH or DV- Specified by:
getOrientation
in interfaceMagnetType
- Overrides:
getOrientation
in classMagnet
- Returns:
- One of HORIZONTAL or VERTICAL
-
isKindOf
Description copied from class:AcceleratorNode
Determine if a node is of the specified type. The comparison is based upon the node's class and the element type manager handles checking for inherited classes to types get inherited. Subclasses can override this method if the types comparison is more complicated (e.g. if more than one type can be associated with the same node class).- Specified by:
isKindOf
in interfaceElementType
- Overrides:
isKindOf
in classAcceleratorNode
- Parameters:
type
- The type against which to compare.- Returns:
- true if the node is of the specified type; false otherwise.
-