## Sirius Viewer

Basic graphical viewers are realized using Sirius.

The following viewers are treated as a POC (Proof of concept) and are not final.
They can be extended and further developed to show additional parts of the model.

### Activate capabilities for project

The following steps will activate the Sirius feature and AMALTHEA viewpoints:

To use Sirius, projects needs to have the Modeling Feature enabled. This can be done by right clicking on the project and select Configure – Convert to Modeling Project. Note that a new file representations.aird is created at top level of the project. This file is containing the user created diagrams.

Activate the AMALTHEA viewpoint by right click on the project and select Viewpoint Selection.

Note: Using one of the available commands to open a view using a right click on an element automatically adds the Modeling Nature and selects the available AMALTHEA viewpoint.

### Available Diagrams

#### Task View

The current version of the Task View shows the Task as a container with the included Runnables.

Open/Create a view for a Task element by right click on it and select Task View.

A new diagram is shown based on the given Task element.

##### Communication Layer

The Communication Layer shows direct dependencies between Runnables. Therefore the following requirement must be fulfilled:

1. Runnable R1 writes Label L1
2. Runnable R2 reads Label L1

Enable it through the Layers option menu.

In this sample some of the available communications are fulfilling this requirement.

##### Label Layer

The Label Layer shows all Read/Write dependencies between Runnables and Labels.

Enable it through the Layers option menu.

After some arrangement it can look like the following:

#### Label View

The Label View shows a Label element including read/write accesses from corresponding Runnables.

Open/Create a view for a Label element by right click on it and select Label View.

A new diagram is shown based on the given Label element.

#### EventChain View

The EventChain view is the first version to show the included Events.
If there is a reference to a RunnableEvent, the corresponding Runnable is also shown.
This behavior can be extended also for Labels and Tasks for example.

Open/Create a view for an EventChain element by right click on it and select Event Chain View.

A new diagram is opening showing the order of the included Events.
If there is a RunnableEvent, the association to the Runnable includes the configured EventType.

#### Tasks View

The Tasks view is in general the same view as the already mentioned Task view above with the advantage to get an overview about all included Tasks of a Software model.

To open/create a Tasks view it is needed to switch to the Sirius perspective.

- This can be done by Window – Perspective – Open Perspective – Other and select then Sirius.
- On the left side inside of the Model Explorer go to an AMALTHEA model, expand it and do a right click on the Software model.
- Select New Representation – new Tasks Overview to create a new diagram.
- Change the name if needed and click on ok.

The same additional options are available as in the normal Task view like the Label Layer and Communication Layer.

#### Mapping View

The Mapping view gives an overview of the relation between Cores, Schedulers and Tasks, which is defined in the Mapping Model of AMALTHEA.

To open/create a Tasks view it is needed to switch to the Sirius perspective.

- This can be done by Window – Perspective – Open Perspective – Other and select then Sirius.
- On the left side inside of the Model Explorer go to an AMALTHEA model, expand it and do a right click on the Mapping model.
- Select New Representation – new Tasks Overview to create a new diagram.
- Change the name if needed and click on ok.