|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.semanticweb.xsb.XSBCore
org.semanticweb.xsb.XSBCoreWrapper
Wrapper for XSBCore to intercept calls and store the prolog source that go through XSBCore.
| Field Summary |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
XSBCoreWrapper()
Constructor. |
|
| Method Summary | |
static void |
main(java.lang.String[] args)
Main method. |
java.lang.String |
xsb_answer_string(java.lang.String sep)
xsb_answer_string returns an answer substitution as a string, the single answers separated by sep. |
int |
xsb_assert_fact(Literal fact)
Asserts a Java representation of a fact |
int |
xsb_assert_rule(ProgramClause clause)
Asserts a Java representation of a program clause |
int |
xsb_close_query()
xsb_close_query() closes the current query, so that no more answers will be returned, and another query can be opened. |
int |
xsb_close()
xsb_close() is currently just a noop, since it doesn't clean anything up, to allow a re-init. |
int |
xsb_command_string(java.lang.String command)
xsb_command_string(char *goal) passes the command (e.g. |
int |
xsb_command_term(Term t)
xsb_command_term(Term t) passes the command represented as a Java Term to xsb and executes it. |
int |
xsb_query_java(ProgramClause clause)
Poses a query in a Java representation |
int |
xsb_query_string(java.lang.String command)
xsb_query_string(String command) submits a query to xsb. |
int |
xsb_query_term(Term t)
xsb_query_term(Term t) passes the query represented as a Java term to xsb. |
int |
xsb_retract_fact(Literal fact)
Retracts a Java representation of a fact |
int |
xsb_retract_rule(ProgramClause clause)
Retract the Java Representation of a Rule |
| Methods inherited from class org.semanticweb.xsb.XSBCore |
xsb_command, xsb_get_answer_substitution, xsb_init, xsb_next, xsb_query |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public XSBCoreWrapper()
throws java.rmi.RemoteException
| Method Detail |
public int xsb_close()
throws java.rmi.RemoteException
XSBCore
xsb_close in interface XSBCoreIntfxsb_close in class XSBCorejava.rmi.RemoteException
public int xsb_command_string(java.lang.String command)
throws java.rmi.RemoteException
XSBCore
xsb_command_string in interface XSBCoreIntfxsb_command_string in class XSBCorecommand - Description of the Parameter
java.rmi.RemoteException
public int xsb_command_term(Term t)
throws java.rmi.RemoteException
XSBCore
xsb_command_term in interface XSBCoreIntfxsb_command_term in class XSBCoret - Description of the Parameter
java.rmi.RemoteException
public int xsb_query_string(java.lang.String command)
throws java.rmi.RemoteException
XSBCore
xsb_query_string in interface XSBCoreIntfxsb_query_string in class XSBCorecommand - Description of the Parameter
java.rmi.RemoteException
public int xsb_query_term(Term t)
throws java.rmi.RemoteException
XSBCore
xsb_query_term in interface XSBCoreIntfxsb_query_term in class XSBCoret - Description of the Parameter
java.rmi.RemoteException
public int xsb_close_query()
throws java.rmi.RemoteException
XSBCore
xsb_close_query in interface XSBCoreIntfxsb_close_query in class XSBCorejava.rmi.RemoteException
public java.lang.String xsb_answer_string(java.lang.String sep)
throws java.rmi.RemoteException
XSBCore
xsb_answer_string in interface XSBCoreIntfxsb_answer_string in class XSBCoresep - Description of the Parameter
java.rmi.RemoteException
public int xsb_assert_rule(ProgramClause clause)
throws java.rmi.RemoteException
XSBCore
xsb_assert_rule in interface XSBCoreIntfxsb_assert_rule in class XSBCoreclause - Description of the Parameter
java.rmi.RemoteException
public int xsb_retract_rule(ProgramClause clause)
throws java.rmi.RemoteException
XSBCore
xsb_retract_rule in interface XSBCoreIntfxsb_retract_rule in class XSBCoreclause - Description of the Parameter
java.rmi.RemoteException
public int xsb_assert_fact(Literal fact)
throws java.rmi.RemoteException
XSBCore
xsb_assert_fact in interface XSBCoreIntfxsb_assert_fact in class XSBCorefact - Description of the Parameter
java.rmi.RemoteException
public int xsb_retract_fact(Literal fact)
throws java.rmi.RemoteException
XSBCore
xsb_retract_fact in interface XSBCoreIntfxsb_retract_fact in class XSBCorefact - Description of the Parameter
java.rmi.RemoteException
public int xsb_query_java(ProgramClause clause)
throws java.rmi.RemoteException
XSBCore
xsb_query_java in interface XSBCoreIntfxsb_query_java in class XSBCoreclause - Description of the Parameter
java.rmi.RemoteException
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||