public class TheoryManager extends Object implements Serializable
Theory
,
Serialized FormConstructor and Description |
---|
TheoryManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
abolish(Struct cl)
removing from dbase the first clause with head unifying with clause
(m if a free substitution index and t is the first free timestamp)
|
void |
assertA(Struct clause,
boolean dyn,
String libName,
boolean backtrackable)
inserting of a clause at the head of the dbase
|
void |
assertZ(Struct clause,
boolean dyn,
String libName,
boolean backtrackable)
inserting of a clause at the end of the dbase
|
void |
clear()
Clears the clause dbase.
|
void |
consult(Theory theory,
boolean dynamicTheory,
String libName)
Consults a theory.
|
List |
find(Term headt)
Returns a family of clauses with functor and arity equals
to the functor and arity of the term passed as a parameter
|
String |
getTheory(boolean onlyDynamic)
Gets current theory
|
ClauseInfo |
retract(Struct cl)
removing from dbase the first clause with head unifying with clause
(m if a free substitution index and t is the first free timestamp)
|
public void assertA(Struct clause, boolean dyn, String libName, boolean backtrackable)
public void assertZ(Struct clause, boolean dyn, String libName, boolean backtrackable)
public ClauseInfo retract(Struct cl)
public boolean abolish(Struct cl)
public List find(Term headt)
public void consult(Theory theory, boolean dynamicTheory, String libName) throws InvalidTheoryException
theory
- theory to adddynamicTheory
- if it is true, then the clauses are marked as dynamiclibName
- if it not null, then the clauses are marked to belong to the specificed libraryInvalidTheoryException
public void clear()
public String getTheory(boolean onlyDynamic)
onlyDynamic
- if true, fetches only dynamic clausesCopyright © 2015. All rights reserved.