java.lang.Object
java.lang.Enum<VariableMode>
de.uka.ipd.sdq.simucomframework.variables.stoexvisitor.VariableMode
All Implemented Interfaces:
Serializable, Comparable<VariableMode>, Constable

public enum VariableMode extends Enum<VariableMode>
Modes for evaluating stochastic expressions.
  • Enum Constant Details

    • EXCEPTION_ON_NOT_FOUND

      public static final VariableMode EXCEPTION_ON_NOT_FOUND
      An exception is thrown if the evaluation encounters a variable unknown in the current stackframe
    • RETURN_DEFAULT_ON_NOT_FOUND

      public static final VariableMode RETURN_DEFAULT_ON_NOT_FOUND
      A default value is returned for variables which do not exist in the stackframe. It is 0 for numeric types and "" for enum types. Useful for determining bytesizes of the stack contents in cases where not for all variables characterisations exist
    • RETURN_NULL_ON_NOT_FOUND

      public static final VariableMode RETURN_NULL_ON_NOT_FOUND
      NULL is returned for variables which do not exist in the stackframe. Useful for copying stackframes
  • Method Details

    • values

      public static VariableMode[] 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 VariableMode 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