cz.cuni.amis.pogamut.episodic.query
Class QueryExecutor
java.lang.Object
cz.cuni.amis.pogamut.episodic.query.QueryExecutor
public class QueryExecutor
- extends Object
- Author:
- Miso
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryExecutor
public QueryExecutor(AgentMemory mem)
executeQuery
public String executeQuery(ComboTexts.ComboType type,
boolean schemaOnly,
String str)
executeRoomSchemaQuery
public ArrayList<String> executeRoomSchemaQuery()
executeForgettingCurveQuery
public Map<Integer,Integer> executeForgettingCurveQuery(Collection<Integer> episodeIDs)
- Returns number of nodes remembered for each episode specified in parameter.
Merges episode copies from all chronobag levels and derives them before
calculating the number of nodes.
- Parameters:
episodeIDs - Set of queried episode IDs
- Returns:
- Returns a map with number of nodes mapped to individual episode IDs
getNumberOfForgottenNodes
public Integer getNumberOfForgottenNodes(Integer id1,
AgentMemory mem2,
Integer id2,
boolean derive1,
boolean derive2)
- Returns number of nodes that exist in one episode but do not exist in another episode.
The two episodes do not have to be in same memory class.
- Parameters:
id1 - ID of episode 1 (in this memory class)mem2 - Memory class containing episode 2id2 - ID of episode 2derive1 - When set to true, episode 1 will be derived from schemaderive2 - When set to true, episode 2 will be derived from schema
- Returns:
- Returns number of nodes that exist in episode2 but do not exist in episode 1
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.