Package xal.smf.impl
Class EDipole
java.lang.Object
xal.smf.AcceleratorNode
xal.smf.impl.Electrostatic
xal.smf.impl.EDipole
- All Implemented Interfaces:
Comparable,ElementType,DataListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final Stringhorizontal dipole typestatic final intstatic final Stringstandard type for instances of this classstatic final intstatic final Stringvertical dipole typeFields inherited from class xal.smf.impl.Electrostatic
bucMagnet, field, FIELD_RB_HANDLE, mainSupplyId, useFieldReadback -
Constructor Summary
ConstructorsConstructorDescriptionConstructorEDipole(String strId, ChannelFactory channelFactory) Primary Constructor -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the dipole bend magnet bending angle.doublereturns design path length in metersintGet the orientation of the magnet as defined by MagnetType.getType()Derived class must furnish a unique type idbooleanDetermine if a node is of the specified type.voidvoidupdate(DataAdaptor adaptor) Update the instance with data from the data adaptor.Methods inherited from class xal.smf.impl.Electrostatic
addBucket, getDesignField, getDfltField, getEffLength, getField, getFieldReadback, getFieldSetting, getMagBucket, getMainSupply, getPolarity, getTotalFieldSetting, isHorizontal, isVertical, setMagBucket, toCAFromField, toFieldFromCA, writePowerSuppliesMethods inherited from class xal.smf.AcceleratorNode
batchConnectAllHandles, batchConnectAllHandlesAndWait, channelSuite, clear, compareTo, dataLabel, findChannel, getAccelerator, getAccessibleProperties, getAccessibleProperties, getAlign, getAllChannels, getAndConnectChannel, getAndConnectChannelSetAndReadback, getAper, getBucket, getBuckets, getChannel, getDefaultHandles, getDesignPropertyValue, getEId, getHandles, getId, getLength, getLivePropertyChannels, getLivePropertyValue, getParent, getPId, getPitchAngle, getPosition, getPrimaryAncestor, getProperties, getReadbackHandles, getRollAngle, getSDisplay, getSetHandle, getSoftType, getStatus, getTwiss, getValid, getXOffset, getYawAngle, getYOffset, getZOffset, hasBucket, hasParent, isChannelSettable, isMagnet, lazilyGetAndConnect, removeFromParent, setAccelerator, setAlign, setAper, setDesignPropertyValue, setLength, setLivePropertyValue, setParent, setPitchAngle, setPosition, setRollAngle, setSDisplay, setStatus, setTwiss, setValid, setValueAndVerify, setXOffset, setYawAngle, setYOffset, setZOffset, toString, write, writeAttributes, writeStatus
-
Field Details
-
TYPE
standard type for instances of this class- See Also:
-
NO_ORIENTATION
public static final int NO_ORIENTATION- See Also:
-
HORIZONTAL
public static final int HORIZONTAL- See Also:
-
VERTICAL
public static final int VERTICAL- See Also:
-
HORIZONTAL_TYPE
horizontal dipole type- See Also:
-
VERTICAL_TYPE
vertical dipole type- See Also:
-
-
Constructor Details
-
EDipole
Primary Constructor -
EDipole
Constructor
-
-
Method Details
-
getType
Description copied from class:AcceleratorNodeDerived class must furnish a unique type id- Overrides:
getTypein classElectrostatic
-
setType
-
getOrientation
public int getOrientation()Get the orientation of the magnet as defined by MagnetType. The orientation of the quad is determined by its type: QH or QV- Overrides:
getOrientationin classElectrostatic- Returns:
- One of HORIZONTAL or VERTICAL
-
getDfltBendAngle
public double getDfltBendAngle()Get the dipole bend magnet bending angle. -
getDfltPathLength
public double getDfltPathLength()returns design path length in meters -
update
Update the instance with data from the data adaptor. Overrides the default implementation to set the quadrupole type since a quadrupole type can be either "QHE" or "QVE".- Specified by:
updatein interfaceDataListener- Overrides:
updatein classAcceleratorNode- Parameters:
adaptor- The data provider.
-
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.
-