| Modifier and Type | Class and Description |
|---|---|
protected static class |
KeyValueProtocol.Service |
| Constructor and Description |
|---|
KeyValueProtocol(InputStream in,
OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Disconnect from the server.
|
protected String |
escape(String str) |
ConcreteState |
getConcreteInitial(UppaalSystem system)
Returns the concrete initial state for the system.
|
ConcreteSuccessor |
getConcreteSuccessor(UppaalSystem system,
ConcreteState state,
SystemEdgeSelect[] edges,
BigDecimal currentTime,
BigDecimal delay) |
GanttChart |
getGanttChart(UppaalSystem system,
BigDecimal globalTime) |
SystemState |
getInitial(UppaalSystem system) |
String |
getOptionsInfo()
Returns information about available options.
|
SymbolicState |
getSymbolicInitial(UppaalSystem system)
Returns the symbolic initial state for the system.
|
ArrayList<SymbolicTransition> |
getTransitions(UppaalSystem system,
SymbolicState 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 SystemEdgeSelect[] |
parseEdges(Properties data,
UppaalSystem system,
String edges) |
protected SystemLocation[] |
parseLocationVector(String property,
UppaalSystem system) |
protected SymbolicState |
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.
|
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,
SymbolicState state) |
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) |
public KeyValueProtocol(InputStream in, OutputStream out)
public void close()
throws IOException
Protocolclose in interface ProtocolIOExceptionpublic SystemState getInitial(UppaalSystem system) throws EngineException, IOException
EngineExceptionIOExceptionprotected 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
ProtocolgetOptionsInfo in interface ProtocolEngineExceptionIOExceptionpublic ArrayList<SymbolicTransition> getTransitions(UppaalSystem system, SymbolicState state) throws EngineException, IOException
ProtocolgetTransitions in interface ProtocolEngineExceptionIOExceptionprotected SymbolicState parseState(Properties data, UppaalSystem system, String locations, String variables, String zone)
protected SystemEdgeSelect[] parseEdges(Properties data, UppaalSystem system, String edges)
public String getVersion() throws IOException, EngineException
ProtocolgetVersion in interface ProtocolIOExceptionEngineExceptionpublic char query(UppaalSystem system, String query, QueryFeedback f) throws EngineException, IOException
Protocolquery in interface ProtocolEngineExceptionIOExceptionprotected void setProgress(QueryFeedback f, Properties data)
protected void setSystemInfo(QueryFeedback f, Properties data)
public void setOptions(String options) throws EngineException, IOException
ProtocolsetOptions in interface ProtocolEngineExceptionIOExceptionpublic UppaalSystem upload(Document document, ArrayList<Problem> problems) throws EngineException, IOException
Protocolupload in interface ProtocolEngineExceptionIOExceptionpublic UppaalSystem upload(Document document) throws EngineException, IOException
Protocolupload in interface ProtocolEngineExceptionIOExceptionprotected void sendMessage(KeyValueProtocol.Service service) throws IOException
IOExceptionprotected void sendMessage(KeyValueProtocol.Service service, String data) throws IOException
IOExceptionprotected void sendMessage(KeyValueProtocol.Service service, SymbolicState state) throws IOException
IOExceptionprotected List<Properties> recvProperties(KeyValueProtocol.Service serviceName) throws IOException, EngineException
IOExceptionEngineExceptionprotected List<Properties> recvProperties(KeyValueProtocol.Service serviceName, boolean allow_progress) throws IOException, EngineException
IOExceptionEngineExceptionprotected String recvString(KeyValueProtocol.Service serviceName) throws IOException, EngineException
IOExceptionEngineExceptionprotected String recvBlock(KeyValueProtocol.Service serviceName, boolean allow_progress) throws IOException, EngineException
IOExceptionEngineExceptionprotected List<String> recvLines(KeyValueProtocol.Service serviceName, boolean allow_progress) throws IOException, EngineException
IOExceptionEngineExceptionprotected List<String> readLines() throws IOException
IOExceptionpublic LscProcess uploadLsc(Document document, ArrayList<Problem> problems) throws EngineException, IOException
uploadLsc in interface ProtocolEngineExceptionIOExceptionpublic GanttChart getGanttChart(UppaalSystem system, BigDecimal globalTime) throws EngineException, IOException
getGanttChart in interface ProtocolEngineExceptionIOExceptionpublic ConcreteSuccessor getConcreteSuccessor(UppaalSystem system, ConcreteState state, SystemEdgeSelect[] edges, BigDecimal currentTime, BigDecimal delay) throws EngineException, IOException
getConcreteSuccessor in interface ProtocolEngineExceptionIOExceptionpublic ConcreteState getConcreteInitial(UppaalSystem system) throws EngineException, IOException
ProtocolgetConcreteInitial in interface ProtocolEngineExceptionIOExceptionpublic SymbolicState getSymbolicInitial(UppaalSystem system) throws EngineException, IOException
ProtocolgetSymbolicInitial in interface ProtocolEngineExceptionIOExceptionCopyright © 2012 Uppsala University and Aalborg University. All Rights Reserved.