
Public Member Functions | |
| abstract Collection < WorkingMemoryEntry > | getByType (String _type, int _count) |
| abstract Collection < WorkingMemoryEntry > | getByType (String _type) |
| abstract boolean | add (String _id, WorkingMemoryEntry _data) |
| abstract boolean | overwrite (String _id, WorkingMemoryEntry _data) |
| abstract WorkingMemoryEntry | remove (String _id) |
| abstract WorkingMemoryEntry | get (String _id) |
| abstract ArrayList< String > | getIDsByType (String _type, int _count) |
| abstract int | size () |
| abstract boolean | contains (String _queryID) |
| abstract boolean | hasContained (String _queryID) |
| abstract int | getOverwriteCount (String _queryID) |
Definition at line 41 of file CASTWorkingMemoryInterface.java.
| abstract boolean cast.core.CASTWorkingMemoryInterface.add | ( | String | _id, | |
| WorkingMemoryEntry | _data | |||
| ) | [pure virtual] |
Adds item to working memory with given id. Does not overwrite data if id already exists.
| _id | The id of the entry. | |
| _type | The ontological type of the entry. | |
| _data | The data itself. |
Implemented in cast.core.CASTWorkingMemory.
| abstract boolean cast.core.CASTWorkingMemoryInterface.contains | ( | String | _queryID | ) | [pure virtual] |
Whether the wm currently contains an entry with the given id.
| _queryID |
Implemented in cast.core.CASTWorkingMemory.
| abstract WorkingMemoryEntry cast.core.CASTWorkingMemoryInterface.get | ( | String | _id | ) | [pure virtual] |
Get the item with the given id.
| _id | The specified item or null if it does not exist. |
Implemented in cast.core.CASTWorkingMemory.
| abstract Collection<WorkingMemoryEntry> cast.core.CASTWorkingMemoryInterface.getByType | ( | String | _type | ) | [pure virtual] |
Get all working memory entries with given type.
| _type | The type to check. |
Implemented in cast.core.CASTWorkingMemory.
| abstract Collection<WorkingMemoryEntry> cast.core.CASTWorkingMemoryInterface.getByType | ( | String | _type, | |
| int | _count | |||
| ) | [pure virtual] |
Get a collection of memory items with the given ontological type.
| _type | The type to check. | |
| _count | The number of entries to return. If 0 all matching entries are returned. |
Implemented in cast.core.CASTWorkingMemory.
| abstract ArrayList<String> cast.core.CASTWorkingMemoryInterface.getIDsByType | ( | String | _type, | |
| int | _count | |||
| ) | [pure virtual] |
Gets the n most recent ids of entries with the given type.
| _type | The type to check. | |
| _count | The number of ids to return. If 0 all matching items are return. |
Implemented in cast.core.CASTWorkingMemory.
| abstract int cast.core.CASTWorkingMemoryInterface.getOverwriteCount | ( | String | _queryID | ) | [pure virtual] |
| abstract boolean cast.core.CASTWorkingMemoryInterface.hasContained | ( | String | _queryID | ) | [pure virtual] |
Whether the wm has ever contained an entry with the given id.
| _queryID |
Implemented in cast.core.CASTWorkingMemory.
| abstract boolean cast.core.CASTWorkingMemoryInterface.overwrite | ( | String | _id, | |
| WorkingMemoryEntry | _data | |||
| ) | [pure virtual] |
Overwrites item with given id. Does not do anything if id does not exist.
| _id | The id of the entry. | |
| _type | The ontological type of the entry. | |
| _data | The data itself. |
Implemented in cast.core.CASTWorkingMemory.
| abstract WorkingMemoryEntry cast.core.CASTWorkingMemoryInterface.remove | ( | String | _id | ) | [pure virtual] |
Removes the item with the given id.
| _id | The id of the entry. |
Implemented in cast.core.CASTWorkingMemory.
| abstract int cast.core.CASTWorkingMemoryInterface.size | ( | ) | [pure virtual] |
Get the current size of the working memory.
Implemented in cast.core.CASTWorkingMemory.
1.5.8