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 String
horizontal quadrupole typestatic final String
skew quadrupole typestatic final String
static final String
vertical 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 TypeMethodDescriptionint
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
- 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: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
-
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.
-