Package | Description |
---|---|
hu.elte.txtuml.api.model.execution | |
hu.elte.txtuml.api.model.execution.impl.base |
Contains base classes for model executor implementations.
|
Modifier and Type | Class and Description |
---|---|
class |
LockedSeqDiagExecutorException
Thrown by certain methods of the
SequenceDiagramExecutor interface
which cannot be called after that specific sequence diagram executor has been
started. |
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. |
S |
CastedModelExecutor.addErrorListener(ErrorListener listener) |
ModelExecutor |
ModelExecutor.addTraceListener(TraceListener listener)
Adds a new
TraceListener to be called when certain (valid) events
happen during the model execution. |
S |
CastedModelExecutor.addTraceListener(TraceListener listener) |
ModelExecutor |
ModelExecutor.addWarningListener(WarningListener listener)
Adds a new
WarningListener to be called when warnings are raised
during the model execution. |
S |
CastedModelExecutor.addWarningListener(WarningListener listener) |
ModelExecutor |
ModelExecutor.removeErrorListener(ErrorListener listener)
Removes the given error listener.
|
S |
CastedModelExecutor.removeErrorListener(ErrorListener listener) |
ModelExecutor |
ModelExecutor.removeTraceListener(TraceListener listener)
Removes the given trace listener.
|
S |
CastedModelExecutor.removeTraceListener(TraceListener listener) |
ModelExecutor |
ModelExecutor.removeWarningListener(WarningListener listener)
Removes the given warning listener.
|
S |
CastedModelExecutor.removeWarningListener(WarningListener listener) |
default void |
ModelExecutor.run()
Starts this model executor, calls its
ModelExecutor.shutdown() method and awaits
its termination. |
default void |
ModelExecutor.run(java.lang.Runnable initialization)
Sets the initialization of this model executor then starts it, calls its
ModelExecutor.shutdown() method and awaits its termination (optional operation). |
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.
|
S |
CastedModelExecutor.setCheckLevel(CheckLevel checkLevel) |
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. |
S |
CastedModelExecutor.setExecutionTimeMultiplier(double newMultiplier) |
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).
|
S |
CastedModelExecutor.setInitialization(java.lang.Runnable initialization) |
ModelExecutor |
ModelExecutor.setLogLevel(LogLevel logLevel)
Sets which level of model execution logs should be shown.
|
S |
CastedModelExecutor.setLogLevel(LogLevel logLevel) |
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. |
default S |
CastedModelExecutor.start() |
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).
|
default S |
CastedModelExecutor.start(java.lang.Runnable initialization) |
ModelExecutor |
ModelExecutor.startNoWait()
Starts a model execution with the previously specified initialization and
sets the status of this executor to
ModelExecutor.Status.ACTIVE . |
S |
CastedModelExecutor.startNoWait() |
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).
|
default S |
CastedModelExecutor.startNoWait(java.lang.Runnable initialization) |
Modifier and Type | Method and Description |
---|---|
S |
AbstractModelExecutor.addErrorListener(ErrorListener listener) |
S |
AbstractModelExecutor.addTraceListener(TraceListener listener) |
S |
AbstractModelExecutor.addWarningListener(WarningListener listener) |
protected void |
AbstractModelExecutor.checkIfLocked()
Checks if
AbstractModelExecutor.status is equal to Status#CREATED and throws
an exception otherwise. |
S |
AbstractModelExecutor.removeErrorListener(ErrorListener listener) |
S |
AbstractModelExecutor.removeTraceListener(TraceListener listener) |
S |
AbstractModelExecutor.removeWarningListener(WarningListener listener) |
ModelExecutor |
AbstractModelExecutor.set(java.util.function.Consumer<Execution.Settings> consumer) |
S |
AbstractModelExecutor.setCheckLevel(CheckLevel checkLevel) |
S |
AbstractModelExecutor.setExecutionTimeMultiplier(double newMultiplier) |
S |
AbstractModelExecutor.setInitialization(java.lang.Runnable initialization) |
S |
AbstractModelExecutor.setLogLevel(LogLevel logLevel) |
S |
AbstractModelExecutor.startNoWait() |