|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.extensions.recommendation.conditionals.DisplayCasesIfNumber
public class DisplayCasesIfNumber
Conditional method that returns true if the number of recieved cases
is inside a range.
An optional value sets if a message should be displayed when the
number of cases is not in the range.
Constructor Summary | |
---|---|
DisplayCasesIfNumber()
|
Method Summary | |
---|---|
static boolean |
displayCases(int max,
int min,
java.util.Collection<CBRCase> cases,
boolean showMessage)
Checks if the number of cases is inside a range. |
static boolean |
displayCasesWithMessage(int max,
int min,
java.util.Collection<CBRCase> cases)
Checks if the number of cases is inside a range. |
static boolean |
displayCasesWithoutMessage(int max,
int min,
java.util.Collection<CBRCase> cases)
Checks if the number of cases is inside a range. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DisplayCasesIfNumber()
Method Detail |
---|
public static boolean displayCasesWithMessage(int max, int min, java.util.Collection<CBRCase> cases)
max
- allowed casesmin
- allowed casescases
- received cases
public static boolean displayCasesWithoutMessage(int max, int min, java.util.Collection<CBRCase> cases)
max
- allowed casesmin
- allowed casescases
- received cases
public static boolean displayCases(int max, int min, java.util.Collection<CBRCase> cases, boolean showMessage)
max
- allowed casesmin
- allowed casescases
- received casesshowMessage
- indicates if messages should be shown.
|
GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |