Class ClauseActionFactory
java.lang.Object
org.projog.core.predicate.udp.ClauseActionFactory
Constructs new
ClauseAction instances.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classClause where all consequent args are distinctly different variables and antecedent is true.(package private) static final classClause where the consequent args are all immutable and the antecedent is not true.(package private) static final classClause where the consequent args are all immutable and the antecedent is true.(package private) static final classClause where at least one consequent arg is mutable and the antecedent is true.(package private) static final classClause where at least one consequent arg is mutable and the antecedent is not true.(package private) static final classClause where the antecedent is a variable.(package private) static final classClause where the consequent has no args. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ClauseActioncreateClauseAction(KnowledgeBase kb, ClauseModel model) Returns a newClauseActionbased on the specifiedClauseModel.(package private) static booleanisMatch(ClauseAction clause, Term[] queryArgs) Returns true if the arguments unify with the consequent of the clause.
-
Constructor Details
-
ClauseActionFactory
ClauseActionFactory()
-
-
Method Details
-
isMatch
Returns true if the arguments unify with the consequent of the clause.TODO move to another class, e.g. ClauseAction
-
createClauseAction
Returns a newClauseActionbased on the specifiedClauseModel.
-