public class SimpleSimResultsAdaptor extends SimResultsAdaptor
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
.
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.
SimResultsAdaptor
,
CalculationsOnRings
,
CalculationsOnBeams
ISimulationResults.ISimEnvResults<S>, ISimulationResults.ISimLocResults<S>
Constructor and Description |
---|
SimpleSimResultsAdaptor(Trajectory<?> trajectory)
Constructor for
SimpleSimResultsAdaptor . |
computeBetatronPhase, computeChromAberration, computeChromDispersion, computeCoordinatePosition, computeFixedOrbit, computeTwissParameters, registerCalcEngine
public SimpleSimResultsAdaptor(Trajectory<?> trajectory) throws java.lang.IllegalArgumentException
SimpleSimResultsAdaptor
. We create an internal
machine calculation engine based upon the type of the given simulation
trajectory.trajectory
- simulation data that is going to be processedjava.lang.IllegalArgumentException
- the simulation data is of an unknown type