Enum MarkovResourceState
- java.lang.Object
-
- java.lang.Enum<MarkovResourceState>
-
- org.palladiosimulator.solver.reliability.pcm2markov.MarkovResourceState
-
- All Implemented Interfaces:
Serializable
,Comparable<MarkovResourceState>
public enum MarkovResourceState extends Enum<MarkovResourceState>
Indicates the current state of a PCM processing resource.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MarkovResourceState
valueOf(String name)
Returns the enum constant of this type with the specified name.static MarkovResourceState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NA
public static final MarkovResourceState NA
The resource is broken down.
-
OK
public static final MarkovResourceState OK
The resource is fully functional.
-
-
Method Detail
-
values
public static MarkovResourceState[] 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 (MarkovResourceState c : MarkovResourceState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MarkovResourceState 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
-
-