public class PrologClausesDatabase extends JIPClausesDatabase
Constructor and Description |
---|
PrologClausesDatabase() |
Modifier and Type | Method and Description |
---|---|
boolean |
addClause(JIPClause clause)
Appends a clause to the database
Note that some databases may not allow to append a clause. |
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. |
Enumeration |
clauses()
Returns an enumeration of the clauses contained in this database
|
void |
finalize() |
String |
getFileName() |
boolean |
removeClause(JIPClause clause)
Removes a clause from the database
Note that some databases may not allow to remove a clause.
|
void |
setAttributes(String strAttribs)
Sets the attributes to pass to the database (i.e. login info, filename, etc.)
|
getArity, getFunctorName, getJIPEngine
public String getFileName()
public void setAttributes(String strAttribs)
JIPClausesDatabase
setAttributes
in class JIPClausesDatabase
strAttribs
- the attributes to passpublic boolean addClauseAt(int nPos, JIPClause clause)
JIPClausesDatabase
addClauseAt
in class JIPClausesDatabase
nPos
- Position of the clause to addclause
- Clause to addJIPClause
public boolean addClause(JIPClause clause)
JIPClausesDatabase
addClause
in class JIPClausesDatabase
clause
- Clause to addJIPClause
public boolean removeClause(JIPClause clause)
JIPClausesDatabase
removeClause
in class JIPClausesDatabase
clause
- Clause to removeJIPClause
public Enumeration clauses()
JIPClausesDatabase
clauses
in class JIPClausesDatabase
JIPClause
,
JIPClausesEnumeration