Skip to content
Snippets Groups Projects
Commit 50e5ae68 authored by Markus Wieczorek's avatar Markus Wieczorek
Browse files

added syntax files from Tom

parent 66ba475e
No related merge requests found
syntax/NewActivityDiagram.PNG

114 KiB

<?xml version="1.0" encoding="UTF-8"?>
<architecture:ArchitectureDescription xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:architecture="http://www.eclipse.org/papyrus/infra/core/architecture" contextId="org.eclipse.papyrus.infra.services.edit.TypeContext"/>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<uml:Model xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_2aiE0BbQEeqvIO-qqguL2A" name="Test">
<packageImport xmi:type="uml:PackageImport" xmi:id="_2g7AsBbQEeqvIO-qqguL2A">
<importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
</packageImport>
<packagedElement xmi:type="uml:Model" xmi:id="_wF15kBnDEeqqaYS87taw6w" name="Model"/>
<packagedElement xmi:type="uml:Activity" xmi:id="_zJ3EMBnDEeqqaYS87taw6w" name="Activity3" node="_2yohsBnDEeqqaYS87taw6w _fOcMsBnFEeqqaYS87taw6w _lfLOIBnJEeqqaYS87taw6w _5imgMBnJEeqqaYS87taw6w _5sB3EBnLEeqqaYS87taw6w _i4p7ABnNEeqqaYS87taw6w _y7M8IBnOEeqqaYS87taw6w _p16WIBnPEeqqaYS87taw6w _wiXAABnPEeqqaYS87taw6w _PDfnEBnQEeqqaYS87taw6w _sf-TMBnQEeqqaYS87taw6w">
<ownedComment xmi:type="uml:Comment" xmi:id="_B-eIABnEEeqqaYS87taw6w">
<body>Einige Daten werden in Kommentaren angegeben:&#xD;
-----------------------------&#xD;
t = Zeit&#xD;
v = Initial-Geschwindigkeit&#xD;
a = Beschleunigung&#xD;
d = Richtungsvektor&#xD;
-----------------------------&#xD;
Einigen wir uns auf Default-Einheiten, sodass wir diese weg lassen können = weniger Parser-Arbeit? Vorschlag: s für t, m/s für v und m/s² für a</body>
</ownedComment>
<ownedComment xmi:type="uml:Comment" xmi:id="_6w7fEBnKEeqqaYS87taw6w" annotatedElement="_zJ3EMBnDEeqqaYS87taw6w">
<body>t = 0&#xD;
v_f = 10&#xD;
a_f = 2&#xD;
d_f = (0, 1)</body>
</ownedComment>
<ownedComment xmi:type="uml:Comment" xmi:id="_7agAgBnKEeqqaYS87taw6w" annotatedElement="_lfLOIBnJEeqqaYS87taw6w">
<body>t=3&#xD;
</body>
</ownedComment>
<ownedComment xmi:type="uml:Comment" xmi:id="_7sVXYBnKEeqqaYS87taw6w" annotatedElement="_zJ3EMBnDEeqqaYS87taw6w">
<body>Abstand(f, s) in [0.5, 2]&#xD;
v_f=0&#xD;
a_f=0</body>
</ownedComment>
<ownedComment xmi:type="uml:Comment" xmi:id="_c31dgBnMEeqqaYS87taw6w">
<body>Knoten geben spawn/despawn Ereignisse an</body>
</ownedComment>
<ownedComment xmi:type="uml:Comment" xmi:id="_mhk-8BnMEeqqaYS87taw6w">
<body>via = können wir Daten hinter spawn Ereignissen festsetzen, Syntax ist einfach Name(&lt;Parameter-Tupel>)</body>
</ownedComment>
<ownedComment xmi:type="uml:Comment" xmi:id="_DzhPABnNEeqqaYS87taw6w">
<body>Objekte despawnen geht auch</body>
</ownedComment>
<ownedComment xmi:type="uml:Comment" xmi:id="_OJ5M8BnNEeqqaYS87taw6w">
<body>Abstands-Funktion für Tests. Sollte dieser Constraint nicht erfüllt werden -> Test gescheitert.&#xD;
Knoten selbst hat keine Informationen&#xD;
----&#xD;
Die &quot;x in [a, b]&quot;-Syntax sollte leichter zu parsen/kompilieren sein als a &lt;x &lt;b</body>
</ownedComment>
<ownedComment xmi:type="uml:Comment" xmi:id="_s_LfEBnNEeqqaYS87taw6w" annotatedElement="_zJ3EMBnDEeqqaYS87taw6w">
<body>t = 0&#xD;
v_s = 0&#xD;
a_s = 4&#xD;
d_s = (1, 0)</body>
</ownedComment>
<ownedComment xmi:type="uml:Comment" xmi:id="_YSFIcBnOEeqqaYS87taw6w">
<body>Wir setzen t wieder auf 0, damit setzen wir den Zähler zurück und &quot;animieren&quot; jetzt neue Frames</body>
</ownedComment>
<ownedComment xmi:type="uml:Comment" xmi:id="_0xDqgBnOEeqqaYS87taw6w" annotatedElement="_zJ3EMBnDEeqqaYS87taw6w">
<body>Abstand(Fahrtweg_f, s) in [1, ]&#xD;
</body>
</ownedComment>
<ownedComment xmi:type="uml:Comment" xmi:id="_BBNNgBnPEeqqaYS87taw6w">
<body>Fahrtweg kann natürlich mehrere Möglichkeiten meinen, daher nicht eindeutig. Problem: Angabe eines Richtungsvektors d (siehe auch nächten Knoten).&#xD;
Wir warten also ab bis sich das Objekt selbst weg bewegt.&#xD;
---&#xD;
Leere Angabe im Interval meint -infinity bzw. +infinity&#xD;
</body>
</ownedComment>
<ownedComment xmi:type="uml:Comment" xmi:id="_2bPe8BnPEeqqaYS87taw6w" annotatedElement="_p16WIBnPEeqqaYS87taw6w">
<body>t = 0&#xD;
v_f = 0&#xD;
a_f = 2</body>
</ownedComment>
<ownedComment xmi:type="uml:Comment" xmi:id="_2qmwoBnPEeqqaYS87taw6w" annotatedElement="_wiXAABnPEeqqaYS87taw6w">
<body>v_f > 5&#xD;
d_f = (0, 1)</body>
</ownedComment>
<ownedComment xmi:type="uml:Comment" xmi:id="_QVZ64BnQEeqqaYS87taw6w" annotatedElement="_PDfnEBnQEeqqaYS87taw6w">
<body>t >= 5</body>
</ownedComment>
<ownedComment xmi:type="uml:Comment" xmi:id="_URIJkBnQEeqqaYS87taw6w">
<body>Gebe 5s um das Hindernis ggf. zu Umfahren&#xD;
-----&#xD;
&quot;wait until&quot; sollten immer Ungleichungen sein um Gleitkomma-Problemen, Frame-Skips etc. aus dem Weg zu gehen</body>
</ownedComment>
<edge xmi:type="uml:ControlFlow" xmi:id="_JxDooBnGEeqqaYS87taw6w" target="_fOcMsBnFEeqqaYS87taw6w" source="_2yohsBnDEeqqaYS87taw6w"/>
<edge xmi:type="uml:ControlFlow" xmi:id="_qr9cEBnJEeqqaYS87taw6w" target="_lfLOIBnJEeqqaYS87taw6w" source="_fOcMsBnFEeqqaYS87taw6w"/>
<edge xmi:type="uml:ControlFlow" xmi:id="_7LBPgBnJEeqqaYS87taw6w" target="_5imgMBnJEeqqaYS87taw6w" source="_lfLOIBnJEeqqaYS87taw6w"/>
<edge xmi:type="uml:ControlFlow" xmi:id="_74gVsBnLEeqqaYS87taw6w" target="_5sB3EBnLEeqqaYS87taw6w" source="_5imgMBnJEeqqaYS87taw6w"/>
<edge xmi:type="uml:ControlFlow" xmi:id="_NSvQkBnPEeqqaYS87taw6w" target="_y7M8IBnOEeqqaYS87taw6w" source="_5sB3EBnLEeqqaYS87taw6w"/>
<edge xmi:type="uml:ControlFlow" xmi:id="_r3yHQBnPEeqqaYS87taw6w" target="_p16WIBnPEeqqaYS87taw6w" source="_y7M8IBnOEeqqaYS87taw6w"/>
<edge xmi:type="uml:ControlFlow" xmi:id="_yTzvgBnPEeqqaYS87taw6w" target="_i4p7ABnNEeqqaYS87taw6w" source="_wiXAABnPEeqqaYS87taw6w"/>
<edge xmi:type="uml:ControlFlow" xmi:id="_RY5_QBnQEeqqaYS87taw6w" target="_PDfnEBnQEeqqaYS87taw6w" source="_p16WIBnPEeqqaYS87taw6w"/>
<edge xmi:type="uml:ControlFlow" xmi:id="_R8gbkBnQEeqqaYS87taw6w" target="_wiXAABnPEeqqaYS87taw6w" source="_PDfnEBnQEeqqaYS87taw6w"/>
<edge xmi:type="uml:ControlFlow" xmi:id="_tz_f0BnQEeqqaYS87taw6w" target="_sf-TMBnQEeqqaYS87taw6w" source="_i4p7ABnNEeqqaYS87taw6w"/>
<node xmi:type="uml:InitialNode" xmi:id="_2yohsBnDEeqqaYS87taw6w" name="Start" outgoing="_JxDooBnGEeqqaYS87taw6w"/>
<node xmi:type="uml:OpaqueAction" xmi:id="_fOcMsBnFEeqqaYS87taw6w" name="spawn: Fahrzeug f" incoming="_JxDooBnGEeqqaYS87taw6w" outgoing="_qr9cEBnJEeqqaYS87taw6w"/>
<node xmi:type="uml:OpaqueAction" xmi:id="_lfLOIBnJEeqqaYS87taw6w" name="spawn: Hindernis s = Zylinder(r=1, h=2)" incoming="_qr9cEBnJEeqqaYS87taw6w" outgoing="_7LBPgBnJEeqqaYS87taw6w"/>
<node xmi:type="uml:OpaqueAction" xmi:id="_5imgMBnJEeqqaYS87taw6w" name="constraint" incoming="_7LBPgBnJEeqqaYS87taw6w" outgoing="_74gVsBnLEeqqaYS87taw6w"/>
<node xmi:type="uml:OpaqueAction" xmi:id="_5sB3EBnLEeqqaYS87taw6w" name="move: s" incoming="_74gVsBnLEeqqaYS87taw6w" outgoing="_NSvQkBnPEeqqaYS87taw6w"/>
<node xmi:type="uml:OpaqueAction" xmi:id="_i4p7ABnNEeqqaYS87taw6w" name="despawn: s" incoming="_yTzvgBnPEeqqaYS87taw6w" outgoing="_tz_f0BnQEeqqaYS87taw6w"/>
<node xmi:type="uml:OpaqueAction" xmi:id="_y7M8IBnOEeqqaYS87taw6w" name="wait until" incoming="_NSvQkBnPEeqqaYS87taw6w" outgoing="_r3yHQBnPEeqqaYS87taw6w"/>
<node xmi:type="uml:OpaqueAction" xmi:id="_p16WIBnPEeqqaYS87taw6w" name="move: f" incoming="_r3yHQBnPEeqqaYS87taw6w" outgoing="_RY5_QBnQEeqqaYS87taw6w"/>
<node xmi:type="uml:OpaqueAction" xmi:id="_wiXAABnPEeqqaYS87taw6w" name="constraint" incoming="_R8gbkBnQEeqqaYS87taw6w" outgoing="_yTzvgBnPEeqqaYS87taw6w"/>
<node xmi:type="uml:OpaqueAction" xmi:id="_PDfnEBnQEeqqaYS87taw6w" name="wait until" incoming="_RY5_QBnQEeqqaYS87taw6w" outgoing="_R8gbkBnQEeqqaYS87taw6w"/>
<node xmi:type="uml:FlowFinalNode" xmi:id="_sf-TMBnQEeqqaYS87taw6w" name="Final" incoming="_tz_f0BnQEeqqaYS87taw6w"/>
</packagedElement>
<packagedElement xmi:type="uml:Stereotype" xmi:id="_4dDd4By9EeqoaMJ7ePo_aw" name="Time"/>
<packagedElement xmi:type="uml:Stereotype" xmi:id="_QzoAIBy-EeqoaMJ7ePo_aw" name="Direction"/>
</uml:Model>
#Thu Dec 12 11:22:41 CET 2019
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment