csli.dialog.app.calo.main.oaa
Class CaloY3OaaInterface

java.lang.Object
  extended by csli.dialog.app.calo.main.oaa.CaloY3OaaInterface
All Implemented Interfaces:
Service

public class CaloY3OaaInterface
extends Object
implements Service

This is an OAA interface to our CALO services -- for the purposes of answering PQs in the test.


Nested Class Summary
protected  class CaloY3OaaInterface.MyOAAEventListener
          Implements the required OAA event listener for the DoEvent style callbacks.
 
Constructor Summary
CaloY3OaaInterface(ServiceManager serviceManager)
          Create and start the OAA service.
 
Method Summary
 boolean connectToCommunity()
          Connects this agent to the OAA community.
 JPanel getGui()
          Get a Swing JPanel which provides a GUI to this service.
 String getTitle()
          Get the name of this service as it should appear in the GUI.
 boolean isServiceAlive()
          Is the service happy and alive?
 boolean myCommunityDoEvent(com.sri.oaa2.icl.IclTerm goal, com.sri.oaa2.icl.IclList params, com.sri.oaa2.icl.IclList answers)
          Handles all of the incoming requests for solutions.
protected  void setSolvables(String inSolvables)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaloY3OaaInterface

public CaloY3OaaInterface(ServiceManager serviceManager)
Create and start the OAA service.

Parameters:
serviceManager -
Method Detail

connectToCommunity

public boolean connectToCommunity()
Connects this agent to the OAA community.

Returns:

getGui

public JPanel getGui()
Description copied from interface: Service
Get a Swing JPanel which provides a GUI to this service.

Specified by:
getGui in interface Service

getTitle

public String getTitle()
Description copied from interface: Service
Get the name of this service as it should appear in the GUI.

Specified by:
getTitle in interface Service

isServiceAlive

public boolean isServiceAlive()
Description copied from interface: Service
Is the service happy and alive?

Specified by:
isServiceAlive in interface Service
Returns:

myCommunityDoEvent

public boolean myCommunityDoEvent(com.sri.oaa2.icl.IclTerm goal,
                                  com.sri.oaa2.icl.IclList params,
                                  com.sri.oaa2.icl.IclList answers)
Handles all of the incoming requests for solutions.

Parameters:
goal -
params -
answers -
Returns:

setSolvables

protected void setSolvables(String inSolvables)