With the Sut tool you can easily generate an implementation of an SUT from an EFSM model specified in Uppaal. The sut_run tool also directly runs the generated SUT so that you immediately can communicate with this SUT over tcp/ip network sockets.
When running without arguments the sut_run command will show you its usage message:
> sut_run usage: sut_run [-h] [-v] [--port PORT] modelfile
When running with the -h commandline option it will show you a more detailed help message:
usage: sut_run [-h] [-v] [--port PORT] modelfile positional arguments: modelfile input uppaal model file optional arguments: -h, --help show this help message and exit -v, --verbose turn verbose mode on : displays all input and outputs --port PORT tcp port to listen on for incoming connections (default:7892)
The Tomte tool comes with some predefined models in the tomte-0.3/models/ subdirectory.
If you want to learn your own model, please study the Making SUT? section.
For example let us use the BiometricPassport model as teacher model in our learning experiment and run it on the fly as an SUT using the command:
> sut_run tomte-0.3/models/BiometricPassport/model.xml --port 9999 SUT simulation socketserver -> listening at port : 9999 -> verbose mode : OFF -> the server has a timeout of 30 seconds note: to prevent unnecessary servers to keep on running
Now the SUT is running and waiting for anyone to communicate with it!
Notes:
'java -jar SUT.jar'
.