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

protected static enum AbstractScenarioTest.Mode extends Enum<AbstractScenarioTest.Mode>
Test execution modes.
Author:
Holger Eichelberger
  • Enum Constant Details

  • 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 reasoning
      doInstantiate - do instantiation
      doMeasure - do measure
  • Method Details

    • values

      public static AbstractScenarioTest.Mode[] 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

      public static AbstractScenarioTest.Mode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • doReason

      protected boolean doReason()
      Returns whether reasoning shall be done.
      Returns:
      true for reasoning, false else
    • doInstantiate

      protected boolean doInstantiate()
      Returns whether instantiation shall be done.
      Returns:
      true for instantiation, false else
    • doMeasure

      protected boolean doMeasure()
      Returns whether measurements shall be done and collected.
      Returns:
      true for measurements, false else
    • 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:
      runCount if doMeasure, 1 else