Package | Description |
---|---|
hu.elte.txtuml.api.model.execution | |
hu.elte.txtuml.api.model.execution.impl |
Provides the default txtUML model execution engine with its subpackages
containing base classes for different model executor implementations.
|
hu.elte.txtuml.api.model.execution.impl.base |
Contains base classes for model executor implementations.
|
hu.elte.txtuml.api.model.execution.impl.seqdiag |
Sequence diagram execution implementation package.
|
Modifier and Type | Interface and Description |
---|---|
interface |
CastedModelExecutor<S extends CastedModelExecutor<S>>
This interface helps writing specialized
ModelExecutor s which can
still be subtyped. |
interface |
SequenceDiagramExecutor
Class responsible for executing the SequenceDiagram code.
|
Modifier and Type | Method and Description |
---|---|
ModelExecutor |
ModelExecutor.addErrorListener(ErrorListener listener)
Adds a new
ErrorListener to be called when errors are raised
during the model execution. |
ModelExecutor |
ModelExecutor.addTerminationBlocker(java.lang.Object blocker) |
ModelExecutor |
ModelExecutor.addTerminationListener(java.lang.Runnable listener) |
ModelExecutor |
ModelExecutor.addTraceListener(TraceListener listener)
Adds a new
TraceListener to be called when certain (valid) events
happen during the model execution. |
ModelExecutor |
ModelExecutor.addWarningListener(WarningListener listener)
Adds a new
WarningListener to be called when warnings are raised
during the model execution. |
ModelExecutor |
ModelExecutor.awaitInitialization()
Awaits the model execution to finish the specified initialization and
only returns after; if the current thread is interrupted, this method
still keeps waiting.
|
ModelExecutor |
ModelExecutor.awaitInitializationNoCatch()
Awaits the model execution to finish the specified initialization and
only returns after; throws an exception if interrupted.
|
static ModelExecutor |
ModelExecutor.create()
Creates a default model executor engine without a name.
|
static ModelExecutor |
ModelExecutor.create(java.lang.String name)
Creates a default model executor engine with the given name.
|
ModelExecutor |
ModelScheduler.getExecutor() |
ModelExecutor |
ModelExecutor.removeErrorListener(ErrorListener listener)
Removes the given error listener.
|
ModelExecutor |
ModelExecutor.removeTerminationBlocker(java.lang.Object blocker) |
ModelExecutor |
ModelExecutor.removeTerminationListener(java.lang.Runnable listener) |
ModelExecutor |
ModelExecutor.removeTraceListener(TraceListener listener)
Removes the given trace listener.
|
ModelExecutor |
ModelExecutor.removeWarningListener(WarningListener listener)
Removes the given warning listener.
|
ModelExecutor |
ModelExecutor.set(java.util.function.Consumer<Execution.Settings> consumer)
Enables the modification of this model executor's settings.
|
ModelExecutor |
ModelExecutor.setCheckLevel(CheckLevel checkLevel)
Sets which level of dynamic checks should be performed during the model
execution.
|
ModelExecutor |
ModelExecutor.setExecutionTimeMultiplier(double newMultiplier)
The model execution time helps testing txtUML models in the following
way: when any time-related event inside the model is set to take
ms milliseconds, that event will take ms
*
mul milliseconds during model execution, where mul is the
current execution time multiplier. |
ModelExecutor |
ModelExecutor.setInitialization(java.lang.Runnable initialization)
The given initialization will run as part of the model on a model
executor thread as the first step of the model execution (optional
operation).
|
ModelExecutor |
ModelExecutor.setLogLevel(LogLevel logLevel)
Sets which level of model execution logs should be shown.
|
ModelExecutor |
ModelExecutor.shutdown()
Sets the model executor to be shut down after the currently running and
all scheduled actions have been performed, every non-external event
caused by them have been processed and all termination blockers of
this model executor have been removed.
|
ModelExecutor |
ModelExecutor.shutdownNow()
Shuts down the model executor without waiting for any currently running
or scheduled actions to perform (it does not wait for termination
blockers of this model executor to be removed either).
|
ModelExecutor |
ModelExecutor.start()
Starts a model execution with the previously specified initialization,
sets the status of this executor to
ModelExecutor.Status.ACTIVE and awaits its
initialization to complete. |
ModelExecutor |
ModelExecutor.start(java.lang.Runnable initialization)
Sets the initialization of this model executor then starts it and awaits
its initialization to complete (optional operation).
|
ModelExecutor |
ModelExecutor.startNoWait()
Starts a model execution with the previously specified initialization and
sets the status of this executor to
ModelExecutor.Status.ACTIVE . |
ModelExecutor |
ModelExecutor.startNoWait(java.lang.Runnable initialization)
Sets the initialization of this model executor then starts it and awaits
its initialization to complete (optional operation).
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultModelExecutor
The default model executor engine which uses a single FIFO model executor
thread.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractModelExecutor<S extends CastedModelExecutor<S>>
Abstract base class for
ModelExecutor implementations. |
Modifier and Type | Method and Description |
---|---|
ModelExecutor |
AbstractModelExecutor.set(java.util.function.Consumer<Execution.Settings> consumer) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultSeqDiagExecutor
The model executor implementation which executes the sequence diagram.
|