com.uppaal.engine
Interface Protocol

All Known Implementing Classes:
DotProtocol, KeyValueProtocol

public interface Protocol


Method Summary
 void close()
          Disconnect from the server.
 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.
 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.
 void setOptions(String options)
          Sets server options used for verification.
 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)
           
 

Method Detail

close

void close()
           throws IOException
Disconnect from the server.

Throws:
IOException

getVersion

String getVersion()
                  throws IOException,
                         EngineException
Returns the version string of the server. The stub must be connected.

Throws:
IOException
EngineException

getOptionsInfo

String getOptionsInfo()
                      throws EngineException,
                             IOException
Returns information about available options. The information is returned as an XML document. The stub must be connected.

Throws:
EngineException
IOException

setOptions

void setOptions(String options)
                throws EngineException,
                       IOException
Sets server options used for verification. The stub must be connected. TODO: Document format.

Throws:
EngineException
IOException

getInitial

SystemState getInitial(UppaalSystem system)
                       throws EngineException,
                              IOException
Returns the initial state for the system. The stub must be connected and the system must be the last one uploaded to the server.

Throws:
EngineException
IOException

getTransitions

ArrayList<Transition> getTransitions(UppaalSystem system,
                                     SystemState state)
                                     throws EngineException,
                                            IOException
Returns the list of outgoing transitions for the state. The stub must be connected, the state must belong to the system, and the system must be the last one uploaded to the server.

Throws:
EngineException
IOException

upload

UppaalSystem upload(Document document,
                    ArrayList<Problem> problems)
                    throws EngineException,
                           IOException
Upload the document to the server. If no errors occurred, the instantiated system is returned. Otherwise, null is returned and error reports are stored in the problems vector. Even if no errors occurred, warnings may have been added to the problems vector. The stub must be connected.

Throws:
EngineException
IOException

uploadLsc

LscProcess uploadLsc(Document document,
                     ArrayList<Problem> problems)
                     throws EngineException,
                            IOException
Throws:
EngineException
IOException

upload

UppaalSystem upload(Document document)
                    throws EngineException,
                           IOException
Upload the document to the server. If no errors occurred, the instantiated system is returned. Otherwise, null is returned. The stub must be connected.

Throws:
EngineException
IOException

query

char query(UppaalSystem system,
           String query,
           QueryFeedback f)
           throws EngineException,
                  IOException
Verify a query on an instantiated UPPAAL model. Returns 'T' if property is satisfied, 'F' if it is not satisfied, 'M' if it is maybe satisfied, and 'E' if an error occurred. Progress feedback and traces are provided via the feedback object. The stub must be connected and the system must be the last one uploaded to the server.

Throws:
EngineException
IOException

query

char query(UppaalSystem system,
           SystemState state,
           String query,
           QueryFeedback f)
           throws EngineException,
                  IOException
Verify a query on an instantiated UPPAAL model with custom initial state. Returns 'T' if property is satisfied, 'F' if it is not satisfied, 'M' if it is maybe satisfied, and 'E' if an error occurred. Progress feedback and traces are provided via the feedback object. The stub must be connected and the system must be the last one uploaded to the server.

Throws:
EngineException
IOException


Copyright © 2012 Uppsala University and Aalborg University. All Rights Reserved.