Class Assert

  • All Implemented Interfaces:
    KnowledgeBaseConsumer, PredicateFactory

    public final class Assert
    extends AbstractSingleResultPredicate
    asserta(X) / assertz(X) - adds a clause to the knowledge base.

    asserta(X) adds the clause X to the front of the knowledge base. assertz(X) adds the clause X to the end of the knowledge base. X must be suitably instantiated that the predicate of the clause can be determined.

    This is not undone as part of backtracking.