Skip to content

Commit

Permalink
Merge pull request #10 from openMSL/9-not-usable-as-receiver-anymore
Browse files Browse the repository at this point in the history
Add output to modelDescription
  • Loading branch information
ClemensLinnhoff authored Sep 4, 2024
2 parents b8a74c1 + 3bd27f8 commit 21188b4
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:

steps:
- name: Checkout Model
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

- name: Cache Protobuf
id: cache-protobuf
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: protobuf-21.12
key: ${{ runner.os }}-protobuf
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:

- name: Cache Model FMU
id: cache-model-fmu
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/model_fmu
key: ${{ runner.os }}-model-fmu
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cl0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: enarx/spdx@master
with:
licenses: Apache-2.0 BSD-3-Clause BSD-2-Clause BSL-1.0 GPL-2.0 GPL-3.0 LGPL-2.0 LGPL-2.1 LGPL-3.0 MIT MPL-2.0 CDDL-1.0 EPL-2.0
4 changes: 2 additions & 2 deletions .github/workflows/cpp-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Model
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

- name: Cache Protobuf
id: cache-protobuf
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: protobuf-21.12
key: ${{ runner.os }}-protobuf
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fmu_artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
steps:
- name: Cache Model FMU
id: cache-model-fmu
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/model_fmu
key: ${{ runner.os }}-model-fmu

- name: Archive built FMU
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}
path: /tmp/model_fmu/${{ github.event.repository.name }}.fmu
2 changes: 1 addition & 1 deletion .github/workflows/fmu_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: Cache Model FMU
id: cache-model-fmu
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/model_fmu
key: ${{ runner.os }}-model-fmu
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: markdown-lint
uses: articulate/actions-markdownlint@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Model
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

Expand All @@ -21,7 +21,7 @@ jobs:

- name: Cache Protobuf
id: cache-protobuf
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: protobuf-21.12
key: ${{ runner.os }}-protobuf
Expand Down
29 changes: 25 additions & 4 deletions src/modelDescription.in.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,37 @@
<ScalarVariable name="OSMPSensorViewIn.base.lo" valueReference="0" causality="input" variability="discrete">
<Integer start="0"/>
<Annotations>
<Tool name="net.pmsf.osmp" xmlns:osmp="http://xsd.pmsf.net/OSISensorModelPackaging"><osmp:osmp-binary-variable name="OSMPSensorViewIn" role="base.lo" mime-type="application/x-open-simulation-interface; type=SensorData; version=@OSIVERSION@"/></Tool>
<Tool name="net.pmsf.osmp" xmlns:osmp="http://xsd.pmsf.net/OSISensorModelPackaging"><osmp:osmp-binary-variable name="OSMPSensorViewIn" role="base.lo" mime-type="application/x-open-simulation-interface; type=SensorView; version=@OSIVERSION@"/></Tool>
</Annotations>
</ScalarVariable>
<ScalarVariable name="OSMPSensorViewIn.base.hi" valueReference="1" causality="input" variability="discrete">
<Integer start="0"/>
<Annotations>
<Tool name="net.pmsf.osmp" xmlns:osmp="http://xsd.pmsf.net/OSISensorModelPackaging"><osmp:osmp-binary-variable name="OSMPSensorViewIn" role="base.hi" mime-type="application/x-open-simulation-interface; type=SensorData; version=@OSIVERSION@"/></Tool>
<Tool name="net.pmsf.osmp" xmlns:osmp="http://xsd.pmsf.net/OSISensorModelPackaging"><osmp:osmp-binary-variable name="OSMPSensorViewIn" role="base.hi" mime-type="application/x-open-simulation-interface; type=SensorView; version=@OSIVERSION@"/></Tool>
</Annotations>
</ScalarVariable>
<ScalarVariable name="OSMPSensorViewIn.size" valueReference="2" causality="input" variability="discrete">
<Integer start="0"/>
<Annotations>
<Tool name="net.pmsf.osmp" xmlns:osmp="http://xsd.pmsf.net/OSISensorModelPackaging"><osmp:osmp-binary-variable name="OSMPSensorViewIn" role="size" mime-type="application/x-open-simulation-interface; type=SensorData; version=@OSIVERSION@"/></Tool>
<Tool name="net.pmsf.osmp" xmlns:osmp="http://xsd.pmsf.net/OSISensorModelPackaging"><osmp:osmp-binary-variable name="OSMPSensorViewIn" role="size" mime-type="application/x-open-simulation-interface; type=SensorView; version=@OSIVERSION@"/></Tool>
</Annotations>
</ScalarVariable>
<ScalarVariable name="OSMPSensorViewOut.base.lo" valueReference="3" causality="output" variability="discrete" initial="exact">
<Integer start="0"/>
<Annotations>
<Tool name="net.pmsf.osmp" xmlns:osmp="http://xsd.pmsf.net/OSISensorModelPackaging"><osmp:osmp-binary-variable name="OSMPSensorViewOut" role="base.lo" mime-type="application/x-open-simulation-interface; type=SensorView; version=@OSIVERSION@"/></Tool>
</Annotations>
</ScalarVariable>
<ScalarVariable name="OSMPSensorViewOut.base.hi" valueReference="4" causality="output" variability="discrete" initial="exact">
<Integer start="0"/>
<Annotations>
<Tool name="net.pmsf.osmp" xmlns:osmp="http://xsd.pmsf.net/OSISensorModelPackaging"><osmp:osmp-binary-variable name="OSMPSensorViewOut" role="base.hi" mime-type="application/x-open-simulation-interface; type=SensorView; version=@OSIVERSION@"/></Tool>
</Annotations>
</ScalarVariable>
<ScalarVariable name="OSMPSensorViewOut.size" valueReference="5" causality="output" variability="discrete" initial="exact">
<Integer start="0"/>
<Annotations>
<Tool name="net.pmsf.osmp" xmlns:osmp="http://xsd.pmsf.net/OSISensorModelPackaging"><osmp:osmp-binary-variable name="OSMPSensorViewOut" role="size" mime-type="application/x-open-simulation-interface; type=SensorView; version=@OSIVERSION@"/></Tool>
</Annotations>
</ScalarVariable>
<ScalarVariable name="valid" valueReference="0" causality="output" variability="discrete" initial="exact">
Expand All @@ -63,13 +81,16 @@
<ScalarVariable name="port" valueReference="1" causality="parameter" variability="fixed" initial="exact">
<String start="3456"/>
</ScalarVariable>
<ScalarVariable name="wait_time_in_s" valueReference="3" causality="parameter" variability="fixed" initial="exact">
<ScalarVariable name="wait_time_in_s" valueReference="6" causality="parameter" variability="fixed" initial="exact">
<Integer start="5"/>
</ScalarVariable>
</ModelVariables>
<ModelStructure>
<Outputs>
<Unknown index="4"/>
<Unknown index="5"/>
<Unknown index="6"/>
<Unknown index="7"/>
</Outputs>
</ModelStructure>
</fmiModelDescription>

0 comments on commit 21188b4

Please sign in to comment.