Package xal.smf.impl
Class EQuad
java.lang.Object
xal.smf.AcceleratorNode
xal.smf.impl.Electrostatic
xal.smf.impl.EQuad
- All Implemented Interfaces:
Comparable,ElementType,DataListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringhorizontal quadrupole typestatic final Stringskew quadrupole typestatic final Stringstatic final Stringvertical quadrupole typeFields inherited from class xal.smf.impl.Electrostatic
bucMagnet, field, FIELD_RB_HANDLE, HORIZONTAL, mainSupplyId, NO_ORIENTATION, useFieldReadback, VERTICAL -
Constructor Summary
ConstructorsConstructorDescriptionConstructorEQuad(String strId, ChannelFactory channelFactory) Primary Constructor -
Method Summary
Modifier and TypeMethodDescriptionintGet 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
- See Also:
-
HORIZONTAL_TYPE
horizontal quadrupole type- See Also:
-
VERTICAL_TYPE
vertical quadrupole type- See Also:
-
SKEW_TYPE
skew quadrupole type- See Also:
-
-
Constructor Details
-
EQuad
Primary Constructor -
EQuad
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
-
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.
-