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 int
static final String
horizontal dipole typestatic final int
static final String
standard type for instances of this classstatic final int
static final String
vertical 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 TypeMethodDescriptiondouble
Get the dipole bend magnet bending angle.double
returns design path length in metersint
Get the orientation of the magnet as defined by MagnetType.getType()
Derived class must furnish a unique type idboolean
Determine if a node is of the specified type.void
void
update
(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, writePowerSupplies
Methods 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:AcceleratorNode
Derived class must furnish a unique type id- Overrides:
getType
in 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:
getOrientation
in 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:
update
in interfaceDataListener
- Overrides:
update
in classAcceleratorNode
- Parameters:
adaptor
- The data provider.
-
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.
-