• No results found

Offline Synthesis Engine in Practice: Usage Instructions

N/A
N/A
Protected

Academic year: 2021

Share "Offline Synthesis Engine in Practice: Usage Instructions"

Copied!
21
0
0

Loading.... (view fulltext now)

Full text

(1)

Ing. Ettore Iacomussi - ([email protected]) – 29th May 2012

Offline Synthesis Engine

in Practice:

Usage Instructions

Ing. Mario Caruso

Ing. Claudio Di Ciccio

Ing. Ettore Iacomussi

Prof. Massimo Mecella

D

IPARTIMENTO

I

NGEGNERIA

I

NFORMATICA,

(2)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 2 / 21

Installation of VMware

Instructions for Linux Ubuntu 9.04 or later version

1.

Install required packages build-essential and linux-headers

sudo apt-get install build-essential linux-headers-$(uname -r)

2.

Download the latest VMware player (e.g.

VMware-Player-4.0.3-703057.x86_64.txt

) from

https://my.vmware.com/web/vmware/evalcenter?

p=player

3.

Change the file extension from .txt to .bundle e.g.

VMware-Player-4.0.3-703057.x86_64.bundle

4.

Run the installer

gksudo bash ./Downloads/VMware-Player-4.0.3-703057.x86_64.bundle

(3)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 3 / 21

Installation of VMware

Instructions for Microsoft Windows

1.

Download the latest VMware player (e.g.

VMware Player 4.0.3 for

Windows)

from

https://my.vmware.com/web/vmware/evalcenter?p=player

2.

Run the installer

(4)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 4 / 21

Startup of the Virtual Machine

Startup instructions

1.

Start the the Virtual Machine with OffSEn

2.

The machine is installed with a Linux Ubuntu 12.04 LTS 32bit OS

3.

Use “romance” as password for the login of the RomanCE user and

for the root user

(5)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 5 / 21

OffSEn Server Startup Instructions

1.

Open a terminal from Application->Accessories->Terminal

2.

Startup Apache Tomcat:

– sudo /opt/apache-tomcat-6.0.26/bin/startup.sh

use 'romance' as password for the 'root' user

3.

Startup the OffSEn server:

cd $SM4ALL_HOME

./scripts/offsensvr

4.

Open the browser Application->Internet->Firefox and browse the

page

http://localhost:8080/offsen-web/

(6)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 6 / 21

(7)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 7 / 21

(8)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 8 / 21

(9)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 9 / 21

(10)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 10 / 21

(11)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 11 / 21

WakeUp Lite Example

1.

Definition of the Community of Available Services;

2.

Definition of the Databox;

3.

Definition of the Target;

(12)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 12 / 21

WakeUp Lite Example

Community of Available Services

(13)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 13 / 21

WakeUp Lite Example

SAR and VAR files

Service Instances are defined by

SAR

files;

Service Archives are ZIP compressed packages that contain:

– services.sdd.xml with the definitions of the instances;

– SBL files with the definitions of Service models behaviour;

Variable Instances are defined by

VAR

files;

Variable Archives are ZIP compressed packages that contain:

– variables.vdd.xml with the definitions of the instances;

– VML files with the definitions of Variable models;

(14)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 14 / 21

WakeUp Lite Example

(15)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 15 / 21

WakeUp Lite Example

Target Service WakeUpLite definition

<?xml version="1.0" encoding="UTF­8"?> <service xmlns=" http://www.sm4all­project.eu/composition/sbl"   …   class="target">   <ts>     <state name="start" type="initial">         <transition action="doRingAlarm">       <target state="alarmRung" />         </transition>     </state>     <state name="alarmRung" type="transient">         <transition action="doSwitchOnLight">       <target state="lightSwitchedOn" />         </transition>     </state>     <state name="lightSwitchedOn" type="transient">         <transition action="doBedUp">       <target state="bedRaisedUp" />         </transition>     </state>     <state name="bedRaisedUp" type="final" />   </ts> </service>

(16)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 16 / 21

WakeUp Lite Example

Synthesis

