Package xal.sim.scenario
Class ProbeFactory
java.lang.Object
xal.sim.scenario.ProbeFactory
ProbeFactory is a factory for generating probes.
TODO
· Let's do the proper type of the probe species on the methods
· Perhaps we could rename the
· Let's do the proper type of the probe species on the methods
· Perhaps we could rename the
get
-prefixed methods
to a more conventional naming (e.g., create
-)- Since:
- Sep 03, 2004
- Author:
- tap
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
table name for the beam parametersprotected static final String
table name for phase coordinatesprotected static final String
parameter name for chargeprotected static final String
parameter name for kinetic energyprotected static final String
table name for the location recordsprotected static final String
parameter name for massprotected static final String
table name for phase coordinatesprotected static final String
XML attribute name for the phase coordinates themselvesprotected static final String
parameter name for species name parameterprotected static final String
parameter name for speciesprotected static final String
table name for speciesprotected static final String
table name for the Twiss parameters -
Method Summary
Modifier and TypeMethodDescriptionstatic ParticleProbe
createParticleProbe
(AcceleratorSeq sequence, IAlgorithm algorithm) Generate a Particle probe initialized with the default entrance parameters for the specified sequence.static void
createSchema
(EditContext ecTableData, EnvelopeProbe defaultProbe) static EnvelopeProbe
getEnvelopeProbe
(String locationID, AcceleratorSeq sequence, IAlgorithm algorithm) Generate an Envelope probe initialized with the entrance parameters for the specified location.static EnvelopeProbe
getEnvelopeProbe
(AcceleratorSeq sequence, IAlgorithm algorithm) Generate an Envelope probe initialized with the default entrance parameters for the specified sequence.getLocationIDs
(Accelerator accelerator) Get the list of available location IDs ordered alpha-numerically.static List<GenericRecord>
getLocationRecords
(Accelerator accelerator) Get the list of available location records ordered by name.static ParticleProbe
getParticleProbe
(String locationID, AcceleratorSeq sequence, IAlgorithm algorithm) Generate a Particle probe initialized with the entrance parameters for the specified location.static SynchronousProbe
getSynchronousProbe
(String locationID, AcceleratorSeq sequence, IAlgorithm algorithm) Generate an Synchronous probe initialized with the entrance parameters for the specified location.static SynchronousProbe
getSynchronousProbe
(AcceleratorSeq sequence, IAlgorithm algorithm) Generate an Synchronous probe initialized with the default entrance parameters for the specified sequence.static TransferMapProbe
getTransferMapProbe
(String locationID, AcceleratorSeq sequence, IAlgorithm algorithm) Generate a TransferMap probe initialized with the entrance parameters for the specified location.static TransferMapProbe
getTransferMapProbe
(AcceleratorSeq sequence, IAlgorithm algorithm) Generate a TransferMap probe initialized with the default entrance parameters for the specified sequence.static TwissProbe
getTwissProbe
(String strLocId, AcceleratorSeq seqParent, IAlgorithm algDynamics) Create and initialize a newTwissProbe
object with the default parameters in the model.params file.static TwissProbe
getTwissProbe
(AcceleratorSeq seqParent, IAlgorithm algDynamics) Create and initialize a newTwissProbe
object with the default parameters in the model.params file.static void
storeInitialValues
(EditContext ecTableData, List<EnvelopeProbeState> states)
-
Field Details
-
SPECIES_TABLE
table name for species- See Also:
-
BEAM_TABLE
table name for the beam parameters- See Also:
-
TWISS_TABLE
table name for the Twiss parameters- See Also:
-
PHASECOORD_TABLE
table name for phase coordinates- See Also:
-
CENTRCOORD_TABLE
table name for phase coordinates- See Also:
-
LOCATION_TABLE
table name for the location records- See Also:
-
KINETIC_ENERGY_PARAM
parameter name for kinetic energy- See Also:
-
SPECIES_PARAM
parameter name for species- See Also:
-
SPECIES_NAME_PARAM
parameter name for species name parameter- See Also:
-
CHARGE_PARAM
parameter name for charge- See Also:
-
MASS_PARAM
parameter name for mass- See Also:
-
PHASECOORD_VALUE_PARAM
XML attribute name for the phase coordinates themselves- See Also:
-
-
Method Details
-
createParticleProbe
Generate a Particle probe initialized with the default entrance parameters for the specified sequence. The location used defaults to the sequence's entrance ID.- Parameters:
sequence
- the sequence for which to initialize the probealgorithm
- the online model algorithm to use- Returns:
- the initialized particle probe
-
getParticleProbe
public static ParticleProbe getParticleProbe(String locationID, AcceleratorSeq sequence, IAlgorithm algorithm) Generate a Particle probe initialized with the entrance parameters for the specified location.- Parameters:
locationID
- the location ID of the entrance parameters to usesequence
- the sequence for which to initialize the probealgorithm
- the online model algorithm to use- Returns:
- the initialized particle probe
-
getTransferMapProbe
Generate a TransferMap probe initialized with the default entrance parameters for the specified sequence. The location used defaults to the sequence's entrance ID.- Parameters:
sequence
- the sequence for which to initialize the probealgorithm
- the online model algorithm to use- Returns:
- the initialized transfer map probe
-
getTransferMapProbe
public static TransferMapProbe getTransferMapProbe(String locationID, AcceleratorSeq sequence, IAlgorithm algorithm) Generate a TransferMap probe initialized with the entrance parameters for the specified location.- Parameters:
locationID
- the location ID of the entrance parameters to usesequence
- the sequence for which to initialize the probealgorithm
- the online model algorithm to use- Returns:
- the initialized transfer map probe
-
getTwissProbe
Create and initialize a newTwissProbe
object with the default parameters in the model.params file. The parameters are taken for the entrance location of the provided accelerator hardware sequence. The given algorithm object is also verified and attached to the probe.- Parameters:
seqParent
- accelerator sequence containing the locationalgDynamics
- algorithm used for the simulation- Returns:
- new, initialized
TwissProbe
object - Since:
- Sep 6, 2014
-
getTwissProbe
public static TwissProbe getTwissProbe(String strLocId, AcceleratorSeq seqParent, IAlgorithm algDynamics) Create and initialize a newTwissProbe
object with the default parameters in the model.params file. The parameters are taken for the location of the provided location ID along the given accelerator hardware sequence. The given algorithm object is also verified and attached to the probe.- Parameters:
strLocId
- location of the accelerator where the model parameters are takenseqParent
- accelerator sequence containing the locationalgDynamics
- algorithm used for the simulation- Returns:
- new, initialized
TwissProbe
object - Since:
- Nov 5, 2013
-
getEnvelopeProbe
Generate an Envelope probe initialized with the default entrance parameters for the specified sequence. The location used defaults to the sequence's entrance ID.- Parameters:
sequence
- the sequence for which to initialize the probealgorithm
- the online model algorithm to use- Returns:
- the initialized transfer map probe
-
getEnvelopeProbe
public static EnvelopeProbe getEnvelopeProbe(String locationID, AcceleratorSeq sequence, IAlgorithm algorithm) Generate an Envelope probe initialized with the entrance parameters for the specified location.- Parameters:
locationID
- the location ID of the entrance parameters to usesequence
- the sequence for which to initialize the probealgorithm
- the online model algorithm to use- Returns:
- the initialized transfer map probe
-
getSynchronousProbe
Generate an Synchronous probe initialized with the default entrance parameters for the specified sequence. The location used defaults to the sequence's entrance ID.- Parameters:
sequence
- the sequence for which to initialize the probealgorithm
- the online model algorithm to use- Returns:
- the initialized transfer map probe
-
getSynchronousProbe
public static SynchronousProbe getSynchronousProbe(String locationID, AcceleratorSeq sequence, IAlgorithm algorithm) Generate an Synchronous probe initialized with the entrance parameters for the specified location.- Parameters:
locationID
- the location ID of the entrance parameters to usesequence
- the sequence for which to initialize the probealgorithm
- the online model algorithm to use- Returns:
- the initialized transfer map probe
-
getLocationIDs
Get the list of available location IDs ordered alpha-numerically.- Parameters:
accelerator
- accelerator object to parse- Returns:
- a list of available location IDs.
-
getLocationRecords
Get the list of available location records ordered by name.- Parameters:
accelerator
- accelerator object to parse- Returns:
- a list of available location records.
-
createSchema
-
storeInitialValues
-