@@ -2,25 +2,38 @@ within PNlib.Examples.DisTest;
2
2
model EightConflictProb
3
3
extends Modelica.Icons.Example;
4
4
5
- PNlib.PD P1(startTokens = 1 , enablingType = 2 , nOut = 8 ) annotation(Placement(transformation(extent = {{-90, -4}, {-70, 16}})));
6
- PNlib.TD T1(nIn = 1 ) annotation(Placement(transformation(extent = {{2, 76}, {22, 96}})));
7
- PNlib.TD T2(nIn = 1 ) annotation(Placement(transformation(extent = {{30, 60}, {50, 80}})));
8
- PNlib.TD T3(nIn = 1 ) annotation(Placement(transformation(extent = {{52, 36}, {72, 56}})));
9
- PNlib.TD T4(nIn = 1 ) annotation(Placement(transformation(extent = {{72, 8}, {92, 28}})));
10
- PNlib.TD T5(nIn = 1 ) annotation(Placement(transformation(extent = {{72, -24}, {92, -4}})));
11
- PNlib.TD T6(nIn = 1 ) annotation(Placement(transformation(extent = {{52, -50}, {72, -30}})));
12
- PNlib.TD T7(nIn = 1 ) annotation(Placement(transformation(extent = {{30, -76}, {50, -56}})));
13
- PNlib.TD T8(nIn = 1 ) annotation(Placement(transformation(extent = {{8, -94}, {28, -74}})));
5
+ PNlib.PD P1(startTokens = 1 , enablingType = 2 , nOut = 8 ) annotation(Placement(transformation(extent={{-50,-10},
6
+ {-30,10}})));
7
+ PNlib.TD T1(nIn = 1 ) annotation(Placement(transformation(extent={{-20,30},{0,50}})));
8
+ PNlib.TD T2(nIn = 1 ) annotation(Placement(transformation(extent={{0,10},{20,30}})));
9
+ PNlib.TD T3(nIn = 1 ) annotation(Placement(transformation(extent={{20,20},{40,40}})));
10
+ PNlib.TD T4(nIn = 1 ) annotation(Placement(transformation(extent={{40,10},{60,30}})));
11
+ PNlib.TD T5(nIn = 1 ) annotation(Placement(transformation(extent={{40,-30},{60,
12
+ -10}})));
13
+ PNlib.TD T6(nIn = 1 ) annotation(Placement(transformation(extent={{-20,-50},{0,
14
+ -30}})));
15
+ PNlib.TD T7(nIn = 1 ) annotation(Placement(transformation(extent={{20,-40},{40,
16
+ -20}})));
17
+ PNlib.TD T8(nIn = 1 ) annotation(Placement(transformation(extent={{0,-30},{20,-10}})));
14
18
inner PNlib.Settings settings1
15
- annotation (Placement(transformation(extent={{-60,46 },{-40,66 }})));
19
+ annotation (Placement(transformation(extent={{-60,40 },{-40,60 }})));
16
20
equation
17
- connect (P1.outTransition[1 ], T1.inPlaces[1 ]) annotation(Line(points = {{-69.2, 5.125}, {-4, 5.125}, {-4, 86}, {7.2, 86}}, color = {0, 0, 0}, smooth = Smooth.None));
18
- connect (T2.inPlaces[1 ], P1.outTransition[2 ]) annotation(Line(points = {{35.2, 70}, {-2, 70}, {-2, 5.375}, {-69.2, 5.375}}, color = {0, 0, 0}, smooth = Smooth.None));
19
- connect (T3.inPlaces[1 ], P1.outTransition[3 ]) annotation(Line(points = {{57.2, 46}, {2, 46}, {2, 5.625}, {-69.2, 5.625}}, color = {0, 0, 0}, smooth = Smooth.None));
20
- connect (T4.inPlaces[1 ], P1.outTransition[4 ]) annotation(Line(points = {{77.2, 18}, {0, 18}, {0, 5.875}, {-69.2, 5.875}}, color = {0, 0, 0}, smooth = Smooth.None));
21
- connect (T5.inPlaces[1 ], P1.outTransition[5 ]) annotation(Line(points = {{77.2, -14}, {-2, -14}, {-2, 6.125}, {-69.2, 6.125}}, color = {0, 0, 0}, smooth = Smooth.None));
22
- connect (T6.inPlaces[1 ], P1.outTransition[6 ]) annotation(Line(points = {{57.2, -40}, {-22, -40}, {-22, 6.375}, {-69.2, 6.375}}, color = {0, 0, 0}, smooth = Smooth.None));
23
- connect (T7.inPlaces[1 ], P1.outTransition[7 ]) annotation(Line(points = {{35.2, -66}, {26, -66}, {26, 6.625}, {-69.2, 6.625}}, color = {0, 0, 0}, smooth = Smooth.None));
24
- connect (T8.inPlaces[1 ], P1.outTransition[8 ]) annotation(Line(points = {{13.2, -84}, {9.6, -84}, {9.6, 6.875}, {-69.2, 6.875}}, color = {0, 0, 0}, smooth = Smooth.None));
25
- annotation(Diagram(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}), graphics));
21
+ connect (P1.outTransition[1 ], T1.inPlaces[1 ]) annotation(Line(points={{-29.2,-0.875},
22
+ {-20,-0.875},{-20,40},{-14.8,40}}, color = {0, 0, 0}, smooth = Smooth.None));
23
+ connect (T2.inPlaces[1 ], P1.outTransition[2 ]) annotation(Line(points={{5.2,20},
24
+ {0,20},{0,-0.625},{-29.2,-0.625}}, color = {0, 0, 0}, smooth = Smooth.None));
25
+ connect (T3.inPlaces[1 ], P1.outTransition[3 ]) annotation(Line(points={{25.2,30},
26
+ {20,30},{20,-0.375},{-29.2,-0.375}}, color = {0, 0, 0}, smooth = Smooth.None));
27
+ connect (T4.inPlaces[1 ], P1.outTransition[4 ]) annotation(Line(points={{45.2,20},
28
+ {40,20},{40,-0.125},{-29.2,-0.125}}, color = {0, 0, 0}, smooth = Smooth.None));
29
+ connect (T5.inPlaces[1 ], P1.outTransition[5 ]) annotation(Line(points={{45.2,-20},
30
+ {40,-20},{40,0.125},{-29.2,0.125}}, color = {0, 0, 0}, smooth = Smooth.None));
31
+ connect (T6.inPlaces[1 ], P1.outTransition[6 ]) annotation(Line(points={{-14.8,-40},
32
+ {-20,-40},{-20,0.375},{-29.2,0.375}}, color = {0, 0, 0}, smooth = Smooth.None));
33
+ connect (T7.inPlaces[1 ], P1.outTransition[7 ]) annotation(Line(points={{25.2,-30},
34
+ {20,-30},{20,0.625},{-29.2,0.625}}, color = {0, 0, 0}, smooth = Smooth.None));
35
+ connect (T8.inPlaces[1 ], P1.outTransition[8 ]) annotation(Line(points={{5.2,-20},
36
+ {-0.4,-20},{-0.4,0.875},{-29.2,0.875}}, color = {0, 0, 0}, smooth = Smooth.None));
37
+ annotation(Diagram(coordinateSystem(preserveAspectRatio = false, extent={{-60,-60},
38
+ {60,60}}), graphics));
26
39
end EightConflictProb;
0 commit comments