Browse Source

fixed documentation

Simon Van Mierlo 8 years ago
parent
commit
7f8a56d774

BIN
doc/_build/doctrees/environment.pickle


BIN
doc/_build/doctrees/executing_transformation.doctree


BIN
doc/_build/doctrees/index.doctree


BIN
doc/_build/doctrees/installation.doctree


BIN
doc/_build/doctrees/modelling_transformation.doctree


BIN
doc/_build/doctrees/new_language.doctree


BIN
doc/_build/doctrees/overview.doctree


BIN
doc/_build/doctrees/troubleshooting.doctree


BIN
doc/_build/doctrees/using_language.doctree


+ 2 - 1
doc/_build/html/_sources/index.txt

@@ -22,4 +22,5 @@ Contents
     Using a Modelling Language <using_language>
     Modelling a Model Transformation <modelling_transformation>
     Executing a Model Transformation <executing_transformation>
-    Troubleshooting <troubleshooting>
+    Troubleshooting <troubleshooting>
+    Workflows <workflows>

+ 9 - 0
doc/_build/html/index.html

@@ -116,6 +116,15 @@
 </li>
 <li class="toctree-l1"><a class="reference internal" href="executing_transformation.html"> Executing a Model Transformation</a></li>
 <li class="toctree-l1"><a class="reference internal" href="troubleshooting.html"> Troubleshooting</a></li>
+<li class="toctree-l1"><a class="reference internal" href="workflows.html"> Workflows</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="workflows.html#using-workflows">Using Workflows</a></li>
+<li class="toctree-l2"><a class="reference internal" href="workflows.html#opening-the-workflow">Opening the workflow</a></li>
+<li class="toctree-l2"><a class="reference internal" href="workflows.html#setting-the-run-time-parameters">Setting the run-time parameters</a></li>
+<li class="toctree-l2"><a class="reference internal" href="workflows.html#execute-the-workflow">Execute the workflow</a></li>
+<li class="toctree-l2"><a class="reference internal" href="workflows.html#dependency">Dependency</a></li>
+<li class="toctree-l2"><a class="reference internal" href="workflows.html#example-workflow-for-creating-a-dsl">Example Workflow for Creating a DSL</a></li>
+</ul>
+</li>
 </ul>
 </div>
 </div>

BIN
doc/_build/html/objects.inv


File diff suppressed because it is too large
+ 1 - 1
doc/_build/html/searchindex.js


+ 2 - 1
doc/index.rst

@@ -22,4 +22,5 @@ Contents
     Using a Modelling Language <using_language>
     Modelling a Model Transformation <modelling_transformation>
     Executing a Model Transformation <executing_transformation>
-    Troubleshooting <troubleshooting>
+    Troubleshooting <troubleshooting>
+    Workflows <workflows>

+ 3 - 3
exported_to_sccdxml/run_train.py

@@ -133,9 +133,9 @@ class SimulationGUI(Tk):
             self.light_change_events.append((self.counter + random.random() * 500 + 300, item, turn_green))
         
         if self.train is not None:
-            self.train.speed += self.train.acceleration / 2
-            self.label_speed.config(text="Speed: %.2f" % self.train.speed)
-            self.travelled_x += float(self.train.speed) / 20
+            self.train.velocity += self.train.acceleration / 2
+            self.label_speed.config(text="Speed: %.2f" % self.train.velocity)
+            self.travelled_x += float(self.train.velocity) / 20
             delta_x = -int(self.travelled_x - self.travelled_x_int)
             self.travelled_x_int = int(self.travelled_x)
             # Move rails

+ 5 - 2
mt/ptcal/pytcore/tcore/messages.py

@@ -253,11 +253,14 @@ class Match(dict):
         '''
         mapping = {}
         for label in self.iterkeys():
-            sourceNode = source_graph.get_node(self[label])
+            try:
+                sourceNode = source_graph.get_node(self[label])
+            except KeyError:
+                raise Exception('The matched node %s does not exist' % label)
             if sourceNode is not None:
                 mapping[label] = sourceNode
             else:
-                raise Exception('The matched node does not exist')
+                raise Exception('The matched node %s does not exist' % label)
         return mapping
     
     def to_mapping(self, source_graph, pattern_graph):