robotransform 0.0.5__py3-none-any.whl → 0.0.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
robotransform/filters.py CHANGED
@@ -27,3 +27,6 @@ def type_to_aadl_type(_type) -> str:
27
27
  elif "*" in typename:
28
28
  typename = typename.split("*")[0]
29
29
  return mapping.get(typename, f"messages::{typename}")
30
+
31
+ def aadl_case_fix(indetifier: str) -> str:
32
+ return identifier
@@ -5,9 +5,9 @@
5
5
  {%- macro render_node_threads(machine) -%}
6
6
  {%- for node in machine.nodes %}
7
7
  thread {{ node.name }}
8
- features {# TODO: Replace these with real resolved fields #}
9
- input: in data port Base_Types::Float;
10
- output: out data port Base_Types::Float;
8
+ --features {# TODO: Replace these with real resolved fields #}
9
+ --input: in data port Base_Types::Float;
10
+ --output: out data port Base_Types::Float;
11
11
  end {{ node.name }};
12
12
  thread implementation {{ node.name }}.impl
13
13
  end {{ node.name }}.impl;
@@ -41,26 +41,28 @@ public
41
41
  modes
42
42
  {%- for machine in machines_with_nodes -%}
43
43
  {% for node in machine.nodes %}
44
- {{node.name}}: mode;
44
+ {{node.name}}: {% if loop.first %}initial {% endif %}mode;
45
45
  {%- endfor %}
46
46
  {%- endfor %}
47
47
  {%- endif %}
48
48
  {%- if machines_with_nodes %}
49
- subcomponents
49
+ --subcomponents
50
50
  {%- for machine in machines_with_nodes -%}
51
51
  {% for node in machine.nodes %}
52
- {{node.name}}: thread {{node.name}}; {# TODO: Filter so not all nodes are transformed into threads #}
52
+ --{{node.name}}: thread {{node.name}}; {# TODO: Filter so not all nodes are transformed into threads #}
53
53
  {%- endfor %}
54
54
  {%- endfor %}
55
55
  {%- endif %}
56
56
  {%- set machines_with_transitions = package.machines | selectattr("transitions") | selectattr('transitions', '!=', []) | list %}
57
57
  {%- if machines_with_transitions %}
58
- connections
58
+ annex behaviour_specification {**
59
+ mode transitions
59
60
  {%- for machine in machines_with_transitions -%}
60
61
  {% for transition in machine.transitions %}
61
- {{ transition.name }}: port {{ transition.source }} -> {{ transition.target }}; {# TODO: Check if these are correct #}
62
+ {{ transition.source }} -> {{ transition.target }}; {# TODO: Check if these are correct #}
62
63
  {%- endfor %}
63
64
  {%- endfor %}
65
+ **};
64
66
  {%- endif %}
65
67
  end {{package.name}}.impl;
66
68
  {%- if machines_with_nodes %}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: robotransform
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Summary: Perform model transformations for the RoboSapiens project.
5
5
  Keywords: transformation
6
6
  Author: Arkadiusz Michał Ryś
@@ -706,5 +706,7 @@ Description-Content-Type: text/markdown
706
706
 
707
707
  # RoboTransform
708
708
 
709
- Library to perform model to model transformations in the context of RoboSapiens.
709
+ Library to perform model to model transformations in the context of RoboSAPIENS.
710
710
 
711
+ For installation steps follow [the documentation](https://robotransform-0f96de.pages.rys.one/).
712
+ We also provide [the reasoning behind certain decisions](-/jobs/artifacts/main/download?job=typst).
@@ -1,12 +1,12 @@
1
1
  robotransform/__init__.py,sha256=8IkQ3Astb5vWt6yKgB0e3FqniYWPy9wufasZR9OwXmI,166
2
2
  robotransform/concepts.py,sha256=MXPff6XwQyabWJcSC5armw3eI4xGDmnd6yZpmHdO6m8,9933
3
- robotransform/filters.py,sha256=E9yM36Rktb28v32F9SQg0lB9xYPB1YcR5A4o45e7PRY,936
3
+ robotransform/filters.py,sha256=35FKiQlVpKxjCtFaUydwMu8QPt-GcaPn5hwDnV7MCzw,1002
4
4
  robotransform/main.py,sha256=afE30HpVo5weXeBO60LOpkCDS4cZ0EKo-nuD0xUG5cI,5025
5
5
  robotransform/processors.py,sha256=8NaNFTAm3iaNAzbp5D8-Uv_qIWyxVklIbmGtXi5--nM,1578
6
6
  robotransform/robochart.tx,sha256=dz_4hr-reu9ubuXdZR4WNKkp-gs_txgzyRvR-p7nphA,10227
7
- robotransform/templates/logical.aadl,sha256=_kvpAij37DjL4aHrizBrwG5RCO7LJXD0tkl__vCdAZU,2743
7
+ robotransform/templates/logical.aadl,sha256=AkqbpICONS4iOkQozAjKB7JIe1BgU-duoOTa7pPt2b4,2819
8
8
  robotransform/templates/messages.aadl,sha256=gSEULreDkIM-ukODyD1WnaV1qFTw_j5EAM2Z9u-Xkmo,383
9
- robotransform-0.0.5.dist-info/WHEEL,sha256=z-mOpxbJHqy3cq6SvUThBZdaLGFZzdZPtgWLcP2NKjQ,79
10
- robotransform-0.0.5.dist-info/entry_points.txt,sha256=NvmK-01oEE7ji06NbIxr7pZGUEJwbwMLjjfHssOVmB0,52
11
- robotransform-0.0.5.dist-info/METADATA,sha256=y3dPRoUqXaWAnWip65BJtH82q2LV5E4_y9uJnV_6br0,42563
12
- robotransform-0.0.5.dist-info/RECORD,,
9
+ robotransform-0.0.6.dist-info/WHEEL,sha256=93kfTGt3a0Dykt_T-gsjtyS5_p8F_d6CE1NwmBOirzo,79
10
+ robotransform-0.0.6.dist-info/entry_points.txt,sha256=NvmK-01oEE7ji06NbIxr7pZGUEJwbwMLjjfHssOVmB0,52
11
+ robotransform-0.0.6.dist-info/METADATA,sha256=dJ5c206E1zIJ7KqLXzBjF57k2oYcz7EWLNpcC2Txf0A,42759
12
+ robotransform-0.0.6.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.9.15
2
+ Generator: uv 0.9.16
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any