@SequenceDiagramRelated public interface SequenceDiagramExecutor extends CastedModelExecutor<SequenceDiagramExecutor>
This class executes the model, and watches for the described behavior to happen. If it does happen, then the SequenceDiagram returns with no errors, if it does not, it marks the errors by showing where did the model execution diverge from the expected execution path.
On how to write Sequence Diagrams, see the documentation of the
SequenceDiagram
class.
create()
method.setDiagram(hu.elte.txtuml.api.model.seqdiag.SequenceDiagram)
method. Its
single parameter is a sequence diagram subclass instance.CastedModelExecutor.start()
or ModelExecutor.run()
methods.
Calling ModelExecutor.run()
translates to calling CastedModelExecutor.start(),
CastedModelExecutor.shutdown() and ModelExecutor.awaitTermination() in this order.
The CastedModelExecutor.start()
method is for simply starting the executor and not waiting
for it to finish running.
Note that without calling CastedModelExecutor.shutdown()
, a sequence diagram execution
will never stop.
See the documentation of Model
for an overview on modeling in
JtxtUML.
ModelExecutor.Status
Modifier and Type | Method and Description |
---|---|
static SequenceDiagramExecutor |
create()
Creates a default model executor engine without a name.
|
com.google.common.collect.ImmutableList<SequenceDiagramProblem> |
getErrors() |
SequenceDiagramExecutor |
setDiagram(SequenceDiagram diagram) |
SequenceDiagramExecutor |
setInitialization(java.lang.Runnable initialization)
Not supported; use the
setDiagram(hu.elte.txtuml.api.model.seqdiag.SequenceDiagram) method instead. |
addErrorListener, addTerminationBlocker, addTerminationListener, addTraceListener, addWarningListener, awaitInitialization, awaitInitializationNoCatch, removeErrorListener, removeTerminationBlocker, removeTerminationListener, removeTraceListener, removeWarningListener, self, setCheckLevel, setExecutionTimeMultiplier, setLogLevel, shutdown, shutdownNow, start, start, startNoWait, startNoWait
awaitTermination, awaitTerminationNoCatch, create, getCheckLevel, getExecutionTimeMultiplier, getLogLevel, getName, getScheduler, getSettings, getStatus, run, run, set
current, getFeature, getOrCreateFeature, setFeature
static SequenceDiagramExecutor create()
ModelExecutor
Note: Instantiates the
DefaultModelExecutor
class.
create
in interface ModelExecutor
SequenceDiagramExecutor setDiagram(SequenceDiagram diagram) throws LockedSeqDiagExecutorException
LockedSeqDiagExecutorException
com.google.common.collect.ImmutableList<SequenceDiagramProblem> getErrors()
SequenceDiagramExecutor setInitialization(java.lang.Runnable initialization) throws java.lang.UnsupportedOperationException
setDiagram(hu.elte.txtuml.api.model.seqdiag.SequenceDiagram)
method instead.setInitialization
in interface CastedModelExecutor<SequenceDiagramExecutor>
setInitialization
in interface ModelExecutor
initialization
- the initialization to runjava.lang.UnsupportedOperationException
- always