Skip to content

Commit 110b8b0

Browse files
Added raw Simulink models
1 parent 348b59e commit 110b8b0

161 files changed

Lines changed: 273915 additions & 6 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

EXPERIMENTS.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,20 +278,22 @@ Examples of how type and structure information can be transferred to an element-
278278

279279
### Model Conversion
280280
Turning a model into an element-property representation requires a pre-processing step which is domain and technology-specific.
281+
282+
#### EMF Models
281283
While some of the models used in our experiments were already provided in an element-property representation, the majority
282284
of models has been converted from EMF. More specifically, we implemented converters for parts of the UML meta-model
283285
implementation shipped with the Eclipse Modeling project, and for customly defined meta-model of architectural models
284286
following the component-connector principle.
285287

286-
In order to run the converters on the EMF models provided in the directory [emf-models](emf-models) do the following:
288+
In order to run the converters on the EMF models provided in the directory [emf-models](models-original/emf-models) do the following:
287289
* Build the required jar files with Maven: `mvn package`
288290
* Execute the converters
289291
```shell
290-
java -jar target/UML2CSV-jar-with-dependencies.jar classdiagram emf-models/argouml
291-
java -jar target/UML2CSV-jar-with-dependencies.jar classdiagram emf-models/bcms
292-
java -jar target/UML2CSV-jar-with-dependencies.jar classdiagram emf-models/ppu
293-
java -jar target/UML2CSV-jar-with-dependencies.jar statemachine emf-models/ppu_statem
294-
java -jar target/Architecture2CSV-jar-with-dependencies.jar emf-models/bcs
292+
java -jar target/UML2CSV-jar-with-dependencies.jar classdiagram models-original/emf-models/argouml
293+
java -jar target/UML2CSV-jar-with-dependencies.jar classdiagram models-original/emf-models/bcms
294+
java -jar target/UML2CSV-jar-with-dependencies.jar classdiagram models-original/emf-models/ppu
295+
java -jar target/UML2CSV-jar-with-dependencies.jar statemachine models-original/emf-models/ppu_statem
296+
java -jar target/Architecture2CSV-jar-with-dependencies.jar models-original/emf-models/bcs
295297
```
296298
* The converted models are saved under [`./csv-models`](csv-models)
297299

@@ -300,6 +302,9 @@ In a nutshell, we use the generic EMF model traversal and reflective API to acce
300302
and referenced elements. We exploit domain knowledge (on meta-models) to filter (and condense) some information
301303
considered irrelevant (too verbose) for similarity-based matching.
302304

305+
#### Simulink Models
306+
Information on how to convert the Simulink models can be found in the dedicated [README](models-original/Simulink/README.md).
307+
303308
### Running the Experiments On Your Dataset
304309
* Save the dataset's `csv` file to the [`experiment_subjects`](experimental_subjects) directory, next to the other dataset files. (Do not zip your files or locate them in subdirectories. They should be directly at the top-level, e.g., at `experiment_subjects/customdataset.csv`.)
305310
* Open the experiment properties in a text editor

models-original/Simulink/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Simulink Model Preparation
2+
There are four directories for the Simulink exportation to their element property representation:
3+
4+
- [Simulink_models](Simulink_models) contains the Simulink models, we used in the paper.
5+
- [element_property_algorithm](element_property_algorithm) contains the Matlab scripts to process Simulink models to their element property representation. For models used by Schlie et al., the scripts also create the different variants from each model. If you want to rerun any of the scripts, you have to adjust the hardcoded directory names to your file system.
6+
- [input_of_algorithm](input_of_algorithm) contains Simulink models which can be processed by the scripts in "element_property_algorithm". Adapt the hardcoded name in the script to the path of this directory. The models of "Simulink_models" are a subset of the models contained here, but the naming scheme of "input_of_algorithm" works with the scripts of "element_property_algorithm".
7+
- [output_of_algorithm](output_of_algorithm) contains the element property representations of the Simulink models, we used in the paper. We discarded identical, completely different and trivial sized variants. We renamed the outputs to fit to the ones from "Simulink_models" and our paper's naming scheme.
33.8 KB
Binary file not shown.
33.6 KB
Binary file not shown.
109 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)