Class Op

  • All Implemented Interfaces:
    KnowledgeBaseConsumer, PredicateFactory

    public final class Op
    extends AbstractSingleResultPredicate
    op(X,Y,Z)

    Allows functors (names of predicates) to be defined as "operators". The use of operators allows syntax to be easier to write and read. Z is the atom that we want to be an operator, X is the precedence class (an integer), and Y the associativity specifier. e.g. op(1200,xfx,':-')