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, useFieldReadbackFields inherited from class xal.smf.AcceleratorNode
bolIsSoft, bolStatus, bolValid, bucAlign, bucAper, bucTwiss, channelSuite, dblLen, dblPos, dblS, mapAttrs, objAccel, seqParent, strEId, strId, strPIdFields 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 TypeMethodDescriptionvoidaddBucket(AttributeBucket buc) Override AcceleratorNode implementation to check for a FieldMapBucketdouble[]doublegetType()Derived class must furnish a unique type idvoidsetDimensions(int i) voidsetDynamic(boolean b) voidsetFieldMap(FieldMap fieldMap) final voidvoidsetFieldMapFile(String strVal) voidupdate(DataAdaptor adaptor) Update the node with data from the provided adaptor.voidwriteFieldMap(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, writePowerSuppliesMethods inherited from class xal.smf.impl.Magnet
getConversionFactor, getDesignField, getDfltField, getEffLength, getMagBucket, getNormField, getOrientation, getPolarity, getTangField, isCorrector, isHorizontal, isMagnet, isPole, isSkew, isVertical, setDfltField, setMagBucketMethods 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, writeStatusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:AcceleratorNodeDerived class must furnish a unique type id- Specified by:
getTypein 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:ElectromagnetUpdate the node with data from the provided adaptor.- Specified by:
updatein interfaceDataListener- Overrides:
updatein classElectromagnet- Parameters:
adaptor- The data provider
-
getLongitudinalPositions
public double[] getLongitudinalPositions()- Specified by:
getLongitudinalPositionsin interfaceISplittable- Returns:
- Longitudinal positions at which the element must be split.
-
getSliceLength
public double getSliceLength()- Specified by:
getSliceLengthin 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:IFileBasedFieldMapWrite the field map to a file.- Specified by:
writeFieldMapin interfaceIFileBasedFieldMap- Parameters:
fieldMapPath- The path to the directory where field map should be saved.
-