Package xal.sim.scenario
Class DefaultElementMapping
java.lang.Object
xal.sim.scenario.ElementMapping
xal.sim.scenario.DefaultElementMapping
The default element mapping implemented as singleton.
- Author:
- Ivo List
-
Field Summary
FieldsFields inherited from class xal.sim.scenario.ElementMapping
bolDebug, bolDivMags, bolSubsectionCtrOrigin, elementMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDefaultDrift(String name, double len) Creates a new, general drift space.createRfCavityDrift(String name, double len, double freq, double mode) Creates a drift space within an RF cavity.Class<? extends IComponent>Currently returns the typexal.model.elem.MarkerClass<? extends IComposite>Currently returns the typexal.model.SectorClass<? extends IComponent>static ElementMappingReturns the default element mapping.Class<? extends IComponent>protected voidMethods inherited from class xal.sim.scenario.ElementMapping
getModelElementType, getModelSequenceType, isDebugging, isMagnetDivided, isSubsectionAxisOriginCentered, putMap, removeMap, setDebug, setDivideMagnetFlag
-
Field Details
-
instance
-
-
Constructor Details
-
DefaultElementMapping
protected DefaultElementMapping()
-
-
Method Details
-
getInstance
Returns the default element mapping.- Returns:
- the default element mapping
-
getDefaultElementType
Currently returns the typexal.model.elem.Marker- Specified by:
getDefaultElementTypein classElementMapping- Returns:
- default class type used when none is defined
- Since:
- Dec 5, 2014 @author Christopher K. Allen
- See Also:
-
getDefaultSequenceType
Currently returns the typexal.model.Sector- Specified by:
getDefaultSequenceTypein classElementMapping- Returns:
- default class type used to model hardware sequences
- Since:
- Dec 5, 2014
- See Also:
-
getDriftType
- Specified by:
getDriftTypein classElementMapping
-
getRfCavityDriftType
- Specified by:
getRfCavityDriftTypein classElementMapping
-
createDefaultDrift
Creates a new, general drift space.- Specified by:
createDefaultDriftin classElementMapping- Returns:
- drift model element
- Since:
- Dec 3, 2014
- See Also:
-
createRfCavityDrift
Creates a drift space within an RF cavity.- Specified by:
createRfCavityDriftin classElementMapping- Parameters:
name- string identifier of the drift spacelen- length of drift space (meters)freq- design frequency of the enclosing RF cavitymode- structure mode coupling the cavities within the tank- Returns:
- a new RF cavity drift space
- Since:
- Dec 3, 2014, Christopher K. Allen
- See Also:
-
initialize
protected void initialize()
-