public class DiagnosticProbeState extends ProbeState<DiagnosticProbeState>
DiagnosticProbe
at a particular
point in time.STATE_LABEL, TYPE_LABEL
LightSpeed
Constructor and Description |
---|
DiagnosticProbeState()
Creates a new
DiagnosticProbeState . |
DiagnosticProbeState(DiagnosticProbe probe)
Creates a new
DiagnosticProbeState with the
state initialized from the given DiagnosticProbe . |
DiagnosticProbeState(DiagnosticProbeState diagnosticProbeState)
Copy constructor for DiagnosticProbeState.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addPropertiesTo(DataAdaptor container)
Save the state information to a
DataAdaptor interface. |
DiagnosticProbeState |
copy()
Implements the clone operation required by the base class
ProbeState . |
int |
getElementsVisited()
Returns the number of elements traversed by probe at this state.
|
void |
incrementElementsVisited()
Increments the number of element traversed by 1.
|
protected void |
readPropertiesFrom(DataAdaptor container)
Recover the state information from a
DataAdaptor interface. |
void |
setElementsVisited(int n)
Set the element count to the given number.
|
java.lang.String |
toString()
Returns a representation of the internal state as a string.
|
computeBetaFromGamma, computeGammaFromBeta, computeGammaFromW, getBeta, getBetaGamma, getElementId, getGamma, getHardwareNodeId, getKineticEnergy, getMomentum, getPosition, getSpeciesCharge, getSpeciesRestEnergy, getTime, load, save, setElementId, setHardwareNodeId, setKineticEnergy, setPosition, setSpeciesCharge, setSpeciesRestEnergy, setTime
public DiagnosticProbeState()
DiagnosticProbeState
.public DiagnosticProbeState(DiagnosticProbeState diagnosticProbeState)
DisagnosticProbeState
objects with the state attributes
of the given DiagnosticProbeState
.diagnosticProbeState
- initializing statepublic DiagnosticProbeState(DiagnosticProbe probe)
DiagnosticProbeState
with the
state initialized from the given DiagnosticProbe
.public int getElementsVisited()
public void setElementsVisited(int n)
n
- new value for the element traversed accumulatorpublic void incrementElementsVisited()
public DiagnosticProbeState copy()
ProbeState
.copy
in class ProbeState<DiagnosticProbeState>
ProbeState.copy()
protected void addPropertiesTo(DataAdaptor container)
ProbeState
DataAdaptor
interface.addPropertiesTo
in class ProbeState<DiagnosticProbeState>
container
- data sink with DataAdaptor
interfaceProbeState.addPropertiesTo(xal.tools.data.DataAdaptor)
protected void readPropertiesFrom(DataAdaptor container) throws ParsingException
ProbeState
DataAdaptor
interface.readPropertiesFrom
in class ProbeState<DiagnosticProbeState>
container
- data source with DataAdaptor
interfaceParsingException
- data source is malformattedProbeState.readPropertiesFrom(xal.tools.data.DataAdaptor)
public java.lang.String toString()
toString
in class ProbeState<DiagnosticProbeState>
ProbeState
stateProbeState.toString()