|
|
@@ -1,7 +1,7 @@
|
|
|
from state.devstate import DevState
|
|
|
from api.od import ODAPI
|
|
|
from concrete_syntax.textual_od.renderer import render_od
|
|
|
-# from concrete_syntax.textual_od.renderer_jinja2 import render_od_jinja2
|
|
|
+from concrete_syntax.textual_od.renderer_jinja2 import render_od_jinja2
|
|
|
from bootstrap.scd import bootstrap_scd
|
|
|
from util import loader
|
|
|
from transformation.rule import RuleMatcherRewriter, ActionGenerator
|
|
|
@@ -28,10 +28,10 @@ if __name__ == "__main__":
|
|
|
mm_rt_cs = mm_cs + read_file('metamodels/mm_runtime.od')
|
|
|
# m_cs = read_file('models/m_example_simple.od')
|
|
|
# m_rt_initial_cs = m_cs + read_file('models/m_example_simple_rt_initial.od')
|
|
|
- # m_cs = read_file('models/m_example_mutex.od')
|
|
|
- # m_rt_initial_cs = m_cs + read_file('models/m_example_mutex_rt_initial.od')
|
|
|
- m_cs = read_file('models/m_example_inharc.od')
|
|
|
- m_rt_initial_cs = m_cs + read_file('models/m_example_inharc_rt_initial.od')
|
|
|
+ m_cs = read_file('models/m_example_mutex.od')
|
|
|
+ m_rt_initial_cs = m_cs + read_file('models/m_example_mutex_rt_initial.od')
|
|
|
+ # m_cs = read_file('models/m_example_inharc.od')
|
|
|
+ # m_rt_initial_cs = m_cs + read_file('models/m_example_inharc_rt_initial.od')
|
|
|
|
|
|
# Parse them
|
|
|
mm = loader.parse_and_check(state, mm_cs, scd_mmm, "Petri-Net Design meta-model")
|
|
|
@@ -51,7 +51,8 @@ if __name__ == "__main__":
|
|
|
|
|
|
def render_callback(od):
|
|
|
show_petri_net(od)
|
|
|
- return render_od(state, od.m, od.mm)
|
|
|
+ # return render_od(state, od.m, od.mm)
|
|
|
+ return render_od_jinja2(state, od.m, od.mm)
|
|
|
|
|
|
sim = simulator.Simulator(
|
|
|
action_generator=action_generator,
|