Package xal.extension.jels.smf.impl
Class MagFieldMap
java.lang.Object
xal.smf.AcceleratorNode
xal.smf.impl.Magnet
xal.smf.impl.Electromagnet
xal.extension.jels.smf.impl.MagFieldMap
- All Implemented Interfaces:
Comparable
,IFileBasedFieldMap
,ElementType
,MagnetType
,ISplittable
,DataListener
General magnetic Field Map element. It can be used with any type of
FieldMap
objects.
This element has to buckets:
- MagBucket: contains magnetic field parameters.
- FieldMapBucket: includes the filename of the field map file and information about its type.
- Author:
- Juan F. Esteban Müller <JuanF.EstebanMuller@esss.se>
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionMagFieldMap
(String strId) MagFieldMap
(String strId, ChannelFactory channelFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBucket
(AttributeBucket buc) Override AcceleratorNode implementation to check for a FieldMapBucketdouble[]
double
getType()
Derived class must furnish a unique type idvoid
setDimensions
(int i) void
setDynamic
(boolean b) void
setFieldMap
(FieldMap fieldMap) final void
void
setFieldMapFile
(String strVal) void
update
(DataAdaptor adaptor) Update the node with data from the provided adaptor.void
writeFieldMap
(String fieldMapPath) Write the field map to a file.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, updatePowerSupplies, upperAlarmFieldLimit, upperCurrentLimit, upperDisplayFieldLimit, upperFieldLimit, upperWarningFieldLimit, useFieldReadback, write, writePowerSupplies
Methods inherited from class xal.smf.impl.Magnet
getConversionFactor, getDesignField, getDfltField, getEffLength, getMagBucket, getNormField, getOrientation, getPolarity, getTangField, isCorrector, isHorizontal, isMagnet, isPole, 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, isKindOf, lazilyGetAndConnect, removeFromParent, setAccelerator, setAlign, setAper, setDesignPropertyValue, setLength, setLivePropertyValue, setParent, setPitchAngle, setPosition, setRollAngle, setSDisplay, setStatus, setTwiss, setValid, setValueAndVerify, setXOffset, setYawAngle, setYOffset, setZOffset, toString, writeAttributes, writeStatus
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface xal.smf.impl.qualify.ElementType
isKindOf
-
Field Details
-
TYPE
- See Also:
-
bucFieldMap
-
-
Constructor Details
-
MagFieldMap
-
MagFieldMap
-
-
Method Details
-
getType
Description copied from class:AcceleratorNode
Derived class must furnish a unique type id- Specified by:
getType
in classAcceleratorNode
-
getFieldMapBucket
-
setFieldMapBucket
-
addBucket
Override AcceleratorNode implementation to check for a FieldMapBucket -
getFieldMapFile
- Returns:
- FieldMap file
-
setFieldMapFile
- Parameters:
strVal
- FieldMap file
-
getFieldMap
- Returns:
- Field profile
-
setFieldMap
- Parameters:
fieldMap
-
-
update
Description copied from class:Electromagnet
Update the node with data from the provided adaptor.- Specified by:
update
in interfaceDataListener
- Overrides:
update
in classElectromagnet
- Parameters:
adaptor
- The data provider
-
getLongitudinalPositions
public double[] getLongitudinalPositions()- Specified by:
getLongitudinalPositions
in interfaceISplittable
- Returns:
- Longitudinal positions at which the element must be split.
-
getSliceLength
public double getSliceLength()- Specified by:
getSliceLength
in interfaceISplittable
- Returns:
- Length of each slice of the element.
-
setDimensions
public void setDimensions(int i) -
setDynamic
public void setDynamic(boolean b) -
writeFieldMap
Description copied from interface:IFileBasedFieldMap
Write the field map to a file.- Specified by:
writeFieldMap
in interfaceIFileBasedFieldMap
- Parameters:
fieldMapPath
- The path to the directory where field map should be saved.
-