Class AdaptationFactory
- java.lang.Object
-
- de.uni_trier.wi2.procake.adaptation.AdaptationFactory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanbind(AdaptationFactoryObject implementation)stores a new implementation to the factorybooleanbind(Object implementation)Bind an implementation to the factory.static Class<?>getAdaptationAlgorithmClass(String algorithmName)getAdaptationAlgorithmClass.static String[]getAvailableAdaptationAlgorithms()getAvailableAdaptationAlgorithms.static AdaptationFactoryObjectnewAdaptationAlgorithm(String algorithmName)Creates a new adaptation algorithm of the specified name.voidreset()This method has to be implemented by every factory in order to allow a proper restart of ProCAKE.static booleanunbind(AdaptationFactoryObject implementation)Removes an implementation from the factory.booleanunbind(Object implementation)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 Detail
-
bind
public static boolean bind(AdaptationFactoryObject implementation)
stores a new implementation to the factory- Parameters:
implementation- Adaptation Factory- Returns:
- Always 'true'
-
getAvailableAdaptationAlgorithms
public static String[] getAvailableAdaptationAlgorithms()
getAvailableAdaptationAlgorithms.
- Returns:
- Returns a list of the names of all available adaptation algorithms.
-
getAdaptationAlgorithmClass
public static Class<?> getAdaptationAlgorithmClass(String algorithmName)
getAdaptationAlgorithmClass.
- Parameters:
algorithmName- Name of the adaptation algorithm- Returns:
- class of the adaptation algorithm with the given name
-
newAdaptationAlgorithm
public static AdaptationFactoryObject newAdaptationAlgorithm(String algorithmName)
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
public static boolean unbind(AdaptationFactoryObject implementation)
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
public boolean bind(Object implementation)
Bind an implementation to the factory.
-
-