Package org.palladiosimulator.metricspec
Enum Class Scale
- All Implemented Interfaces:
Serializable
,Comparable<Scale>
,Constable
,Enumerator
A representation of the literals of the enumeration 'Scale',
and utility methods for working with them.
Mathematical scales.
- See Also:
- Generated class or method.
- EMF model class or method.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The 'Interval' literal value.static final int
The 'Nominal' literal value.static final int
The 'Ordinal' literal value.static final int
The 'Ratio' literal value.A public read-only list of all the 'Scale' enumerators. -
Method Summary
Modifier and TypeMethodDescriptionstatic Scale
get
(int value) Returns the 'Scale' literal with the specified integer value.static Scale
Returns the 'Scale' literal with the specified literal value.static Scale
Returns the 'Scale' literal with the specified name.getName()
int
getValue()
toString()
Returns the literal value of the enumerator, which is its string representation.static Scale
Returns the enum constant of this class with the specified name.static Scale[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOMINAL
The 'Nominal' literal object. Supports an equality operation on one-to-one object basis. Often used in conjunction with categorized data. Supported mathematical operations: =/≠. Mathematically, it is considered an unordered set. For example, dots with the colors RED, BLUE, and PURPLE can be related to their color but nothing more can be said.- See Also:
- Generated class or method.
- Ordered collection.
-
ORDINAL
The 'Ordinal' literal object. Supports an equality operation as well as a monotonic increasing order. Supported mathematical operations: =/≠ ; </>. Mathematically, it is considered an ordered set.
For example, the rank of a sports team in a 18-members league is on an ordinal scale. However, the teams with the same difference in rank does not mean that the difference of their achievements or performance is/was equal.- See Also:
- Generated class or method.
- Ordered collection.
-
INTERVAL
The 'Interval' literal object. Supports the same as the ordinal scale but the magnitude of the difference between two values is comparable. Values can be negative. Supported mathematical operations: =/≠ ; </> ; +/− . Mathematically, it is considered an affine space or line. For example, the temperature in degress Celcius is an interval measure. If you have two temperatures you can quantify the difference.- See Also:
- Generated class or method.
- Ordered collection.
-
RATIO
The 'Ratio' literal object. Supports the same as an interval scale and additionally has an non-abitrary zero-point. Supported mathematical operations: =/≠ ; </> ; +/− ; ×/÷. Mathematically, it is considered a field. For example, the temperature in degress Fahrenheit is a ratio scale. It's zero point is non arbitrary as the particles which comprise matter at this temperature have zero kinetic energy.- See Also:
- Generated class or method.
- Ordered collection.
-
-
Field Details
-
NOMINAL_VALUE
public static final int NOMINAL_VALUEThe 'Nominal' literal value. Supports an equality operation on one-to-one object basis. Often used in conjunction with categorized data. Supported mathematical operations: =/≠. Mathematically, it is considered an unordered set. For example, dots with the colors RED, BLUE, and PURPLE can be related to their color but nothing more can be said.- See Also:
- Generated class or method.
- EMF model class or method.
- name="Nominal"
- Ordered collection.
-
ORDINAL_VALUE
public static final int ORDINAL_VALUEThe 'Ordinal' literal value. Supports an equality operation as well as a monotonic increasing order. Supported mathematical operations: =/≠ ; </>. Mathematically, it is considered an ordered set.
For example, the rank of a sports team in a 18-members league is on an ordinal scale. However, the teams with the same difference in rank does not mean that the difference of their achievements or performance is/was equal.- See Also:
- Generated class or method.
- EMF model class or method.
- name="Ordinal"
- Ordered collection.
-
INTERVAL_VALUE
public static final int INTERVAL_VALUEThe 'Interval' literal value. Supports the same as the ordinal scale but the magnitude of the difference between two values is comparable. Values can be negative. Supported mathematical operations: =/≠ ; </> ; +/− . Mathematically, it is considered an affine space or line. For example, the temperature in degress Celcius is an interval measure. If you have two temperatures you can quantify the difference.- See Also:
- Generated class or method.
- EMF model class or method.
- name="Interval"
- Ordered collection.
-
RATIO_VALUE
public static final int RATIO_VALUEThe 'Ratio' literal value. Supports the same as an interval scale and additionally has an non-abitrary zero-point. Supported mathematical operations: =/≠ ; </> ; +/− ; ×/÷. Mathematically, it is considered a field. For example, the temperature in degress Fahrenheit is a ratio scale. It's zero point is non arbitrary as the particles which comprise matter at this temperature have zero kinetic energy.- See Also:
- Generated class or method.
- EMF model class or method.
- name="Ratio"
- Ordered collection.
-
VALUES
A public read-only list of all the 'Scale' enumerators.- Generated class or method.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
get
Returns the 'Scale' literal with the specified literal value.- Parameters:
literal
- the literal.- Returns:
- the matching enumerator or
null
. - Generated class or method.
-
getByName
Returns the 'Scale' literal with the specified name.- Parameters:
name
- the name.- Returns:
- the matching enumerator or
null
. - Generated class or method.
-
get
Returns the 'Scale' 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
- Specified by:
getName
in interfaceEnumerator
- Generated class or method.
-
getLiteral
- Specified by:
getLiteral
in interfaceEnumerator
- Generated class or method.
-
toString
Returns the literal value of the enumerator, which is its string representation.
-