Class SimpleSimResultsAdaptor
- All Implemented Interfaces:
ISimulationResults
,ISimulationResults.ISimEnvResults<ProbeState<?>>
,ISimulationResults.ISimLocResults<ProbeState<?>>
This class reduces the general operation of the base class
SimResultsAdaptor
to the specific use of the calculation engine
for simulation data of type
CalculationsOnRings
TransferMapTrajectory
, and use of calculation engine
for simulation data of type
CalculationsOnBeams
EnvelopeTrajectory
. Thus, probes states of either type
TransferMapState
or EnvelopeProbeState
may be
passed to the interface, according to which trajectory type was passed to the
constructor.
Again, note that this adaptor will not recognize any simulation data other
that the type TransferMapTrajectory
and
EnvelopeTrajectory
.
NOTE:
- Calculations for the ParticleProbeTrajectory
have been added.
The calculation engine is CalculationsOnParticles
. Note that
only the methods of interface ISimLocResults
will be recognized.
Methods of interface ISimEnvResults
will results in an
exception.
- Since:
- Nov 7, 2013
- Author:
- Christopher K. Allen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface xal.tools.beam.calc.ISimulationResults
ISimulationResults.ISimEnvResults<S>, ISimulationResults.ISimLocResults<S>
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleSimResultsAdaptor
(Trajectory<?> trajectory) Constructor forSimpleSimResultsAdaptor
. -
Method Summary
Methods inherited from class xal.tools.beam.calc.SimResultsAdaptor
computeBetatronPhase, computeChromAberration, computeChromDispersion, computeCoordinatePosition, computeFixedOrbit, computeTwissParameters, registerCalcEngine
-
Constructor Details
-
SimpleSimResultsAdaptor
Constructor forSimpleSimResultsAdaptor
. We create an internal machine calculation engine based upon the type of the given simulation trajectory.- Parameters:
trajectory
- simulation data that is going to be processed- Throws:
IllegalArgumentException
- the simulation data is of an unknown type- Since:
- Nov 7, 2013
-