Install Sireum and IVE by following the instructions: Getting Started.
It's recommended that you set the environment variable SIREUM_HOME
so that it points to the directory where you installed Sireum.
If you want to open/edit the USE Case Maps in OSATE then install OSATE 2.13 as the jUCMNav plugin generates exceptions in 2.14 (though it is still able to layout the maps correctly). The following would install OSATE 2.13 in an Applications subdirectory of your home directory.
#MacOS:
$SIREUM_HOME/bin/sireum hamr phantom --verbose -u -o $HOME/Applications/osate.app --version 2.13.0-vfinal
#Linux:
$SIREUM_HOME/bin/sireum hamr phantom --verbose -u -o $HOME/Applications/osate --version 2.13.0-vfinal
#Windows:
%SIREUM_HOME\bin\sireum.bat hamr phantom --verbose -u -o %HOMEPATH%\Applications\osate --version 2.13.0-vfinal
If you don't want to use jUCMNav then remove the --version
option and the latest version of OSATE will be installed instead.
Launch OSATE and goto Help >> Install New Software ...
Click Add...
and for Name:
type jUCMNav Update Site
and for the Location: type https://raw.githubusercontent.com/JUCMNAV/projetseg/master/seg.jUCMNav.updatesite/
Click Add
. Choose jUCMNav: URN Editor (UCM and DRL) v7.0.0. Continue clicking Next >
until you get to Review Licenses. Click I accept the terms of the license agreements and click Finish
.
On the Do you trust unsigned content of unknown origin screen click the checkbox next to Unsigned and click Trust Selected
.
To regenerate from within OSATE,
-
Select
File >> Import ...
, then chooseExisting Project into Workspace
. -
Point the select
Select root directory:
option at the ./aadl directory and import theisolette
project -
In the Outline view, select this system implementation: thermostat_single_sensor.impl
-
Click the HAMR icon in the menu bar (or choose
OSATE >> Sireum HAMR >> Code Generation
) -
Select the
JVM
platform, point the output directory to ./hamr/slang, set theBase Package Name
to beisolette
and clickRun
.
Or, you can regenerate from the command line by invoking the following script: ./aadl/bin/run-hamr.cmd. Note that the script requires the OSATE_HOME
environment variable be set. For example, on Linux do the following
export OSATE_HOME=$HOME/Applications/osate
./aadl/bin/run-hamr.cmd
Follow the directions contained in ./hamr/slang/bin/project.cmd to either run the demo from the command line or from within IVE.
From the command line:
sireum proyek logika --par --all ./hamr/slang
or, invoke the script ./hamr/slang/bin/run-logika.cmd
./hamr/slang/bin/run-logika.cmd
From within IVE, if the file is in Logika (ie. its first line looks like this) then you can right click the editor and in the context menu choose Logika Check (All in File)
or Logika Check (Line)
.
To open the following use case maps in OSATE, install the jUCMNav plugin and then open aadl/IsoletteOperation.jcum inside OSATE.