public class ProbeFactory
extends java.lang.Object
get
-prefixed methods to
a more conventional naming (e.g., create
-)Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
BEAM_TABLE
table name for the beam parameters
|
protected static java.lang.String |
CENTRCOORD_TABLE
table name for phase coordinates
|
protected static java.lang.String |
CHARGE_PARAM
parameter name for charge
|
protected static java.lang.String |
KINETIC_ENERGY_PARAM
parameter name for kinetic energy
|
protected static java.lang.String |
LOCATION_TABLE
table name for the location records
|
protected static java.lang.String |
MASS_PARAM
parameter name for mass
|
protected static java.lang.String |
PHASECOORD_TABLE
table name for phase coordinates
|
protected static java.lang.String |
PHASECOORD_VALUE_PARAM
XML attribute name for the phase coordinates themselves
|
protected static java.lang.String |
SPECIES_NAME_PARAM
parameter name for species name parameter
|
protected static java.lang.String |
SPECIES_PARAM
parameter name for species
|
protected static java.lang.String |
SPECIES_TABLE
table name for species
|
protected static java.lang.String |
TWISS_TABLE
table name for the twiss parameters
|
Constructor and Description |
---|
ProbeFactory() |
Modifier and Type | Method and Description |
---|---|
static ParticleProbe |
createParticleProbe(AcceleratorSeq sequence,
IAlgorithm algorithm)
Generate a Particle probe initialized with the default entrance parameters for the
specified sequence.
|
static EnvelopeProbe |
getEnvelopeProbe(AcceleratorSeq sequence,
IAlgorithm algorithm)
Generate an Envelope probe initialized with the default entrance parameters for the
specified sequence.
|
static EnvelopeProbe |
getEnvelopeProbe(java.lang.String locationID,
AcceleratorSeq sequence,
IAlgorithm algorithm)
Generate an Envelope probe initialized with the entrance parameters for the specified location.
|
static java.util.List<java.lang.String> |
getLocationIDs(Accelerator accelerator)
Get the list of available location IDs ordered alpha-numerically.
|
static java.util.List<GenericRecord> |
getLocationRecords(Accelerator accelerator)
Get the list of available location records ordered by name.
|
static ParticleProbe |
getParticleProbe(java.lang.String locationID,
AcceleratorSeq sequence,
IAlgorithm algorithm)
Generate a Particle 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 TransferMapProbe |
getTransferMapProbe(java.lang.String locationID,
AcceleratorSeq sequence,
IAlgorithm algorithm)
Generate a TransferMap probe initialized with the entrance parameters for the specified location.
|
static TwissProbe |
getTwissProbe(AcceleratorSeq seqParent,
IAlgorithm algDynamics)
Create and initialize a new
TwissProbe object with the default parameters
in the model.params file. |
static TwissProbe |
getTwissProbe(java.lang.String strLocId,
AcceleratorSeq seqParent,
IAlgorithm algDynamics)
Create and initialize a new
TwissProbe object with the default parameters
in the model.params file. |
protected static final java.lang.String SPECIES_TABLE
protected static final java.lang.String BEAM_TABLE
protected static final java.lang.String TWISS_TABLE
protected static final java.lang.String PHASECOORD_TABLE
protected static final java.lang.String CENTRCOORD_TABLE
protected static final java.lang.String LOCATION_TABLE
protected static final java.lang.String KINETIC_ENERGY_PARAM
protected static final java.lang.String SPECIES_PARAM
protected static final java.lang.String SPECIES_NAME_PARAM
protected static final java.lang.String CHARGE_PARAM
protected static final java.lang.String MASS_PARAM
protected static final java.lang.String PHASECOORD_VALUE_PARAM
public static ParticleProbe createParticleProbe(AcceleratorSeq sequence, IAlgorithm algorithm)
sequence
- the sequence for which to initialize the probealgorithm
- the online model algorithm to usepublic static ParticleProbe getParticleProbe(java.lang.String locationID, AcceleratorSeq sequence, IAlgorithm algorithm)
locationID
- the location ID of the entrance parameters to usesequence
- the sequence for which to initialize the probealgorithm
- the online model algorithm to usepublic static TransferMapProbe getTransferMapProbe(AcceleratorSeq sequence, IAlgorithm algorithm)
sequence
- the sequence for which to initialize the probealgorithm
- the online model algorithm to usepublic static TransferMapProbe getTransferMapProbe(java.lang.String locationID, AcceleratorSeq sequence, IAlgorithm algorithm)
locationID
- the location ID of the entrance parameters to usesequence
- the sequence for which to initialize the probealgorithm
- the online model algorithm to usepublic static TwissProbe getTwissProbe(AcceleratorSeq seqParent, IAlgorithm algDynamics)
TwissProbe
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.seqParent
- accelerator sequence containing the locationalgDynamics
- algorithm used for the simulationTwissProbe
objectpublic static TwissProbe getTwissProbe(java.lang.String strLocId, AcceleratorSeq seqParent, IAlgorithm algDynamics)
TwissProbe
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.strLocId
- location of the accelerator where the model parameters are takenseqParent
- accelerator sequence containing the locationalgDynamics
- algorithm used for the simulationTwissProbe
objectpublic static EnvelopeProbe getEnvelopeProbe(AcceleratorSeq sequence, IAlgorithm algorithm)
sequence
- the sequence for which to initialize the probealgorithm
- the online model algorithm to usepublic static EnvelopeProbe getEnvelopeProbe(java.lang.String locationID, AcceleratorSeq sequence, IAlgorithm algorithm)
locationID
- the location ID of the entrance parameters to usesequence
- the sequence for which to initialize the probealgorithm
- the online model algorithm to usepublic static java.util.List<java.lang.String> getLocationIDs(Accelerator accelerator)
accelerator
- accelerator object to parsepublic static java.util.List<GenericRecord> getLocationRecords(Accelerator accelerator)
accelerator
- accelerator object to parse