Class Compare

java.lang.Object
org.projog.core.predicate.AbstractSingleResultPredicate
org.projog.core.predicate.builtin.compare.Compare
All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory

public final class Compare extends AbstractSingleResultPredicate
compare(X,Y,Z) - compares arguments.

Compares the second and third arguments.

  • If second is greater than third then attempts to unify first argument with >
  • If second is less than third then attempts to unify first argument with <
  • If second is equal to third then attempts to unify first argument with =