edu::tum::cs::probcog::Server Class Reference
List of all members.
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] |
Member Function Documentation
Vector<String[]> edu::tum::cs::probcog::Server::getDomains |
( |
String |
modelName |
) |
[inline] |
Model edu::tum::cs::probcog::Server::getModel |
( |
String |
modelName |
) |
[inline] |
Vector<String[]> edu::tum::cs::probcog::Server::getPredicates |
( |
String |
modelName |
) |
[inline] |
static String edu::tum::cs::probcog::Server::inferenceResults2LispTuples |
( |
Vector< InferenceResult > |
results |
) |
[inline, static, protected] |
static void edu::tum::cs::probcog::Server::main |
( |
String[] |
args |
) |
[inline, static] |
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:
-
- 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:
-
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:
-
Definition at line 109 of file Server.java.
- Deprecated:
- Parameters:
-
- 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] |
Member Data Documentation
The documentation for this class was generated from the following file: