public abstract class JIPClausesDatabase extends Object
JIPClausesEnumeration
Constructor and Description |
---|
JIPClausesDatabase()
Constucts a new JIPClausesDatabase
|
Modifier and Type | Method and Description |
---|---|
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 Enumeration<JIPClause> |
clauses()
Returns an enumeration of the clauses contained in this database
|
int |
getArity()
Returns the arity of the functor associated to this database
|
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(String strAttribs)
Sets the attributes to pass to the database (i.e. login info, filename, etc.)
|
public JIPClausesDatabase()
public final String getFunctorName()
public final int getArity()
public final JIPEngine getJIPEngine()
public abstract void setAttributes(String strAttribs)
strAttribs
- the attributes to passpublic abstract boolean addClauseAt(int nPos, JIPClause clause)
nPos
- Position of the clause to addclause
- Clause to addJIPClause
public abstract boolean addClause(JIPClause clause)
clause
- Clause to addJIPClause
public abstract boolean removeClause(JIPClause clause)
clause
- Clause to removeJIPClause
public abstract Enumeration<JIPClause> clauses()
JIPClause
,
JIPClausesEnumeration