jcolibri.test.recommenders.rec8
Class Houses8

java.lang.Object
  extended by jcolibri.test.recommenders.rec8.Houses8
All Implemented Interfaces:
StandardCBRApplication

public class Houses8
extends java.lang.Object
implements StandardCBRApplication

Conversational (type B) flats recommender using both Navigation by Asking and Navigation by Proposing.
This example reproduces the behaviour of the ExpertClerk system. It works as a Navigation by Asking system until the number of cases is small enough and then it changes to Navigation by Proposing.

See:

H. Shimazu. ExpertClerk: A Conversational Case-Based Reasoning Tool for Developing Salesclerk Agents in E-Commerce Webshops. Artif. Intell. Rev., 18(3-4):223-244, 2002.


Summary:

This recommender implements the following template:

Read the documentation of the recommenders extension for details about templates and recommender strategies: jcolibri.extensions.recommendation

Version:
1.0
Author:
Juan A. Recio-Garcia, Developed at University College Cork (Ireland) in collaboration with Derek Bridge.
See Also:
ObtainQueryWithAttributeQuestionMethod, InformationGain, FilterBasedRetrievalMethod, DisplayCasesTableMethod, DisplayCasesIfNumberAndChangeNavigation, BoundedGreedySelection

Constructor Summary
Houses8()
           
 
Method Summary
 void configure()
          Configures the application: case base, connectors, etc.
 void cycle(CBRQuery query)
          Executes a CBR cycle with the given query.
static void main(java.lang.String[] args)
           
 void postCycle()
          Runs the code to shutdown the application.
 CBRCaseBase preCycle()
          Runs the precyle where typically cases are read and organized into a case base.
 void sequence1(CBRQuery query, java.util.Collection<CBRCase> cases, FilterConfig fc)
           
 void sequence2(CBRQuery query, java.util.Collection<CBRCase> workingCases)
           
 void sequence3(CBRQuery query, java.util.Collection<CBRCase> workingCases, CriticalUserChoice choice)
           
 void sequence4(UserChoice choice, java.util.Collection<CBRCase> workingCases)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Houses8

public Houses8()
Method Detail

configure

public void configure()
               throws ExecutionException
Description copied from interface: StandardCBRApplication
Configures the application: case base, connectors, etc.

Specified by:
configure in interface StandardCBRApplication
Throws:
ExecutionException

cycle

public void cycle(CBRQuery query)
           throws ExecutionException
Description copied from interface: StandardCBRApplication
Executes a CBR cycle with the given query.

Specified by:
cycle in interface StandardCBRApplication
Throws:
ExecutionException

sequence1

public void sequence1(CBRQuery query,
                      java.util.Collection<CBRCase> cases,
                      FilterConfig fc)
               throws ExecutionException
Throws:
ExecutionException

sequence2

public void sequence2(CBRQuery query,
                      java.util.Collection<CBRCase> workingCases)
               throws ExecutionException
Throws:
ExecutionException

sequence3

public void sequence3(CBRQuery query,
                      java.util.Collection<CBRCase> workingCases,
                      CriticalUserChoice choice)
               throws ExecutionException
Throws:
ExecutionException

sequence4

public void sequence4(UserChoice choice,
                      java.util.Collection<CBRCase> workingCases)
               throws ExecutionException
Throws:
ExecutionException

postCycle

public void postCycle()
               throws ExecutionException
Description copied from interface: StandardCBRApplication
Runs the code to shutdown the application. Typically it closes the connector.

Specified by:
postCycle in interface StandardCBRApplication
Throws:
ExecutionException

preCycle

public CBRCaseBase preCycle()
                     throws ExecutionException
Description copied from interface: StandardCBRApplication
Runs the precyle where typically cases are read and organized into a case base.

Specified by:
preCycle in interface StandardCBRApplication
Returns:
The created case base with the cases in the storage.
Throws:
ExecutionException

main

public static void main(java.lang.String[] args)

GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es