|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaos.jack.jak.util.Watchable
aos.jack.jak.beliefset.BeliefSet
The base class for BeliefSets. It defines the interface all belief sets must implement.
Constructor Summary | |
BeliefSet()
|
Method Summary | |
abstract void |
assertTuple(Tuple t,
BeliefState d)
|
void |
dump(java.io.PrintWriter w)
|
protected static int |
getArrSize(java.lang.Object[] x)
|
aos.jack.jak.event.EventRecipient |
getHandler()
|
abstract Tuple |
getTuple(int tab,
int loc)
|
protected void |
invokeAssertListener(Tuple t,
BeliefState d)
|
protected void |
invokeRetractListener(Tuple t,
BeliefState d)
|
protected static java.lang.Object |
newArr(java.lang.Class cl,
int sz)
|
abstract int |
nFacts()
Return how many facts are stored in the BeliefSet |
abstract int |
nIndexes()
Return the number of indexes that have been built for this belief set. |
void |
postEvent(Event e)
|
int |
read(java.io.InputStream file)
|
abstract int |
read(aos.apib.InStream is)
Read into the BeliefSet a set of tuples from the given Jacob Stream |
int |
read(java.lang.String file)
|
void |
registerOpListener(TupleObserver listener)
|
void |
requireNextOpNotification()
|
protected void |
resetNextOpNotification()
|
abstract void |
retractTuple(Tuple t,
BeliefState d)
|
java.lang.String |
toString()
|
int |
write(java.io.OutputStream st,
boolean binary)
|
abstract int |
write(aos.apib.OutStream s)
Write out BeliefSet to the given Jacob Stream. |
int |
write(java.lang.String file)
|
Methods inherited from class aos.jack.jak.util.Watchable |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BeliefSet()
Method Detail |
public abstract int nIndexes()
public abstract Tuple getTuple(int tab, int loc)
public abstract void assertTuple(Tuple t, BeliefState d)
public abstract void retractTuple(Tuple t, BeliefState d)
public abstract int read(aos.apib.InStream is)
is
- The Jacob Stream to read from.
public abstract int write(aos.apib.OutStream s)
s
- the OutStream to write to.
public abstract int nFacts()
protected static int getArrSize(java.lang.Object[] x)
protected static java.lang.Object newArr(java.lang.Class cl, int sz)
public java.lang.String toString()
public void dump(java.io.PrintWriter w)
public int write(java.lang.String file)
public int write(java.io.OutputStream st, boolean binary)
public int read(java.io.InputStream file)
public int read(java.lang.String file)
public aos.jack.jak.event.EventRecipient getHandler()
public void postEvent(Event e)
public void registerOpListener(TupleObserver listener)
public void requireNextOpNotification()
protected void invokeAssertListener(Tuple t, BeliefState d)
protected void invokeRetractListener(Tuple t, BeliefState d)
protected void resetNextOpNotification()
|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
US Government Restricted Rights
The JACK Modules and relevant Software Material have been developed entirely at private expense and are accordingly provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013 or subparagraph (c)(1) and (2) of the Commercial Computer Software Restricted Rights and 48 CFR 52.2270-19, as applicable.