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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classCut.CutPredicate
-
Constructor Summary
Constructors Constructor Description Cut()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PredicategetPredicate()booleanisAlwaysCutOnBacktrack()Will attempting to re-evaluate this implementation always result in a cut?-
Methods inherited from class org.projog.core.predicate.AbstractPredicateFactory
getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicate, getPredicate, getPredicate, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBase
-
-
-
-
Method Detail
-
getPredicate
protected Predicate getPredicate()
- Overrides:
getPredicatein classAbstractPredicateFactory
-
isAlwaysCutOnBacktrack
public boolean isAlwaysCutOnBacktrack()
Description copied from interface:PredicateFactoryWill attempting to re-evaluate this implementation always result in a cut?- Returns:
trueif a cut will always be encountered when attempting to re-evaluate,falseotherwise
-
-