|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.ugos.JIProlog.client.JIPClient
JIPClient implements the methods to talk with JIProlog server.
For more information see the section "How to call JIProlog Server" in the Reference Manual
JIPSolution| Field Summary | |
static int |
DEFAUL_PORT
|
| Constructor Summary | |
JIPClient(java.net.InetAddress inetAdd)
Creates a new JIProlog client object and connect it to the specified host on the default port number. |
|
JIPClient(java.net.InetAddress inetAdd,
int nPort)
Creates a new JIProlog client object and connect it to the specified host on the given port number. |
|
JIPClient(java.lang.String strHost)
Creates a new JIProlog client object and connect it to the specified host on the default port number. |
|
JIPClient(java.lang.String strHost,
int nPort)
Creates a new JIProlog client object and connect it to the specified host on the given port number. |
|
| Method Summary | |
void |
closeQuery()
Closes the previously opened query. |
void |
leave()
Leaves the connection to JIProlog server. |
JIPSolution |
nextSolution()
Returns next solution related to the previously opened query. |
void |
openQuery(java.lang.String strQuery)
Opens a query with JIProlog server. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DEFAUL_PORT
| Constructor Detail |
public JIPClient(java.lang.String strHost)
throws java.io.IOException
strHost - Host where JIProlog server is running.
java.io.IOException
public JIPClient(java.net.InetAddress inetAdd)
throws java.io.IOException
inetAdd - InetAddress of the host where JIProlog server is running.
java.io.IOException
public JIPClient(java.lang.String strHost,
int nPort)
throws java.io.IOException
strHost - Host where JIProlog server is running.nPort - Port number.
java.io.IOException
public JIPClient(java.net.InetAddress inetAdd,
int nPort)
throws java.io.IOException
inetAdd - InetAddress of the host where JIProlog server is running.nPort - Port number.
java.io.IOException| Method Detail |
public final void openQuery(java.lang.String strQuery)
throws java.io.IOException,
JIPServerException
strQuery - The query.
java.io.IOException
JIPServerExceptionnextSolution(),
closeQuery()
public final JIPSolution nextSolution()
throws java.io.IOException,
JIPServerException
java.io.IOException
JIPServerExceptionJIPSolution,
openQuery(java.lang.String),
closeQuery()
public final void closeQuery()
throws java.io.IOException,
JIPServerException
java.io.IOException
JIPServerExceptionopenQuery(java.lang.String),
nextSolution()
public void leave()
throws java.io.IOException
java.io.IOExceptionopenQuery(java.lang.String),
nextSolution(),
closeQuery()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||