Package org.projog.core.predicate.udp
Class ClauseActionFactory.AlwaysMatchedFact
- java.lang.Object
-
- org.projog.core.predicate.udp.ClauseActionFactory.AlwaysMatchedFact
-
- All Implemented Interfaces:
ClauseAction
- Enclosing class:
- ClauseActionFactory
static final class ClauseActionFactory.AlwaysMatchedFact extends java.lang.Object implements ClauseAction
Clause where all consequent args are distinctly different variables and antecedent is true.e.g. "p." or "p(X,Y,Z)."
-
-
Field Summary
Fields Modifier and Type Field Description private ClauseModelmodel
-
Constructor Summary
Constructors Modifier Constructor Description privateAlwaysMatchedFact(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
-
AlwaysMatchedFact
private AlwaysMatchedFact(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
-
-