edu.ntnu.cikmr.arbitration.cbr
Class ArbitrationCBR

java.lang.Object
  extended by edu.ntnu.cikmr.arbitration.cbr.ArbitrationCBR
All Implemented Interfaces:
FrameworkListener, java.util.EventListener

public class ArbitrationCBR
extends java.lang.Object
implements FrameworkListener


Field Summary
 CBRTask atomicReuseTask
           
 CBRTask closeConnectorTask
           
 CBRTask computeSimilarityTask
           
 java.util.ArrayList<CBRTask> cycleTaskList
           
 CBRTask obtainCasesTask
           
 CBRTask obtainQueryTask
           
 java.util.ArrayList<CBRTask> postCycleTaskList
           
 java.util.ArrayList<CBRTask> preCycleTaskList
           
 CBRTask prepareCasesForAdaptionTask
           
 CBRTask selectBestCasesTask
           
 CBRTask selectWorkingCasesTask
           
 CBRTask storeCasesTask
           
 
Constructor Summary
ArbitrationCBR()
           
 
Method Summary
 Conflict[] checkForConflict(Case c)
           
 void close()
           
 CBRContext executeTask(CBRTask task)
           
 CBRContext executeTasks(java.util.List<CBRTask> taskList)
          This method will be invoked to run some tasks of the CBR Application
 void frameworkShutdown()
           
 void frameworkShuttingDown()
           
 void frameworkStarted()
           
 Conflict[] getConflicts()
           
 CBRContext getContext()
          Describes the context (current state) of the CBR Application
 boolean isInitialized()
          Returns wheter or not this arbitration cbr context was able to perform its precycle and therefor was successfully initialized.
 void learnCase(Case c)
           
 void open()
          Init method of the application.
 void reset()
          Resets the CBR application
 void setCBRApplicationConfiguration()
          This method holds the automatic code generated for your application
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

obtainCasesTask

public CBRTask obtainCasesTask

obtainQueryTask

public CBRTask obtainQueryTask

selectWorkingCasesTask

public CBRTask selectWorkingCasesTask

computeSimilarityTask

public CBRTask computeSimilarityTask

selectBestCasesTask

public CBRTask selectBestCasesTask

prepareCasesForAdaptionTask

public CBRTask prepareCasesForAdaptionTask

atomicReuseTask

public CBRTask atomicReuseTask

storeCasesTask

public CBRTask storeCasesTask

closeConnectorTask

public CBRTask closeConnectorTask

preCycleTaskList

public java.util.ArrayList<CBRTask> preCycleTaskList

cycleTaskList

public java.util.ArrayList<CBRTask> cycleTaskList

postCycleTaskList

public java.util.ArrayList<CBRTask> postCycleTaskList
Constructor Detail

ArbitrationCBR

public ArbitrationCBR()
Method Detail

isInitialized

public boolean isInitialized()
Returns wheter or not this arbitration cbr context was able to perform its precycle and therefor was successfully initialized.

Returns:
true if successfull, false if not

open

public void open()
Init method of the application. Will invoke several methods to leave ready the application.


close

public void close()

reset

public void reset()
Resets the CBR application


getContext

public CBRContext getContext()
Describes the context (current state) of the CBR Application


executeTasks

public CBRContext executeTasks(java.util.List<CBRTask> taskList)
                        throws ExecutionException
This method will be invoked to run some tasks of the CBR Application

Returns:
CBRContext, result of the CBR application execution
Throws:
ExecutionException

executeTask

public CBRContext executeTask(CBRTask task)
                       throws ExecutionException
Throws:
ExecutionException

setCBRApplicationConfiguration

public final void setCBRApplicationConfiguration()
This method holds the automatic code generated for your application


frameworkStarted

public void frameworkStarted()
Specified by:
frameworkStarted in interface FrameworkListener

frameworkShuttingDown

public void frameworkShuttingDown()
Specified by:
frameworkShuttingDown in interface FrameworkListener

frameworkShutdown

public void frameworkShutdown()
Specified by:
frameworkShutdown in interface FrameworkListener

checkForConflict

public Conflict[] checkForConflict(Case c)

getConflicts

public Conflict[] getConflicts()

learnCase

public void learnCase(Case c)