|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.uppaal.engine.KeyValueProtocol
public class KeyValueProtocol
| Nested Class Summary | |
|---|---|
protected static class |
KeyValueProtocol.Service
|
| Constructor Summary | |
|---|---|
KeyValueProtocol(InputStream in,
OutputStream out)
|
|
| Method Summary | |
|---|---|
void |
close()
Disconnect from the server. |
protected String |
escape(String str)
|
SystemState |
getInitial(UppaalSystem system)
Returns the initial state for the system. |
String |
getOptionsInfo()
Returns information about available options. |
ArrayList<Transition> |
getTransitions(UppaalSystem system,
SystemState state)
Returns the list of outgoing transitions for the state. |
String |
getVersion()
Returns the version string of the server. |
protected String |
localiseString(String str)
|
protected SystemEdge[] |
parseEdges(Properties data,
UppaalSystem system,
String edges)
|
protected SystemLocation[] |
parseLocationVector(String property,
UppaalSystem system)
|
protected SystemState |
parseState(Properties data,
UppaalSystem system,
String locations,
String variables,
String zone)
|
protected int[] |
parseVariableVector(String property,
UppaalSystem system)
|
protected Polyhedron |
parseZone(String property,
UppaalSystem system)
|
char |
query(UppaalSystem system,
String query,
QueryFeedback f)
Verify a query on an instantiated UPPAAL model. |
char |
query(UppaalSystem system,
SystemState state,
String query,
QueryFeedback f)
Verify a query on an instantiated UPPAAL model with custom initial state. |
protected List<String> |
readLines()
|
protected String |
recvBlock(KeyValueProtocol.Service serviceName,
boolean allow_progress)
|
protected List<String> |
recvLines(KeyValueProtocol.Service serviceName,
boolean allow_progress)
|
protected List<Properties> |
recvProperties(KeyValueProtocol.Service serviceName)
|
protected List<Properties> |
recvProperties(KeyValueProtocol.Service serviceName,
boolean allow_progress)
|
protected String |
recvString(KeyValueProtocol.Service serviceName)
|
protected void |
sendMessage(KeyValueProtocol.Service service)
|
protected void |
sendMessage(KeyValueProtocol.Service service,
String data)
|
protected void |
sendMessage(KeyValueProtocol.Service service,
SystemState state)
|
protected void |
sendMessage(KeyValueProtocol.Service service,
SystemState state,
String query)
|
void |
setOptions(String options)
Sets server options used for verification. |
protected void |
setProgress(QueryFeedback f,
Properties data)
|
protected void |
setSystemInfo(QueryFeedback f,
Properties data)
|
UppaalSystem |
upload(Document document)
Upload the document to the server. |
UppaalSystem |
upload(Document document,
ArrayList<Problem> problems)
Upload the document to the server. |
LscProcess |
uploadLsc(Document document,
ArrayList<Problem> problems)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyValueProtocol(InputStream in,
OutputStream out)
| Method Detail |
|---|
public void close()
throws IOException
Protocol
close in interface ProtocolIOException
public SystemState getInitial(UppaalSystem system)
throws EngineException,
IOException
Protocol
getInitial in interface ProtocolEngineException
IOException
protected SystemLocation[] parseLocationVector(String property,
UppaalSystem system)
protected int[] parseVariableVector(String property,
UppaalSystem system)
protected Polyhedron parseZone(String property,
UppaalSystem system)
public String getOptionsInfo()
throws EngineException,
IOException
Protocol
getOptionsInfo in interface ProtocolEngineException
IOException
public ArrayList<Transition> getTransitions(UppaalSystem system,
SystemState state)
throws EngineException,
IOException
Protocol
getTransitions in interface ProtocolEngineException
IOException
protected SystemState parseState(Properties data,
UppaalSystem system,
String locations,
String variables,
String zone)
protected SystemEdge[] parseEdges(Properties data,
UppaalSystem system,
String edges)
public String getVersion()
throws IOException,
EngineException
Protocol
getVersion in interface ProtocolIOException
EngineException
public char query(UppaalSystem system,
String query,
QueryFeedback f)
throws EngineException,
IOException
Protocol
query in interface ProtocolEngineException
IOException
public char query(UppaalSystem system,
SystemState state,
String query,
QueryFeedback f)
throws EngineException,
IOException
Protocol
query in interface ProtocolEngineException
IOException
protected void setProgress(QueryFeedback f,
Properties data)
protected void setSystemInfo(QueryFeedback f,
Properties data)
public void setOptions(String options)
throws EngineException,
IOException
Protocol
setOptions in interface ProtocolEngineException
IOException
public UppaalSystem upload(Document document,
ArrayList<Problem> problems)
throws EngineException,
IOException
Protocol
upload in interface ProtocolEngineException
IOException
public UppaalSystem upload(Document document)
throws EngineException,
IOException
Protocol
upload in interface ProtocolEngineException
IOException
protected void sendMessage(KeyValueProtocol.Service service)
throws IOException
IOException
protected void sendMessage(KeyValueProtocol.Service service,
String data)
throws IOException
IOException
protected void sendMessage(KeyValueProtocol.Service service,
SystemState state)
throws IOException
IOException
protected void sendMessage(KeyValueProtocol.Service service,
SystemState state,
String query)
throws IOException
IOExceptionprotected String localiseString(String str)
protected List<Properties> recvProperties(KeyValueProtocol.Service serviceName)
throws IOException,
EngineException
IOException
EngineException
protected List<Properties> recvProperties(KeyValueProtocol.Service serviceName,
boolean allow_progress)
throws IOException,
EngineException
IOException
EngineException
protected String recvString(KeyValueProtocol.Service serviceName)
throws IOException,
EngineException
IOException
EngineException
protected String recvBlock(KeyValueProtocol.Service serviceName,
boolean allow_progress)
throws IOException,
EngineException
IOException
EngineException
protected List<String> recvLines(KeyValueProtocol.Service serviceName,
boolean allow_progress)
throws IOException,
EngineException
IOException
EngineException
protected List<String> readLines()
throws IOException
IOExceptionprotected String escape(String str)
public LscProcess uploadLsc(Document document,
ArrayList<Problem> problems)
throws EngineException,
IOException
uploadLsc in interface ProtocolEngineException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||