Class AdaptationFactory
java.lang.Object
de.uni_trier.wi2.procake.adaptation.AdaptationFactory
- All Implemented Interfaces:
Factory
This factory creates several adaptation instances.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
bind
(AdaptationFactoryObject implementation) stores a new implementation to the factoryboolean
Bind an implementation to the factory.static Class<?>
getAdaptationAlgorithmClass
(String algorithmName) getAdaptationAlgorithmClass.static String[]
getAvailableAdaptationAlgorithms.static AdaptationFactoryObject
newAdaptationAlgorithm
(String algorithmName) Creates a new adaptation algorithm of the specified name.void
reset()
This method has to be implemented by every factory in order to allow a proper restart of ProCAKE.static boolean
unbind
(AdaptationFactoryObject implementation) Removes an implementation from the factory.boolean
Unbinds an implementation from the factory.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.uni_trier.wi2.procake.utils.composition.Factory
addParameter, postInit
-
Method Details
-
bind
stores a new implementation to the factory- Parameters:
implementation
- Adaptation Factory- Returns:
- Always 'true'
-
getAvailableAdaptationAlgorithms
getAvailableAdaptationAlgorithms.
- Returns:
- Returns a list of the names of all available adaptation algorithms.
-
getAdaptationAlgorithmClass
getAdaptationAlgorithmClass.
- Parameters:
algorithmName
- Name of the adaptation algorithm- Returns:
- class of the adaptation algorithm with the given name
-
newAdaptationAlgorithm
Creates a new adaptation algorithm of the specified name.- Parameters:
algorithmName
- The name of the adaptation algorithm.- Returns:
- Returns a new adaptation algorithm for the specifed name
-
unbind
Removes an implementation from the factory.- Parameters:
implementation
- Adaptation factory implementation- Returns:
- The previously bound implementation factory or nothing
-
reset
public void reset()This method has to be implemented by every factory in order to allow a proper restart of ProCAKE. For example, this method might reset the default factory object or other stateful variables. -
bind
Bind an implementation to the factory. -
unbind
Unbinds an implementation from the factory.
-