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

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

public class EnvelopeTrajectory
extends BeamTrajectory

Stores the trajectory of an EnvelopeProbe.


Field Summary
 
Fields inherited from class gov.sns.xal.model.probe.traj.Trajectory
TRAJ_LABEL
 
Constructor Summary
EnvelopeTrajectory()
           
 
Method Summary
protected  ProbeState newProbeState()
          Creates a new ProbeState object with the proper type for the trajectory.
protected  ProbeState newProbeState(IProbe probe)
          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 EnvelopeProbeState 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

EnvelopeTrajectory

public EnvelopeTrajectory()
Method Detail

validateState

public boolean validateState(ProbeState state)
Check whether or not the argument is a valid EnvelopeProbeState 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 EnvelopeProbeState object

newProbeState

protected ProbeState newProbeState(IProbe probe)
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:
probe - probe interface belonging to object of type EnvelopeProbe
Returns:
new ProbeState object initialized to probe
Throws:
java.lang.IllegalArgumentException - probe is not of type EnvelopeProbe