edu::tum::cs::probcog::YarpServer Class Reference

Inheritance diagram for edu::tum::cs::probcog::YarpServer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

YarpRpcReply handleCall (YarpRpcCall call)
void run ()
void test ()
void test (YarpRpcCall cl)
 YarpServer (String modelPoolFile, String portName) throws IOException, ParseException, Exception

Static Public Member Functions

static void main (String[] args)
static Vector< String[]> readListOfLists (Bottle listOfLists)
static void writeListOfLists (Collection< String[]> listOfLists, Bottle target)

Protected Member Functions

void checkNumParams (YarpRpcCall call, int n) throws Exception

Package Attributes

YarpRpcServer port

Detailed Description

Definition at line 14 of file YarpServer.java.


Constructor & Destructor Documentation

edu::tum::cs::probcog::YarpServer::YarpServer ( String  modelPoolFile,
String  portName 
) throws IOException, ParseException, Exception [inline]
Parameters:
modelPoolFile an XML file containing a pool of models to serve
portName name under which to register the service
Exceptions:
IOException 
ParseException 
Exception 

Definition at line 28 of file YarpServer.java.


Member Function Documentation

void edu::tum::cs::probcog::YarpServer::checkNumParams ( YarpRpcCall  call,
int  n 
) throws Exception [inline, protected]

Definition at line 63 of file YarpServer.java.

YarpRpcReply edu::tum::cs::probcog::YarpServer::handleCall ( YarpRpcCall  call  )  [inline]

handles a remote procedure call

Parameters:
call 
Returns:
the reply to send on this server's port
Exceptions:
Exception 

Definition at line 74 of file YarpServer.java.

static void edu::tum::cs::probcog::YarpServer::main ( String[]  args  )  [inline, static]

Reimplemented from edu::tum::cs::probcog::Server.

Definition at line 157 of file YarpServer.java.

static Vector<String[]> edu::tum::cs::probcog::YarpServer::readListOfLists ( Bottle  listOfLists  )  [inline, static]

reads the contents of a bottle that is assumed to contain a list of lists of strings

Parameters:
listOfLists the bottle containing the data
Returns:
a collection of string arrays

Definition at line 38 of file YarpServer.java.

void edu::tum::cs::probcog::YarpServer::run (  )  [inline]

starts the server loop

Definition at line 121 of file YarpServer.java.

void edu::tum::cs::probcog::YarpServer::test (  )  [inline]

performs a test by querying the tableSetting model, printing the results

Definition at line 138 of file YarpServer.java.

void edu::tum::cs::probcog::YarpServer::test ( YarpRpcCall  cl  )  [inline]

Definition at line 130 of file YarpServer.java.

static void edu::tum::cs::probcog::YarpServer::writeListOfLists ( Collection< String[]>  listOfLists,
Bottle  target 
) [inline, static]

writes the contents of a collection of String arrays to the given bottle as a list of lists

Parameters:
listOfLists the data to write
target the bottle to write to

Definition at line 55 of file YarpServer.java.


Member Data Documentation

YarpRpcServer edu::tum::cs::probcog::YarpServer::port [package]

the port through which communication takes place

Definition at line 19 of file YarpServer.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations


srldb
Author(s): Dominik Jain, Stefan Waldherr, Moritz Tenorth
autogenerated on Fri Jan 11 09:58:43 2013