com.irs.jam
Class WorldModelTable
java.lang.Object
|
+--com.irs.jam.Table
|
+--com.irs.jam.SymbolTable
|
+--com.irs.jam.WorldModelTable
- All Implemented Interfaces:
- java.io.Serializable
- public class WorldModelTable
- extends SymbolTable
- implements java.io.Serializable
A JAM agent's knowledge about the world
- See Also:
- Serialized Form
Method Summary |
boolean |
anyNew()
See if there are ANY new World Model entries |
void |
assert(Relation r,
Binding b)
Add a new World Model entry |
void |
clearNewAll()
Set all World Model entries to be "aged" |
boolean |
isNew(int id)
Check to see if the entry is brand new |
boolean |
match(Relation relation,
Binding binding)
Check to see if any World Model entries match the
specified relation and binding |
void |
print(java.io.PrintStream s)
Output information related to the World Model |
void |
retract(Relation r,
Binding b)
Remove a World Model entry |
void |
setNewAll()
Set all World Model entries to be "new" |
void |
update(Relation oldRel,
Relation newRel,
Binding b)
Change a World Model entry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorldModelTable
public WorldModelTable(Interpreter interpreter)
match
public boolean match(Relation relation,
Binding binding)
- Check to see if any World Model entries match the
specified relation and binding
assert
public void assert(Relation r,
Binding b)
- Add a new World Model entry
retract
public void retract(Relation r,
Binding b)
- Remove a World Model entry
update
public void update(Relation oldRel,
Relation newRel,
Binding b)
- Change a World Model entry
isNew
public boolean isNew(int id)
- Check to see if the entry is brand new
anyNew
public boolean anyNew()
- See if there are ANY new World Model entries
clearNewAll
public void clearNewAll()
- Set all World Model entries to be "aged"
setNewAll
public void setNewAll()
- Set all World Model entries to be "new"
print
public void print(java.io.PrintStream s)
- Output information related to the World Model
- Overrides:
print
in class Table