gov.sns.xal.model.probe
Class DiagnosticProbe
java.lang.Object
|
+--gov.sns.xal.model.probe.Probe
|
+--gov.sns.xal.model.probe.DiagnosticProbe
- All Implemented Interfaces:
- IArchive, IProbe
- public class DiagnosticProbe
- extends Probe
Simple diagnostic probe for testing the Lattice framework.
|
Constructor Summary |
DiagnosticProbe()
Default constructor for DiagnosticProbe. |
| Methods inherited from class gov.sns.xal.model.probe.Probe |
computeBetaFromGamma, computeGammaFromBeta, computeGammaFromW, deepCopyProbeBase, getAlgorithm, getArchive, getBeta, getBetaGamma, getComment, getCurrentElement, getGamma, getKineticEnergy, getPosition, getSpeciesCharge, getSpeciesRestEnergy, getTime, getTimestamp, getTrajectory, initialize, load, newProbeInitializedFrom, readFrom, reset, save, setAlgorithm, setComment, setCurrentElement, setKineticEnergy, setPosition, setSpeciesCharge, setSpeciesRestEnergy, setTime, setTimestamp, setTracking, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiagnosticProbe
public DiagnosticProbe()
- Default constructor for DiagnosticProbe.
Creates a new (empty) instance of DiagnosticProbe.
getElementsVisited
public int getElementsVisited()
setElementsVisited
public void setElementsVisited(int n)
incrementElementsVisited
public void incrementElementsVisited()
createTrajectory
public Trajectory createTrajectory()
- Description copied from class:
Probe
- Require concrete implementations to override this method to create a
Trajectory object of the appropriate species.
- Specified by:
createTrajectory in class Probe
- Returns:
- a
Trajectory of the appropriate species for this probe type
createProbeState
public ProbeState createProbeState()
- Description copied from class:
Probe
- Captures the probe's state in a ProbeState of the appropriate species.
- Specified by:
createProbeState in class Probe
applyState
public void applyState(ProbeState state)
- Description copied from class:
Probe
- Apply the contents of ProbeState to update my current state. Subclass
implementations should call super.applyState to ensure superclass
state is applied.
- Overrides:
applyState in class Probe
- Parameters:
state - ProbeState object containing new probe state data