Class ExtremumList
- java.lang.Object
-
- org.projog.core.predicate.AbstractSingleResultPredicate
-
- org.projog.core.predicate.builtin.list.ExtremumList
-
- All Implemented Interfaces:
KnowledgeBaseConsumer,PredicateFactory
public final class ExtremumList extends AbstractSingleResultPredicate
min_list/max_listmin_list(Min, List)- True if Min is the smallest number in List. Fails if List is empty.max_list(Max, List)- True if Max is the largest number in List. Fails if List is empty.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanfindMinimum
-
Constructor Summary
Constructors Modifier Constructor Description privateExtremumList(boolean findMinimum)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanevaluate(Term input, Term output)static ExtremumListmaxList()static ExtremumListminList()-
Methods inherited from class org.projog.core.predicate.AbstractSingleResultPredicate
evaluate, evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBase
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.projog.core.predicate.PredicateFactory
isAlwaysCutOnBacktrack
-
-
-
-
Method Detail
-
minList
public static ExtremumList minList()
-
maxList
public static ExtremumList maxList()
-
evaluate
protected boolean evaluate(Term input, Term output)
- Overrides:
evaluatein classAbstractSingleResultPredicate
-
-