Enum Class AbstractScenarioTest.Mode
java.lang.Object
java.lang.Enum<AbstractScenarioTest.Mode>
net.ssehub.easy.producer.scenario_tests.AbstractScenarioTest.Mode
- All Implemented Interfaces:
Serializable,Comparable<AbstractScenarioTest.Mode>,Constable
- Enclosing class:
AbstractScenarioTest
Test execution modes.
- Author:
- Holger Eichelberger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMode(boolean doReason, boolean doInstantiate, boolean doMeasure) Creates a mode. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanReturns whether instantiation shall be done.protected booleanReturns whether measurements shall be done and collected.protected booleandoReason()Returns whether reasoning shall be done.protected intrunCount(int runCount) Returns the run count for this mode.static AbstractScenarioTest.ModeReturns the enum constant of this class with the specified name.static AbstractScenarioTest.Mode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOAD
-
REASON
-
REASON_NO_MEASURE
-
INSTANTIATE
-
REASON_INSTANTIATE
-
-
Field Details
-
doReason
private boolean doReason -
doInstantiate
private boolean doInstantiate -
doMeasure
private boolean doMeasure
-
-
Constructor Details
-
Mode
private Mode(boolean doReason, boolean doInstantiate, boolean doMeasure) Creates a mode.- Parameters:
doReason- do reasoningdoInstantiate- do instantiationdoMeasure- do measure
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
doReason
protected boolean doReason()Returns whether reasoning shall be done.- Returns:
truefor reasoning,falseelse
-
doInstantiate
protected boolean doInstantiate()Returns whether instantiation shall be done.- Returns:
truefor instantiation,falseelse
-
doMeasure
protected boolean doMeasure()Returns whether measurements shall be done and collected.- Returns:
truefor measurements,falseelse
-
runCount
protected int runCount(int runCount) Returns the run count for this mode.- Parameters:
runCount- the maximum desired run count if measurement is enabled- Returns:
runCountifdoMeasure, 1 else
-