Class StrategiesRegistry
java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.prototype.StrategiesRegistry
The StrategiesRegistry class is used to store initialized strategies for lookup during the prototype's execution.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StrategiesRegistry
Gets the instance of the strategies registry.getStrategy
(ResourceTypeEnum resourceType) Gets a registered strategy of the specified type.void
registerStrategy
(ResourceTypeEnum resourceType, IDemandStrategy strategy) Registers a strategy.
-
Method Details
-
getInstance
Gets the instance of the strategies registry.- Returns:
- the instance of the strategies registry
-
registerStrategy
Registers a strategy.- Parameters:
resourceType
- the type of the strategystrategy
- the strategy to register
-
getStrategy
Gets a registered strategy of the specified type.- Parameters:
resourceType
- the type of strategy to retrieve- Returns:
- a registered strategy of the specified type
-