|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.ugos.JIProlog.engine.JIPClausesDatabase
JIPClausesDatabase is the base class for external database of clauses
To implement a custom database of clauses, developers should implement the following methods:
- setAttributes
- addClauseAt
- addClause
- removeClause
- clauses
For more information see the section "How to implement a custom detabase of clauses" in the Reference Manual.
JIPClausesEnumeration| Constructor Summary | |
JIPClausesDatabase()
Constucts a new JIPClausesDatabase |
|
| Method Summary | |
abstract boolean |
addClause(JIPClause clause)
Appends a clause to the database Note that some databases may not allow to append a clause. |
abstract boolean |
addClauseAt(int nPos,
JIPClause clause)
Adds a clause to the database at the position specified Note that some databases may not allow to add a clause at a given position. |
abstract java.util.Enumeration |
clauses()
Returns an enumeration of the clauses contained in this database |
int |
getArity()
Returns the arity of the functor associated to this database |
java.lang.String |
getFunctorName()
Returns the name of the functor associated to this database |
JIPEngine |
getJIPEngine()
Returns the JIPEngine object attached to this database |
abstract boolean |
removeClause(JIPClause clause)
Removes a clause from the database Note that some databases may not allow to remove a clause. |
abstract void |
setAttributes(java.lang.String strAttribs)
Sets the attributes to pass to the database (i.e. login info, filename, etc.) |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JIPClausesDatabase()
| Method Detail |
public final java.lang.String getFunctorName()
public final int getArity()
public final JIPEngine getJIPEngine()
public abstract void setAttributes(java.lang.String strAttribs)
strAttribs - the attributes to pass
public abstract boolean addClauseAt(int nPos,
JIPClause clause)
nPos - Position of the clause to addclause - Clause to add
JIPClausepublic abstract boolean addClause(JIPClause clause)
clause - Clause to add
JIPClausepublic abstract boolean removeClause(JIPClause clause)
clause - Clause to remove
JIPClausepublic abstract java.util.Enumeration clauses()
JIPClause,
JIPClausesEnumeration
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||