Package xal.extension.jels.smf.impl
Class Bend
java.lang.Object
xal.smf.AcceleratorNode
xal.smf.impl.Magnet
xal.smf.impl.Electromagnet
xal.smf.impl.Dipole
xal.smf.impl.Bend
xal.extension.jels.smf.impl.Bend
- All Implemented Interfaces:
Comparable
,ElementType
,MagnetType
,DataListener
Extends OpenXal Bend class with orientation and FringeField parameters.
- Author:
- Ivo List, Juan F. Esteban Müller <JuanF.EstebanMuller@esss.se>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
device typestatic final String[]
static final String[]
Fields inherited from class xal.smf.impl.Electromagnet
field, FIELD_RB_HANDLE, fieldFromCurrent, fieldRBProperty, mainSupplyId, useFieldReadback
Fields inherited from class xal.smf.AcceleratorNode
bolIsSoft, bolStatus, bolValid, bucAlign, bucAper, bucTwiss, channelSuite, dblLen, dblPos, dblS, mapAttrs, objAccel, seqParent, strEId, strId, strPId
Fields inherited from interface xal.smf.impl.qualify.MagnetType
DIPOLE, HORIZONTAL, NO_ORIENTATION, OCT, OCTUPOLE, poles, QUAD, QUADRUPOLE, SEXT, SEXTUPOLE, SOL, SOLENOID, VERTICAL
-
Constructor Summary
ConstructorsConstructorDescriptionCreates Bend with horizontal orientation.Creates Bend with arbitrary orientation.Bend
(String strId, int orientation, ChannelFactory channelFactory) Creates Bend with arbitrary orientation.Bend
(String strId, ChannelFactory channelFactory) Creates Bend with horizontal orientation. -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
double
double
getGap()
int
Get the orientation of the magnet as defined by MagnetType.getType()
Override to provide the correct type signature per instance.boolean
Determine if this node is of the specified type.void
setEntrK1
(double value) void
setEntrK2
(double value) void
setExitK1
(double value) void
setExitK2
(double value) void
setGap
(double value) void
setOrientation
(int orientation) Sets orientation of the magnet as defined by MagnetType.Methods inherited from class xal.smf.impl.Dipole
getBendAngle, getDfltBendAngle, getDfltPathLength, getEntrRotAngle, getExitRotAngle, getQuadComponent, isPole
Methods 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, writePowerSupplies
Methods inherited from class xal.smf.impl.Magnet
addBucket, getConversionFactor, getDesignField, getDfltField, getEffLength, getMagBucket, getNormField, getPolarity, getTangField, isCorrector, isHorizontal, isMagnet, isSkew, isVertical, setDfltField, setMagBucket
Methods 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
device type- See Also:
-
TYPE_DH
-
TYPE_DV
-
-
Constructor Details
-
Bend
Creates Bend with horizontal orientation.- Parameters:
strId
- node id
-
Bend
Creates Bend with horizontal orientation.- Parameters:
strId
- node idchannelFactory
-
-
Bend
Creates Bend with arbitrary orientation.- Parameters:
strId
- node idorientation
- orientation of the magnet, either HORIZONTAL or VERTICAL as defined by MagnetType.
-
Bend
Creates Bend with arbitrary orientation.- Parameters:
strId
- node idorientation
- orientation of the magnet, either HORIZONTAL or VERTICAL as defined by MagnetType.channelFactory
-
-
-
Method Details
-
getType
Override to provide the correct type signature per instance. This is necessary since the Dipole class can represent more than one official type (DH or DV). -
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
-
getGap
public double getGap()- Returns:
- total gap of magnet (m)
-
setGap
public void setGap(double value) - Parameters:
value
- total gap of magnet (m)
-
getEntrK1
public double getEntrK1()- Returns:
- Upstream edge face Fringe-field factor (default = 0.45)
-
setEntrK1
public void setEntrK1(double value) - Parameters:
value
- Upstream edge face Fringe-field factor (default = 0.45)
-
getEntrK2
public double getEntrK2()- Returns:
- Upstream edge face Fringe-field factor (default = 2.80)
-
setEntrK2
public void setEntrK2(double value) - Parameters:
value
- Upstream edge face Fringe-field factor (default = 2.80)
-
getExitK1
public double getExitK1()- Returns:
- Downstream edge face Fringe-field factor (default = 0.45)
-
setExitK1
public void setExitK1(double value) - Parameters:
value
- Downstream edge face Fringe-field factor (default = 0.45)
-
getExitK2
public double getExitK2()- Returns:
- Downstream edge face Fringe-field factor (default = 2.80)
-
setExitK2
public void setExitK2(double value) - Parameters:
value
- Downstream edge face Fringe-field factor (default = 2.80)
-
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:
getOrientation
in interfaceMagnetType
- Overrides:
getOrientation
in classBend
- Returns:
- One of HORIZONTAL or VERTICAL
-
isKindOf
Determine if this node is of the specified type. Override the default method since a dipole could represent either a vertical or horizontal type. Must also handle inheritance checking so we must or the direct type comparison with the inherited type checking.- Specified by:
isKindOf
in interfaceElementType
- Overrides:
isKindOf
in classAcceleratorNode
- Parameters:
type
- The type against which to compare this quadrupole's type.- Returns:
- true if the node is a match and false otherwise.
-