public class ZEvesApi extends Object
send(String).| Modifier and Type | Class and Description |
|---|---|
static class |
ZEvesApi.ZEvesTheoremType |
| Constructor and Description |
|---|
ZEvesApi(String zEvesServerAddress,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
back() |
void |
back(int numberOfSteps) |
void |
close() |
void |
connect() |
boolean |
connectRetry(int retries) |
void |
disconnect() |
String |
getCurrentGoalName() |
int |
getGoalProofLength(String goalName) |
ZEvesOutput |
getGoalProofStep(String goalName,
int stepNumber) |
boolean |
getGoalProvedState(String goalName) |
Object |
getHistoryElement(int paragraphNumber) |
int |
getHistoryLength() |
int |
getNameSource(String name)
Queries Z/EVES for the source paragraph (submitted by the user) introducing
the given name.
|
int |
getPort() |
List<String> |
getRulesMatchingExpression(String goalName,
int stepNumber,
String expr) |
List<String> |
getRulesMatchingPredicate(String goalName,
int stepNumber,
String predicate) |
String |
getServerAddress() |
ZEvesTheorem |
getTheorem(String theoremName)
Queries Z/EVES for theorem contents.
|
Map<String,ZEvesApi.ZEvesTheoremType> |
getTheoremNames(int paragraphNumber) |
int |
getTheoremOrigin(String theoremName) |
boolean |
isConnected() |
void |
reset() |
void |
retry() |
ZEvesOutput |
send(String command)
Sends a command to the server, formatted as specified in Z/EVES XML API
requirements.
|
void |
sendAbort()
Sends an abort command to stop executing current command.
|
ZEvesOutput |
sendCommand(String cmdName,
String... args)
Sends the indicated command to the server, passing arguments as command
contents.
|
ZEvesOutput |
sendProofCommand(String command) |
void |
setCurrentGoalName(String goalName) |
boolean |
tryConnecting(int retries) |
void |
undoBackThrough(int paragraphNumber) |
void |
undoBackTo(int paragraphNumber) |
public ZEvesApi(String zEvesServerAddress, int port)
public String getServerAddress()
public int getPort()
public void connect()
throws ConnectException,
IOException
ConnectExceptionIOExceptionpublic void disconnect()
throws IOException
IOExceptionpublic boolean connectRetry(int retries)
throws IOException
IOExceptionpublic boolean tryConnecting(int retries)
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic boolean isConnected()
public ZEvesOutput send(String command) throws ZEvesException
command - formatted Z/EVES XML commandZEvesException - if command produced an error (zerror) or communication failedpublic void sendAbort()
public ZEvesOutput sendCommand(String cmdName, String... args) throws ZEvesException
cmdName - Z/EVES XML command nameargs - arguments to be passed as command contents. They will be
separated by white-space.ZEvesException - if command produced an error (zerror) or communication failedpublic int getHistoryLength()
throws ZEvesException
ZEvesExceptionpublic Object getHistoryElement(int paragraphNumber) throws ZEvesException
ZEvesExceptionpublic Map<String,ZEvesApi.ZEvesTheoremType> getTheoremNames(int paragraphNumber) throws ZEvesException
ZEvesExceptionpublic ZEvesTheorem getTheorem(String theoremName) throws ZEvesException
theoremName - name of theoremZEvesException - if there are communications errors or Z/EVES errorspublic int getNameSource(String name) throws ZEvesException
name - name of Z/EVES constructZEvesException - if there are communications errors or Z/EVES errorspublic int getTheoremOrigin(String theoremName) throws ZEvesException
ZEvesExceptionpublic List<String> getRulesMatchingPredicate(String goalName, int stepNumber, String predicate) throws ZEvesException
ZEvesExceptionpublic List<String> getRulesMatchingExpression(String goalName, int stepNumber, String expr) throws ZEvesException
ZEvesExceptionpublic String getCurrentGoalName() throws ZEvesException
ZEvesExceptionpublic boolean getGoalProvedState(String goalName) throws ZEvesException
ZEvesExceptionpublic int getGoalProofLength(String goalName) throws ZEvesException
ZEvesExceptionpublic ZEvesOutput getGoalProofStep(String goalName, int stepNumber) throws ZEvesException
ZEvesExceptionpublic void reset()
throws ZEvesException
ZEvesExceptionpublic void undoBackTo(int paragraphNumber)
throws ZEvesException
ZEvesExceptionpublic void undoBackThrough(int paragraphNumber)
throws ZEvesException
ZEvesExceptionpublic void setCurrentGoalName(String goalName) throws ZEvesException
ZEvesExceptionpublic ZEvesOutput sendProofCommand(String command) throws ZEvesException
ZEvesExceptionpublic void back()
throws ZEvesException
ZEvesExceptionpublic void back(int numberOfSteps)
throws ZEvesException
ZEvesExceptionpublic void retry()
throws ZEvesException
ZEvesExceptionCopyright © 2003–2016 Community Z Tools Project. All rights reserved.