Package org.projog.core.predicate.udp
Class ClauseActionFactory.MutableRule
- java.lang.Object
-
- org.projog.core.predicate.udp.ClauseActionFactory.MutableRule
-
- All Implemented Interfaces:
ClauseAction
- Enclosing class:
- ClauseActionFactory
static final class ClauseActionFactory.MutableRule extends java.lang.Object implements ClauseAction
Clause where at least one consequent arg is mutable and the antecedent is not true.e.g. "p(a,_,c) :- test." or ""p(X,X) :- test."
-
-
Field Summary
Fields Modifier and Type Field Description private ClauseModelmodelprivate PredicateFactorypf
-
Constructor Summary
Constructors Modifier Constructor Description privateMutableRule(ClauseModel model, PredicateFactory pf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClauseModelgetModel()PredicategetPredicate(Term[] input)booleanisAlwaysCutOnBacktrack()booleanisRetryable()
-
-
-
Field Detail
-
model
private final ClauseModel model
-
pf
private final PredicateFactory pf
-
-
Constructor Detail
-
MutableRule
private MutableRule(ClauseModel model, PredicateFactory pf)
-
-
Method Detail
-
getPredicate
public Predicate getPredicate(Term[] input)
- Specified by:
getPredicatein interfaceClauseAction
-
getModel
public ClauseModel getModel()
- Specified by:
getModelin interfaceClauseAction
-
isRetryable
public boolean isRetryable()
- Specified by:
isRetryablein interfaceClauseAction
-
isAlwaysCutOnBacktrack
public boolean isAlwaysCutOnBacktrack()
- Specified by:
isAlwaysCutOnBacktrackin interfaceClauseAction
-
-