Enum Feature.FeatureType
- java.lang.Object
-
- java.lang.Enum<Feature.FeatureType>
-
- es.bsc.dataclay.util.management.classmgr.features.Feature.FeatureType
-
- All Implemented Interfaces:
Serializable
,Comparable<Feature.FeatureType>
- Enclosing class:
- Feature
public static enum Feature.FeatureType extends Enum<Feature.FeatureType>
Enum that represents the possible types of features considering also their hierarchy.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARCHITECTURE
Architecture (x86, x64).CPU
Number of CPUs.LANGUAGE
Programming language.MEMORY
Memory available.QUALITATIVE
Qualitative features.QUANTITATIVE
Quantitative features.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Feature.FeatureType
getParent()
Get the FeatureType::parentvoid
setParent(Feature.FeatureType theParent)
Set the FeatureType::parentstatic Feature.FeatureType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Feature.FeatureType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QUANTITATIVE
public static final Feature.FeatureType QUANTITATIVE
Quantitative features.
-
CPU
public static final Feature.FeatureType CPU
Number of CPUs.
-
MEMORY
public static final Feature.FeatureType MEMORY
Memory available.
-
QUALITATIVE
public static final Feature.FeatureType QUALITATIVE
Qualitative features.
-
ARCHITECTURE
public static final Feature.FeatureType ARCHITECTURE
Architecture (x86, x64).
-
LANGUAGE
public static final Feature.FeatureType LANGUAGE
Programming language.
-
-
Method Detail
-
values
public static Feature.FeatureType[] 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 (Feature.FeatureType c : Feature.FeatureType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Feature.FeatureType 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
-
getParent
public Feature.FeatureType getParent()
Get the FeatureType::parent- Returns:
- the parent
-
setParent
public void setParent(Feature.FeatureType theParent)
Set the FeatureType::parent- Parameters:
theParent
- the parent to set
-
-