public boolean eval ( String query ) throws BeliefBaseException { boolean result = beliefbase . eval ( getId ( ) , query ) ; lastresult = ( result ) ? beliefbase . query ( getId ( ) , query ) : new HashSet < Belief > ( ) ; return result ; }
Evaluates the given query against this agent s belief base .