Package org.projog.core.predicate.udp
Class ClauseActionFactory.ImmutableFact
- java.lang.Object
-
- org.projog.core.predicate.udp.ClauseActionFactory.ImmutableFact
-
- All Implemented Interfaces:
ClauseAction
- Enclosing class:
- ClauseActionFactory
static final class ClauseActionFactory.ImmutableFact extends java.lang.Object implements ClauseAction
Clause where the consequent args are all immutable and the antecedent is true.e.g. "p(a,b,c)."
-
-
Field Summary
Fields Modifier and Type Field Description private ClauseModelmodel
-
Constructor Summary
Constructors Modifier Constructor Description privateImmutableFact(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
-
ImmutableFact
private ImmutableFact(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
-
-