|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
zeus.rete.ConflictSet
| Field Summary | |
int |
cleanUpInterval
|
protected AgentContext |
context
|
protected OntologyDb |
db
|
protected ReteEngine |
engine
|
(package private) Queue |
queue
|
protected java.util.Hashtable |
readers
|
protected boolean |
running
|
protected java.util.Hashtable |
writers
|
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
(package private) |
ConflictSet(AgentContext context)
|
(package private) |
ConflictSet(ReteEngine engine,
OntologyDb db)
|
| Method Summary | |
void |
assertFact(Fact f1)
|
void |
createReader(java.lang.String logicalName,
java.io.InputStream in)
createReader method is used by the ReteEngine to open a read stream |
void |
createReader(java.lang.String logicalName,
java.lang.String filename)
createReader method is used by the ReteEngine to open a read stream |
void |
createWriter(java.lang.String logicalName,
java.io.OutputStream os)
createWriter method is used by the ReteEngine to open a write stream |
void |
createWriter(java.lang.String logicalName,
java.lang.String filename,
boolean append)
createWriter method is used by the ReteEngine to open a write stream |
protected void |
executeAction(Action a,
Info info)
executeAction is what causes a rule action to be executed when a rule has been matched to. |
private java.lang.String |
getFactList(java.util.Vector input)
|
java.util.Hashtable |
getReaders()
return the tables where the readers are stored for the read and readln actions |
java.util.Hashtable |
getWriters()
return the hashtable where the output writers are stored for the print and println actions |
(package private) OntologyDb |
ontology()
superceeded by getOntologyDb() |
void |
reset()
|
void |
retract(Fact f1)
|
void |
run()
|
private boolean |
sameInput(java.util.Vector store,
java.util.Vector input)
store and input contain an ordered list of (ground) facts The method getIdString() of the Fact class can be used to compare the lists |
void |
setReaders(java.util.Hashtable readers)
set the hashtable of readers for the rete actions - it is unlikely that agent developers will need this method |
void |
setWriters(java.util.Hashtable writers)
set the hashtable of writers for the rete actions - unlikely to be of much use to agent developers |
java.lang.String |
toString()
|
(package private) void |
update(java.lang.String path,
int tag,
java.util.Vector input,
Bindings bindings,
ActionNode node)
|
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected ReteEngine engine
protected AgentContext context
protected OntologyDb db
protected boolean running
protected java.util.Hashtable writers
protected java.util.Hashtable readers
public int cleanUpInterval
Queue queue
| Constructor Detail |
ConflictSet(ReteEngine engine,
OntologyDb db)
ConflictSet(AgentContext context)
| Method Detail |
public java.util.Hashtable getWriters()
public java.util.Hashtable getReaders()
public void setReaders(java.util.Hashtable readers)
public void setWriters(java.util.Hashtable writers)
public void createWriter(java.lang.String logicalName,
java.io.OutputStream os)
public void createWriter(java.lang.String logicalName,
java.lang.String filename,
boolean append)
public void createReader(java.lang.String logicalName,
java.lang.String filename)
public void createReader(java.lang.String logicalName,
java.io.InputStream in)
OntologyDb ontology()
void update(java.lang.String path,
int tag,
java.util.Vector input,
Bindings bindings,
ActionNode node)
public void reset()
public void assertFact(Fact f1)
public void retract(Fact f1)
public void run()
protected void executeAction(Action a,
Info info)
private java.lang.String getFactList(java.util.Vector input)
private boolean sameInput(java.util.Vector store,
java.util.Vector input)
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||