public final class Output
extends java.lang.Object
Output
class holds information to be printed to the simulation output to inserted
into the generated test program. The important attributes are:
Modifier and Type | Class and Description |
---|---|
static class |
Output.Kind
The
Output.Kind enum describes the type of the output. |
Constructor and Description |
---|
Output(Output.Kind kind,
java.lang.String format)
Constructs an output object with no format arguments.
|
Output(Output.Kind kind,
java.lang.String format,
java.util.List<ru.ispras.microtesk.test.template.Output.Argument> args)
Constructs an output object.
|
Output(Output other)
Constructs a copy of an
Output object. |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Output> |
copyAll(java.util.List<Output> outputs) |
java.lang.String |
evaluate(ModelStateObserver observer)
Evaluates the stored information using the model state observer to read the state of the model
(if required) and returns resulting text.
|
Output.Kind |
getKind()
Returns the output kind.
|
boolean |
isComment() |
boolean |
isRuntime()
Returns
true if the stored information should be evaluated during the simulation
and the evaluation results should be printed to the MicroTESK simulator output or
false if it should be evaluated after simulation and the results should be
inserted into the generated test program. |
java.lang.String |
toString() |
public Output(Output.Kind kind, java.lang.String format, java.util.List<ru.ispras.microtesk.test.template.Output.Argument> args)
kind
- Output type.format
- Format string.args
- Format arguments.public Output(Output.Kind kind, java.lang.String format)
kind
- Output type.format
- Format string.public Output.Kind getKind()
public boolean isRuntime()
true
if the stored information should be evaluated during the simulation
and the evaluation results should be printed to the MicroTESK simulator output or
false
if it should be evaluated after simulation and the results should be
inserted into the generated test program.true
if it is to printed at runtime or false
if it should be
printed into the test program.public boolean isComment()
public java.lang.String evaluate(ModelStateObserver observer) throws ConfigurationException
observer
- Model state observer.ConfigurationException
- if failed to evaluate the information due to an incorrect
request to the model state observer.java.lang.IllegalArgumentException
- if the parameter equals null
.public java.lang.String toString()
toString
in class java.lang.Object