Start the Synthesis from the Target panel;

Notes:

the first composition of the system is charged by parser class loading time;

– The TLV input (SMV language) is stored in

$SM4ALL_HOME/tmp/temporary.smv

– In each SMV file it appears a dummy service named no_op, used to fix

automatically the problem of states without outgoing transitions.

– The TLV output is stored in $SM4ALL_HOME/tmp/temporary.out

OffSEn performs the composition in 782ms;

TLV produces:

– 41 states

(17)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 17 / 21

WakeUp Lite 2 Example

Target Service WakeUpLite2 definition

<?xml version="1.0" encoding="UTF­8"?> <service xmlns=" http://www.sm4all­project.eu/composition/sbl"   …   class="target">   <ts>     <state name="start" type="initial">         <transition action="doSwitchOnLight">       <target state="lightSwitchedOn" />         </transition>     </state>     <state name="lightSwitchedOn" type="transient">         <transition action="doBedUp">       <target state="bedRaisedUp" />         </transition>     </state>     <state name="bedRaisedUp" type="final" />   </ts> </service>

(18)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 18 / 21

WakeUp Lite 2 Example

Synthesis

Start the Synthesis from the Target panel;

OffSEn performs the composition in 541ms;

TLV produces:

– 25 states

– 85 transitions

Notes:

– We removed one transition (

doRingAlarm

);

– OffSEn filters Available Services and does not take the

BedRoomAlarm

service for this run;

(19)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 19 / 21

WakeUp Lite 3 Example

Target Service WakeUpLite3 definition

<?xml version="1.0" encoding="UTF­8"?> <service xmlns=" http://www.sm4all­project.eu/composition/sbl"   …   class="target">   <ts>     <state name="start" type="initial">         <transition action="doSwitchOnLight">       <target state="lightSwitchedOn" />         </transition>     </state>     <state name="lightSwitchedOn" type="transient">         <transition action="doBedUp">       <target state="bedRaisedUp" />         </transition>     </state>     <state name="bedRaisedUp" type="transient">         <transition action="doCallNurse">       <target state="nurse" />         </transition>     </state>     <state name="nurse" type="final" />   </ts> </service>

(20)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 20 / 21

WakeUp Lite 3 Example

Synthesis

Start the Synthesis from the Target panel;

OffSEn does not perform the composition;

The desired Target is

UNREALIZABLE

;

Notes:

– We added the transition

doCallNurse

;

(21)

Ing. Ettore Iacomussi

OffLine Syntehsis Engine in Practice

P. 21 / 21

OffSEn Server Shutdown Instructions

1.

Press Ctrl+C in the terminal window where the OffSEn server is

running;

2.

Shutdown Apache Tomcat

– sudo /opt/apache-tomcat-6.0.26/bin/shutdown.sh

References

Related documents

Adding a VMware Virtual Machine Sensor to PRTG, allows you to monitor CPU and memory usage of virtual machines via SOAP, as well as the network speed of a single virtual machine..

If multiple virtual machines have not reached their allocated disk size, and the capacity of the physical disk has been exceeded, disk errors within the operating system may occur

Provide the new virtual machine with a unique, new &#34;UUID Location&#34; which is also known as a &#34;Location UUID&#34; which is a UUID that &#34;VMware Player&#34; uses to

When you are done using your virtual machine and want to shut down your virtual machine application (VMWare Player for example), you should properly ‘shut down’ the virtual OS.

bovis - bakteerin on todettu aiheuttaneen myös sydänlihas-, läppä- tai sydämen sisäkalvon tulehdusta (katsauksessa Maunsell ym. 2011) sekä sydänpussin tulehdusta

RI.7.4 □ I can figure out the meanings of words and phrases in a piece of informational text by thinking about how they are used.. RI.7.4 □ I can analyze the author’s word choice

Some of these issues are rapid growth of the brain and body during adolescent years, emotional and social influences on adolescent behavior, impact on normal development due

If Rahu or Mercury are in second house, the articles of Moon and Venus will result in inauspicious effect due to native’s foolishness. Native will not have cordial relations