jcolibri.extensions.recommendation.askingAndProposing
Class DisplayCasesIfNumberAndChangeNavigation

java.lang.Object
  extended by jcolibri.extensions.recommendation.askingAndProposing.DisplayCasesIfNumberAndChangeNavigation

public class DisplayCasesIfNumberAndChangeNavigation
extends java.lang.Object

Method that implements the display condition for the Expert Clerk system.
See recommender 8 for details.
If the number of cases is less than a threshold it returns true and sets the navigation mode to NbP.
If the number of cases is more than a threshold it returns false and sets the navigation mode to NbA.

Version:
1.0
Author:
Juan A. Recio-Garcia, Developed at University College Cork (Ireland) in collaboration with Derek Bridge.
See Also:
Houses8

Nested Class Summary
static class DisplayCasesIfNumberAndChangeNavigation.NavigationMode
          Navigation mode enum.
 
Constructor Summary
DisplayCasesIfNumberAndChangeNavigation()
           
 
Method Summary
static boolean displayCasesIfNumberAndChangeNavigation(int max, java.util.Collection<CBRCase> cases)
          If the number of cases is less than max it returns true and sets the navigation mode to NbP.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayCasesIfNumberAndChangeNavigation

public DisplayCasesIfNumberAndChangeNavigation()
Method Detail

displayCasesIfNumberAndChangeNavigation

public static boolean displayCasesIfNumberAndChangeNavigation(int max,
                                                              java.util.Collection<CBRCase> cases)
If the number of cases is less than max it returns true and sets the navigation mode to NbP.
If the number of cases is more than max it returns false and sets the navigation mode to NbA.

Parameters:
max - is the threshold
cases - is the working cases set

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