Interface AdaptationManager<TCase extends DataObject,TQuery extends DataObject>

All Known Implementing Classes:
AdaptationManagerImpl

public interface AdaptationManager<TCase extends DataObject,TQuery extends DataObject>
Interface of the AdaptationManager
  • Method Details

    • init

      Inits the adaptation algorithms according to the configuration
      Parameters:
      adaptationConfig - Adaptation config
      Returns:
      objectpool that results from the initialization of all defined algorithms
    • init

      WriteableObjectPool init(AdaptationConfiguration adaptationConfig, SimilarityCache simCache)
      Initializes the adaptation algorithms according to the configuration
      Parameters:
      adaptationConfig - Adaptation configuration
      simCache - similarity cache
      Returns:
      objectpool that results from the initialization of all defined algorithms
    • execute

      AdaptationSession<TCase,TQuery> execute(TCase caseObject, TQuery queryObject)

      execute.

      Parameters:
      caseObject - Case object
      queryObject - Query object
      Returns:
      NESTAdaptationSession
    • getCoverageResults

      Set<AdaptationSession<TCase,?>> getCoverageResults(TCase caseObject, String adaptationAlgorithmId) throws Exception

      getCoverageResults.

      Parameters:
      caseObject - Case object
      adaptationAlgorithmId - Adaptation algorithm identifier
      Returns:
      WriteableObjectPool pool with adapted cases
      Throws:
      Exception - java.lang.Exception
    • getAdaptationAlgorithm

      AdaptationAlgorithm getAdaptationAlgorithm(String adaptationAlgorithmId) throws Exception

      getAdaptationAlgorithm.

      Parameters:
      adaptationAlgorithmId - Adaptation algorithm identifier
      Returns:
      AdaptationAlgorithm
      Throws:
      Exception - java.lang.Exception
    • reusedAdaptationKnowledge

      boolean reusedAdaptationKnowledge(String adaptationAlgorithmId) throws Exception

      reusedAdaptationKnowledge.

      Parameters:
      adaptationAlgorithmId - Adaptation algorithm identifier
      Returns:
      boolean whether adaptation knowledge was loaded
      Throws:
      Exception - java.lang.Exception
    • getAdaptationKnowledge

      <TAdaptationKnowledge extends DataObject> WriteableObjectPool<TAdaptationKnowledge> getAdaptationKnowledge(String adaptationAlgorithmId) throws Exception

      getAdaptationKnowledge.

      Type Parameters:
      TAdaptationKnowledge - a TAdaptationKnowledge class
      Parameters:
      adaptationAlgorithmId - Adaptation algorithm identifier
      Returns:
      pool with adaptation knowledge for the given adaptation algorithm
      Throws:
      Exception - java.lang.Exception
    • setAdaptationKnowledge

      void setAdaptationKnowledge(String adaptationAlgorithmId, WriteableObjectPool adaptationKnowledge) throws Exception

      setAdaptationKnowledge.

      Parameters:
      adaptationAlgorithmId - Adaptation algorithm identifier
      adaptationKnowledge - for the given adaptation algorithm
      Throws:
      Exception - java.lang.Exception
    • getSimilarityMeasure

      String getSimilarityMeasure()

      getSimilarityMeasure.

      Returns:
      returns current similarity measure defining the adaptation goal