Package edu.kit.ipd.sdq.eventsim
Enum ModelDiagnostics.DiagnosticsMode
- java.lang.Object
-
- java.lang.Enum<ModelDiagnostics.DiagnosticsMode>
-
- edu.kit.ipd.sdq.eventsim.ModelDiagnostics.DiagnosticsMode
-
- All Implemented Interfaces:
Serializable
,Comparable<ModelDiagnostics.DiagnosticsMode>
- Enclosing class:
- ModelDiagnostics
public static enum ModelDiagnostics.DiagnosticsMode extends Enum<ModelDiagnostics.DiagnosticsMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOG_WARNING_AND_CONTINUE
Log warning message and try continuing the traversal when aITraversalStrategy
detects an error in the model under simulation.THROW_EXCEPTION
Throw aUnexpectedModelStructureException
when aITraversalStrategy
detects an error in the model under simulation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModelDiagnostics.DiagnosticsMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ModelDiagnostics.DiagnosticsMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THROW_EXCEPTION
public static final ModelDiagnostics.DiagnosticsMode THROW_EXCEPTION
Throw aUnexpectedModelStructureException
when aITraversalStrategy
detects an error in the model under simulation.
-
LOG_WARNING_AND_CONTINUE
public static final ModelDiagnostics.DiagnosticsMode LOG_WARNING_AND_CONTINUE
Log warning message and try continuing the traversal when aITraversalStrategy
detects an error in the model under simulation.
-
-
Method Detail
-
values
public static ModelDiagnostics.DiagnosticsMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ModelDiagnostics.DiagnosticsMode c : ModelDiagnostics.DiagnosticsMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ModelDiagnostics.DiagnosticsMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-