Package org.projog.core.predicate.udp
Class ClauseActionFactory.MutableFact
- java.lang.Object
-
- org.projog.core.predicate.udp.ClauseActionFactory.MutableFact
-
- All Implemented Interfaces:
ClauseAction
- Enclosing class:
- ClauseActionFactory
static final class ClauseActionFactory.MutableFact extends java.lang.Object implements ClauseAction
Clause where at least one consequent arg is mutable and the antecedent is true.e.g. "p(a,_,c)." or "p(X,X)."
-
-
Field Summary
Fields Modifier and Type Field Description private ClauseModelmodel
-
Constructor Summary
Constructors Modifier Constructor Description privateMutableFact(ClauseModel model)
-
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
-
-
Constructor Detail
-
MutableFact
private MutableFact(ClauseModel model)
-
-
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
-
-