ix.test
Class SimpleIQuery

java.lang.Object
  extended by ix.icore.IXAgent
      extended by ix.iquery.IQuery
          extended by ix.test.SimpleIQuery

public class SimpleIQuery
extends IQuery

An example of a very simple I-Q agent.


Nested Class Summary
(package private) static class SimpleIQuery.ExampleLookupHandler
           
 
Nested classes/interfaces inherited from class ix.iquery.IQuery
IQuery.LookupThread
 
Field Summary
 
Fields inherited from class ix.icore.IXAgent
contactManager, displayName, eventLogger, exitHooks, initialDisplayName, ipcName, ipcStrategyName, iSimTimer, mainAgent, nameListeners, startupDate, startupHooks, symbolName, textFrame
 
Constructor Summary
SimpleIQuery()
           
 
Method Summary
protected  boolean isLookupActivity(Activity activity)
          Determines whether the activity is one that should be handled by a LookupHandler.
static void main(java.lang.String[] argv)
           
protected  LookupHandler makeLookupHandler(IQuery queryAgent, Activity lookupActivity)
          Return a LookupHandler for an activity that was approved by IQuery.isLookupActivity(Activity).
 
Methods inherited from class ix.iquery.IQuery
addTool, do_transcript, exit, handleLookupActivity, handleNewActivity, processCommandLineArguments, setupGUI, startup
 
Methods inherited from class ix.icore.IXAgent
addAgentNameListener, addExitHook, addStartupHook, adjustLookAndFeel, displayMessage, do_mainStartup, ensureTool, fireSymbolNameChanged, getAgent, getAgentDisplayName, getAgentIPCName, getAgentStartupDate, getAgentSymbolName, getContactManager, getEventLogger, getISimTimer, getKnownAgents, handleInput, handleNewChatMessage, handleNewConstraint, handleNewIssue, handleNewReport, handleReceivedReport, installAgentExtensions, installAgentExtensions, isMainAgent, log, mainStartup, notePossibleNewContact, pre_handleInput, preprocessInput, reportInputException, setAgentSymbolName, setEventLogger, setupISimTimer, startServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleIQuery

public SimpleIQuery()
Method Detail

main

public static void main(java.lang.String[] argv)

isLookupActivity

protected boolean isLookupActivity(Activity activity)
Description copied from class: IQuery
Determines whether the activity is one that should be handled by a LookupHandler.

Specified by:
isLookupActivity in class IQuery
See Also:
IQuery.handleNewActivity(Activity)

makeLookupHandler

protected LookupHandler makeLookupHandler(IQuery queryAgent,
                                          Activity lookupActivity)
Description copied from class: IQuery
Return a LookupHandler for an activity that was approved by IQuery.isLookupActivity(Activity).

Specified by:
makeLookupHandler in class IQuery