|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.hyspirit.HySpiritAbstractClient
An abtract implementation of the interface for connecting to the HySpirit inference engine for pDatalog built by our group (the version implemented in the Beta object-oriented programming language).
Sub-classes have to set up the reader and the writer.
| Field Summary | |
protected java.io.BufferedReader |
in
Reader from HySpirit, has to be initialised in a sub-class. |
protected java.io.PrintWriter |
out
Writer to HySpirit, has to be initialised in a sub-class. |
| Constructor Summary | |
HySpiritAbstractClient()
|
|
| Method Summary | |
void |
close()
Closes tje client. |
protected java.lang.String |
getLine()
Reads in a line, and returns it. |
java.lang.String |
send(java.lang.String text)
Sends text (facts, rules, queries etc.) to HySpirit, and receives the result. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.io.BufferedReader in
protected java.io.PrintWriter out
| Constructor Detail |
public HySpiritAbstractClient()
| Method Detail |
public java.lang.String send(java.lang.String text)
send in interface HySpirittext - text to be sent to HySpirit
protected java.lang.String getLine()
public void close()
close in interface HySpirit
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||