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

java.lang.Object
  |
  +--gov.sns.xal.model.probe.traj.ProbeState
        |
        +--gov.sns.xal.model.probe.traj.DiagnosticProbeState
All Implemented Interfaces:
IArchive

public class DiagnosticProbeState
extends ProbeState

Encapsulates the state of a DiagnosticProbe at a particular point in time.


Field Summary
 
Fields inherited from class gov.sns.xal.model.probe.traj.ProbeState
STATE_LABEL
 
Constructor Summary
DiagnosticProbeState()
           
DiagnosticProbeState(DiagnosticProbe probe)
           
 
Method Summary
protected  void addPropertiesTo(DataAdaptor container)
          Save the state information to a DataAdaptor interface.
 int getElementsVisited()
           
protected  void readPropertiesFrom(DataAdaptor container)
          Recover the state information from a DataAdaptor interface.
 void setElementsVisited(int count)
           
 java.lang.String toString()
          Return a textual representation of the ProbeState internal state.
 
Methods inherited from class gov.sns.xal.model.probe.traj.ProbeState
getElementId, getKineticEnergy, getPosition, getSpeciesCharge, getSpeciesRestEnergy, getTime, load, readFrom, save, setElementId, setKineticEnergy, setPosition, setSpeciesCharge, setSpeciesRestEnergy, setTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiagnosticProbeState

public DiagnosticProbeState()

DiagnosticProbeState

public DiagnosticProbeState(DiagnosticProbe probe)
Method Detail

getElementsVisited

public int getElementsVisited()

setElementsVisited

public void setElementsVisited(int count)

addPropertiesTo

protected void addPropertiesTo(DataAdaptor container)
Description copied from class: ProbeState
Save the state information to a DataAdaptor interface.

Overrides:
addPropertiesTo in class ProbeState
Parameters:
container - data sink with DataAdaptor interface

readPropertiesFrom

protected void readPropertiesFrom(DataAdaptor container)
                           throws ParsingException
Description copied from class: ProbeState
Recover the state information from a DataAdaptor interface.

Overrides:
readPropertiesFrom in class ProbeState
Parameters:
container - data source with DataAdaptor interface
Throws:
ParsingException - data source is malformatted

toString

public java.lang.String toString()
Description copied from class: ProbeState
Return a textual representation of the ProbeState internal state.

Overrides:
toString in class ProbeState
Returns:
string containing current ProbeState state