com.sri.oaa2.mapper
Class OAAMapperAgent

java.lang.Object
  |
  +--com.sri.oaa2.mapper.OAAMapperAgent

public class OAAMapperAgent
extends java.lang.Object

OAAMapperAgent is a simple OAA agent that registers with a local facilitator, advertises the solvables listed in a an XML OAAMapper file, and passes solvable requests to a specified OAAMapper. It can be subclassed in order to add additional functionality, or the LibOaa object can be accessed directly.


Constructor Summary
OAAMapperAgent(OAAMapper oaaMapper, java.lang.String agentName)
          Creates a new OAAMapperAgent with the specified OAAMapper and agent name.
 
Method Summary
 void connect()
          Connects to a local facilitator.
 void disconnect()
          Disconnects from the facilitator.
 java.lang.String getAgentName()
           
 LibOaa getOaaFacilitator()
           
 OAAMapper getOaaMapper()
           
 boolean isConnected()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAAMapperAgent

public OAAMapperAgent(OAAMapper oaaMapper,
                      java.lang.String agentName)
Creates a new OAAMapperAgent with the specified OAAMapper and agent name.

Parameters:
oaaMapper -
agentName -
Method Detail

connect

public void connect()
             throws java.io.IOException
Connects to a local facilitator.

Throws:
java.io.IOException

disconnect

public void disconnect()
Disconnects from the facilitator.


isConnected

public boolean isConnected()

getOaaFacilitator

public LibOaa getOaaFacilitator()

getOaaMapper

public OAAMapper getOaaMapper()

getAgentName

public java.lang.String getAgentName()