com.agentfactory.logic.reasoner
Class QueryEngine.TestQuerySource

java.lang.Object
  extended by com.agentfactory.logic.reasoner.QueryEngine.TestQuerySource
All Implemented Interfaces:
Queryable
Enclosing class:
QueryEngine

public static class QueryEngine.TestQuerySource
extends java.lang.Object
implements Queryable


Constructor Summary
QueryEngine.TestQuerySource()
           
 
Method Summary
 boolean hasType(java.lang.String type)
          Check whether the KS supports the specified type of item
 java.util.List query(FOS goal)
          Query the KS for items that match the specified query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryEngine.TestQuerySource

public QueryEngine.TestQuerySource()
Method Detail

query

public java.util.List query(FOS goal)
Description copied from interface: Queryable
Query the KS for items that match the specified query. This method assumes that the has Type method has been invoked prior to its invocation.

Specified by:
query in interface Queryable
Parameters:
goal - the item being searched for
Returns:
a list of matching items.

hasType

public boolean hasType(java.lang.String type)
Description copied from interface: Queryable
Check whether the KS supports the specified type of item

Specified by:
hasType in interface Queryable
Parameters:
type - the type of KS being searched for
Returns:
true if the KS holds items of that type, false otherwise