Enum CalculatorFactoryRegistryExtensionPoint
- java.lang.Object
-
- java.lang.Enum<CalculatorFactoryRegistryExtensionPoint>
-
- org.palladiosimulator.probeframework.calculator.CalculatorFactoryRegistryExtensionPoint
-
- All Implemented Interfaces:
Serializable
,Comparable<CalculatorFactoryRegistryExtensionPoint>
public enum CalculatorFactoryRegistryExtensionPoint extends Enum<CalculatorFactoryRegistryExtensionPoint>
This registry allows to provide specialized calculator factories for metrics using the eclipse extension pointorg.palladiosimulator.probeframework.calculator.factories
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance of the calculator factory registry
-
Field Summary
Fields Modifier and Type Field Description static String
EXTENSION_POINT_ID
static String
FACTORY_ATTRIBUTE
static String
METRIC_ATTRIBUTE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,IGenericCalculatorFactory>
getCalculatorFactories()
Gets the calculator factories which are currently registered.static CalculatorFactoryRegistryExtensionPoint
valueOf(String name)
Returns the enum constant of this type with the specified name.static CalculatorFactoryRegistryExtensionPoint[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final CalculatorFactoryRegistryExtensionPoint INSTANCE
The singleton instance of the calculator factory registry
-
-
Field Detail
-
METRIC_ATTRIBUTE
public static final String METRIC_ATTRIBUTE
- See Also:
- Constant Field Values
-
FACTORY_ATTRIBUTE
public static final String FACTORY_ATTRIBUTE
- See Also:
- Constant Field Values
-
EXTENSION_POINT_ID
public static final String EXTENSION_POINT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CalculatorFactoryRegistryExtensionPoint[] 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 (CalculatorFactoryRegistryExtensionPoint c : CalculatorFactoryRegistryExtensionPoint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CalculatorFactoryRegistryExtensionPoint 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
-
getCalculatorFactories
public Map<String,IGenericCalculatorFactory> getCalculatorFactories()
Gets the calculator factories which are currently registered.- Returns:
- a map of metric ids to appropriate calculator factories.
-
-