Enum DoubleOffsetType
- java.lang.Object
-
- java.lang.Enum<DoubleOffsetType>
-
- org.palladiosimulator.reliability.sensitivity.DoubleOffsetType
-
- All Implemented Interfaces:
Serializable
,Comparable<DoubleOffsetType>
,Enumerator
public enum DoubleOffsetType extends Enum<DoubleOffsetType> implements Enumerator
A representation of the literals of the enumeration ' Double Offset Type', and utility methods for working with them.Specifies the type of offset represented by a double value (val_off) that is connected to an original value (val_orig) to achieve a new result value (val_res):
ADD: val_res = val_orig + val_off
SUBTRACT: val_res = val_orig - val_off
MULTIPLY: val_res = val_orig * val_off
DIVIDE: val_res = val_orig / val_off
- See Also:
SensitivityPackage.getDoubleOffsetType()
- Generated class or method.
- EMF model class or method.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ADD_VALUE
The 'ADD' literal value.static int
DIVIDE_VALUE
The 'DIVIDE' literal value.static int
MULTIPLY_VALUE
The 'MULTIPLY' literal value.static int
SUBTRACT_VALUE
The 'SUBTRACT' literal value.static List<DoubleOffsetType>
VALUES
A public read-only list of all the 'Double Offset Type' enumerators.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DoubleOffsetType
get(int value)
Returns the 'Double Offset Type' literal with the specified integer value.static DoubleOffsetType
get(String literal)
Returns the 'Double Offset Type' literal with the specified literal value.static DoubleOffsetType
getByName(String name)
Returns the 'Double Offset Type' literal with the specified name.String
getLiteral()
String
getName()
int
getValue()
String
toString()
Returns the literal value of the enumerator, which is its string representation.static DoubleOffsetType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DoubleOffsetType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final DoubleOffsetType ADD
The 'ADD' literal object.- See Also:
ADD_VALUE
- Generated class or method.
- Ordered collection.
-
SUBTRACT
public static final DoubleOffsetType SUBTRACT
The 'SUBTRACT' literal object.- See Also:
SUBTRACT_VALUE
- Generated class or method.
- Ordered collection.
-
MULTIPLY
public static final DoubleOffsetType MULTIPLY
The 'MULTIPLY' literal object.- See Also:
MULTIPLY_VALUE
- Generated class or method.
- Ordered collection.
-
DIVIDE
public static final DoubleOffsetType DIVIDE
The 'DIVIDE' literal object.- See Also:
DIVIDE_VALUE
- Generated class or method.
- Ordered collection.
-
-
Field Detail
-
ADD_VALUE
public static final int ADD_VALUE
The 'ADD' literal value.If the meaning of 'ADD' literal object isn't clear, there really should be more of a description here...
- See Also:
ADD
, Constant Field Values- Generated class or method.
- EMF model class or method.
- Ordered collection.
-
SUBTRACT_VALUE
public static final int SUBTRACT_VALUE
The 'SUBTRACT' literal value.If the meaning of 'SUBTRACT' literal object isn't clear, there really should be more of a description here...
- See Also:
SUBTRACT
, Constant Field Values- Generated class or method.
- EMF model class or method.
- Ordered collection.
-
MULTIPLY_VALUE
public static final int MULTIPLY_VALUE
The 'MULTIPLY' literal value.If the meaning of 'MULTIPLY' literal object isn't clear, there really should be more of a description here...
- See Also:
MULTIPLY
, Constant Field Values- Generated class or method.
- EMF model class or method.
- Ordered collection.
-
DIVIDE_VALUE
public static final int DIVIDE_VALUE
The 'DIVIDE' literal value.If the meaning of 'DIVIDE' literal object isn't clear, there really should be more of a description here...
- See Also:
DIVIDE
, Constant Field Values- Generated class or method.
- EMF model class or method.
- Ordered collection.
-
VALUES
public static final List<DoubleOffsetType> VALUES
A public read-only list of all the 'Double Offset Type' enumerators.- Generated class or method.
-
-
Method Detail
-
values
public static DoubleOffsetType[] 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 (DoubleOffsetType c : DoubleOffsetType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DoubleOffsetType 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
-
get
public static DoubleOffsetType get(String literal)
Returns the 'Double Offset Type' literal with the specified literal value.- Parameters:
literal
- the literal.- Returns:
- the matching enumerator or
null
. - Generated class or method.
-
getByName
public static DoubleOffsetType getByName(String name)
Returns the 'Double Offset Type' literal with the specified name.- Parameters:
name
- the name.- Returns:
- the matching enumerator or
null
. - Generated class or method.
-
get
public static DoubleOffsetType get(int value)
Returns the 'Double Offset Type' literal with the specified integer value.- Parameters:
value
- the integer value.- Returns:
- the matching enumerator or
null
. - Generated class or method.
-
getValue
public int getValue()
- Specified by:
getValue
in interfaceEnumerator
- Generated class or method.
-
getName
public String getName()
- Specified by:
getName
in interfaceEnumerator
- Generated class or method.
-
getLiteral
public String getLiteral()
- Specified by:
getLiteral
in interfaceEnumerator
- Generated class or method.
-
toString
public String toString()
Returns the literal value of the enumerator, which is its string representation.- Overrides:
toString
in classEnum<DoubleOffsetType>
- Generated class or method.
-
-