edu::tum::cs::probcog::Server Class Reference

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

List of all members.

Public Member Functions

Vector< String[]> getDomains (String modelName)
Model getModel (String modelName)
Vector< String[]> getPredicates (String modelName)
Vector< InferenceResultquery (String modelName, Collection< String > queries, Iterable< String > evidence) throws Exception
Vector< InferenceResultquery (String modelName, Collection< String > queries, Collection< String[]> evidence) throws Exception
Vector< InferenceResultquery (String request) throws IOException, ParseException, Exception
 Server (String modelPoolFile) throws IOException, ParseException, Exception

Static Public Member Functions

static void main (String[] args)

Static Protected Member Functions

static String inferenceResults2LispTuples (Vector< InferenceResult > results)
static Vector< String > queriesFromTuples (Collection< String[]> queryTuples)
static Vector< String[]> readListOfLispTuples (String s)

Package Attributes

ModelPool modelPool

Detailed Description

serves a pool of models (base class for specialized server interfaces); uses a dummy command pipe interface

Author:
jain

Definition at line 22 of file Server.java.


Constructor & Destructor Documentation

edu::tum::cs::probcog::Server::Server ( String  modelPoolFile  )  throws IOException, ParseException, Exception [inline]

Definition at line 25 of file Server.java.


Member Function Documentation

Vector<String[]> edu::tum::cs::probcog::Server::getDomains ( String  modelName  )  [inline]

Definition at line 66 of file Server.java.

Model edu::tum::cs::probcog::Server::getModel ( String  modelName  )  [inline]

Definition at line 70 of file Server.java.

Vector<String[]> edu::tum::cs::probcog::Server::getPredicates ( String  modelName  )  [inline]

Definition at line 62 of file Server.java.

static String edu::tum::cs::probcog::Server::inferenceResults2LispTuples ( Vector< InferenceResult results  )  [inline, static, protected]

Definition at line 162 of file Server.java.

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

Reimplemented in edu::tum::cs::probcog::YarpServer.

Definition at line 176 of file Server.java.

static Vector<String> edu::tum::cs::probcog::Server::queriesFromTuples ( Collection< String[]>  queryTuples  )  [inline, static, protected]

translates a list of LISP-style tuples, such as (sitsAtIn ?PERSON ?SEATING-LOCATION M), to regular query strings, such as "sitsAtIn(a1,a2,M)"

Parameters:
queryTuples 
Returns:
collection of query strings

Definition at line 80 of file Server.java.

Vector<InferenceResult> edu::tum::cs::probcog::Server::query ( String  modelName,
Collection< String >  queries,
Iterable< String >  evidence 
) throws Exception [inline]

processes a query by setting the evidence, instantiating the model and running the inference procedure

Parameters:
modelName 
queries 
evidence a list of evidence atoms, e.g. "foo(bar,baz)"; use an atom even if the variable is actually non-boolean, i.e. use "foo(bar,baz)" for "foo(bar)=baz"
Returns:
a vector of inference results with constants already mapped
Exceptions:
Exception 

Definition at line 142 of file Server.java.

Vector<InferenceResult> edu::tum::cs::probcog::Server::query ( String  modelName,
Collection< String >  queries,
Collection< String[]>  evidence 
) throws Exception [inline]

processes a query by setting the evidence, instantiating the model and running the inference procedure

Parameters:
modelName the model to use
queries a collection of queries, i.e. either predicate/function names, partially grounded predicates/terms (variables in lower-case) or fully grounded predicates/terms
evidence a collection of arrays, where each array contains a predicate/function name followed by some arguments, and, in the case of a (non-boolean) function, the value as the last element NOTE: false boolean evidence is currently unsupported
Returns:
a vector of inference results with constants already mapped
Exceptions:
Exception 

Definition at line 109 of file Server.java.

Vector<InferenceResult> edu::tum::cs::probcog::Server::query ( String  request  )  throws IOException, ParseException, Exception [inline]
Deprecated:
Parameters:
request 
Returns:
Exceptions:
IOException 
ParseException 
Exception 

Definition at line 46 of file Server.java.

static Vector<String[]> edu::tum::cs::probcog::Server::readListOfLispTuples ( String  s  )  [inline, static, protected]

Definition at line 29 of file Server.java.


Member Data Documentation

Definition at line 23 of file Server.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