public class DiagnosticProbe extends Probe<DiagnosticProbeState>
COMMENT_LABEL, PROBE_LABEL, stateCurrent, TEXT_LABEL, TIME_LABEL, trajHist, TYPE_LABEL
LightSpeed, Permittivity, UnitCharge
Constructor and Description |
---|
DiagnosticProbe()
Default constructor for DiagnosticProbe.
|
DiagnosticProbe(DiagnosticProbe copy) |
Modifier and Type | Method and Description |
---|---|
DiagnosticProbe |
copy()
Creates a deep copy of the probe
|
DiagnosticProbeState |
createEmptyProbeState()
Creates a new, empty
DiagnosticProbeState . |
DiagnosticProbeState |
createProbeState()
Captures the probe's state in a ProbeState of the appropriate species.
|
Trajectory<DiagnosticProbeState> |
createTrajectory()
Creates a trajectory of the proper type for saving the probe's history.
|
int |
getElementsVisited()
Returns the number of elements traversed by probe.
|
void |
incrementElementsVisited()
Increments the number of element traversed by 1.
|
protected DiagnosticProbeState |
readStateFrom(DataAdaptor container)
Read the contents of the supplied
DataAdaptor and return
an instance of the appropriate Trajectory species. |
void |
setElementsVisited(int n)
Set the element count to the given number.
|
applyState, cloneCurrentProbeState, deepCopy, getAlgorithm, getArchive, getBeta, getComment, getCurrentElement, getCurrentHardwareId, getGamma, getKineticEnergy, getMomentum, getPosition, getSpeciesCharge, getSpeciesName, getSpeciesRestEnergy, getTime, getTimestamp, getTrajectory, initialize, initializeFrom, load, newProbeInitializedFrom, performPostProcessing, readFrom, reset, save, setAlgorithm, setComment, setCurrentElement, setCurrentHardwareId, setKineticEnergy, setPosition, setSpeciesCharge, setSpeciesName, setSpeciesRestEnergy, setTime, setTimestamp, setTracking, update
public DiagnosticProbe()
public DiagnosticProbe(DiagnosticProbe copy)
public DiagnosticProbe copy()
Probe
copy
in class Probe<DiagnosticProbeState>
public int getElementsVisited()
public void setElementsVisited(int n)
n
- new value for the element traversed accumulatorpublic void incrementElementsVisited()
public Trajectory<DiagnosticProbeState> createTrajectory()
createTrajectory
in class Probe<DiagnosticProbeState>
Trajectory<DiagnosticProbeState>
for saving the probe's history.public DiagnosticProbeState createProbeState()
Probe
createProbeState
in class Probe<DiagnosticProbeState>
public DiagnosticProbeState createEmptyProbeState()
DiagnosticProbeState
.createEmptyProbeState
in class Probe<DiagnosticProbeState>
DiagnosticProbeState
protected DiagnosticProbeState readStateFrom(DataAdaptor container) throws ParsingException
Probe
DataAdaptor
and return
an instance of the appropriate Trajectory species.readStateFrom
in class Probe<DiagnosticProbeState>
container
- DataAdaptor
to read a Trajectory fromParsingException
- error encountered reading the DataAdaptor