- All Superinterfaces:
dev.civl.gmc.TraceStepIF<State>
TraceStep extends
TraceStepIF for CIVL models. A CIVL trace step is
composed of a sequence of atomic steps executed by a single process.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAtomicStep(AtomicStep step) Adds an atomic step to the trace step.Returns the list of atomic steps of this trace step.intReturns the number of atomic steps contained in this trace step.intReturns the identifier of the process that this trace step belongs to.voidsetFinalState(State finalState) Set final state to the trace step.Methods inherited from interface dev.civl.gmc.TraceStepIF
toString
-
Method Details
-
addAtomicStep
Adds an atomic step to the trace step.- Parameters:
step- The atomic step to be added.
-
getNumAtomicSteps
int getNumAtomicSteps()Returns the number of atomic steps contained in this trace step.- Returns:
- the number of atomic steps contained in this trace step.
-
processIdentifier
int processIdentifier()Returns the identifier of the process that this trace step belongs to.- Returns:
- the identifier of the process that this trace step belongs to.
-
getAtomicSteps
Iterable<AtomicStep> getAtomicSteps()Returns the list of atomic steps of this trace step.- Returns:
- the list of atomic steps of this trace step.
-
setFinalState
Set final state to the trace step.
- Parameters:
finalState- The state to be used as the final state of the trace step.
-
getFinalState
State getFinalState()- Specified by:
getFinalStatein interfacedev.civl.gmc.TraceStepIF<State>
-