ubc.cs.JLog.Terms
Class jPredefined
java.lang.Object
ubc.cs.JLog.Terms.jPredefined
- Direct Known Subclasses:
- jPredefinedBuiltins, jPredefinedTerms
public abstract class jPredefined
- extends java.lang.Object
Abstract class for creating any non-builtin predefined predicates needed by the
jKnowledgeBase
and registering any operator and predicate entries with
their corresponding registries for use by the parser. The register
method
for subclasses in a JLog library is automatically invoked, as neccessary.
- Author:
- Glendon Holst
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jPredefined
public jPredefined(jPrologServices ps,
java.lang.String lib)
register
public abstract void register()
getLibrary
public java.lang.String getLibrary()
addPredicate
protected void addPredicate(pPredicateEntry pe)
addOperator
protected void addOperator(pOperatorEntry oe)
addRuleDefinitions
protected void addRuleDefinitions(jRuleDefinitions rds)
addRules
protected void addRules(jRule[] r)
consultDatabase
protected void consultDatabase()