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 Stringstandard 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, useFieldReadbackFields inherited from class xal.smf.AcceleratorNode
bolIsSoft, bolStatus, bolValid, bucAlign, bucAper, bucTwiss, channelSuite, dblLen, dblPos, dblS, mapAttrs, objAccel, seqParent, strEId, strId, strPIdFields 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 TypeMethodDescriptionintGet the orientation of the magnet as defined by MagnetType.getType()Override to provide type signaturebooleanDetermine if a node is of the specified type.voidsetOrientation(int orientation) Sets orientation of the magnet as defined by MagnetType.Methods inherited from class xal.smf.impl.DipoleCorr
isCorrectorMethods inherited from class xal.smf.impl.Dipole
getBendAngle, getDfltBendAngle, getDfltPathLength, getEntrRotAngle, getExitRotAngle, getQuadComponent, isPoleMethods 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, writePowerSuppliesMethods inherited from class xal.smf.impl.Magnet
addBucket, getConversionFactor, getDesignField, getDfltField, getEffLength, getMagBucket, getNormField, getPolarity, getTangField, isHorizontal, isMagnet, isSkew, isVertical, setDfltField, setMagBucketMethods 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:
getOrientationin interfaceMagnetType- Overrides:
getOrientationin classMagnet- Returns:
- One of HORIZONTAL or VERTICAL
-
isKindOf
Description copied from class:AcceleratorNodeDetermine 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:
isKindOfin interfaceElementType- Overrides:
isKindOfin classAcceleratorNode- Parameters:
type- The type against which to compare.- Returns:
- true if the node is of the specified type; false otherwise.
-