Class Cut

java.lang.Object
org.projog.core.predicate.AbstractPredicateFactory
org.projog.core.predicate.builtin.flow.Cut
All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory

public final class Cut extends AbstractPredicateFactory
! - the "cut".

The "cut", represented as a !, is a special mechanism which affects how prolog backtracks.

  • Constructor Details

    • Cut

      public Cut()
  • Method Details

    • getPredicate

      protected Predicate getPredicate()
      Overrides:
      getPredicate in class AbstractPredicateFactory
    • isAlwaysCutOnBacktrack

      public boolean isAlwaysCutOnBacktrack()
      Description copied from interface: PredicateFactory
      Will attempting to re-evaluate this implementation always result in a cut?
      Returns:
      true if a cut will always be encountered when attempting to re-evaluate, false otherwise