gov.sns.xal.model.probe.traj
Class EnsembleTrajectory

java.lang.Object
  |
  +--gov.sns.xal.model.probe.traj.Trajectory
        |
        +--gov.sns.xal.model.probe.traj.BeamTrajectory
              |
              +--gov.sns.xal.model.probe.traj.EnsembleTrajectory
All Implemented Interfaces:
IArchive

public class EnsembleTrajectory
extends BeamTrajectory

Saves the history of an EnsembleProbe.


Field Summary
 
Fields inherited from class gov.sns.xal.model.probe.traj.Trajectory
TRAJ_LABEL
 
Constructor Summary
EnsembleTrajectory()
           
 
Method Summary
protected  ProbeState newProbeState()
          Creates a new ProbeState object with the proper type for the trajectory.
protected  ProbeState newProbeState(IProbe p)
          Creates a new ProbeState object with the proper type for the trajectory.
 boolean validateState(ProbeState state)
          Check whether or not the argument is a valid EnsembleProbeState object.
 
Methods inherited from class gov.sns.xal.model.probe.traj.Trajectory
addPropertiesTo, getDescription, getTimestamp, indicesForElement, initialState, load, numStates, popLastState, readFrom, readPropertiesFrom, save, saveState, setDescription, setTimestamp, stateAtPosition, stateIterator, statesForElement, statesInPositionRange, stateWithIndex, toString, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnsembleTrajectory

public EnsembleTrajectory()
Method Detail

validateState

public boolean validateState(ProbeState state)
Check whether or not the argument is a valid EnsembleProbeState object.

Parameters:
state - ProbeState object to validate
Returns:
true if state is a valid EnvelopeProbeState false otherwise

newProbeState

protected ProbeState newProbeState()
Creates a new ProbeState object with the proper type for the trajectory.

Specified by:
newProbeState in class Trajectory
Returns:
new, empty EnsembleProbeState object

newProbeState

protected ProbeState newProbeState(IProbe p)
Creates a new ProbeState object with the proper type for the trajectory. Initialize new ProbeState to the state of the argument.

Specified by:
newProbeState in class Trajectory
Parameters:
p - probe interface belonging to object with the proper type for this trajectory
Returns:
new ProbeState object initialized to probe
Throws:
java.lang.IllegalArgumentException - probe is not of type EnsembleProbe