Class Cut
java.lang.Object
org.projog.core.predicate.AbstractPredicateFactory
org.projog.core.predicate.builtin.flow.Cut
- All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory
! - the "cut".
The "cut", represented as a !, is a special mechanism which affects how prolog backtracks.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PredicatebooleanWill attempting to re-evaluate this implementation always result in a cut?Methods inherited from class AbstractPredicateFactory
getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicate, getPredicate, getPredicate, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBase
-
Constructor Details
-
Cut
public Cut()
-
-
Method Details
-
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
-