@@ -10,13 +10,13 @@ model TD "Discrete Transition"
10
10
annotation(Dialog(enable = true, group = "Arc Weights" ));
11
11
Boolean firingCon= true "additional firing condition" annotation(Dialog(enable = true, group = "Firing Condition" ));
12
12
//****MODIFIABLE PARAMETERS AND VARIABLES END****//
13
+ protected
14
+ outer PNlib.Settings settings1 "global settings for animation and display" ;
13
15
Integer showTransitionName= settings1.showTransitionName
14
16
"only for transition animation and display (Do not change!)" ;
15
17
Integer showDelay= settings1.showDelay
16
18
"only for transition animation and display (Do not change!)" ;
17
19
Real color[3 ] "only for transition animation and display (Do not change!)" ;
18
- protected
19
- outer PNlib.Settings settings1 "global settings for animation and display" ;
20
20
Real tIn[nIn] "tokens of input places" ;
21
21
Real tOut[nOut] "tokens of output places" ;
22
22
Real testValue[nIn] "test values of input arcs" ;
@@ -42,8 +42,6 @@ protected
42
42
"Integer test values of input arcs (for generating events!)" ;
43
43
Integer normalArc[nIn]
44
44
"1=no,2=yes, i.e. double arc: test and normal arc or inhibitor and normal arc" ;
45
- Boolean active "Is the transition active?" ;
46
- Boolean fire "Does the transition fire?" ;
47
45
Boolean disPlaceIn[nIn]
48
46
"Are the input places discrete or continuous? true=discrete" ;
49
47
Boolean disPlaceOut[nOut]
@@ -62,6 +60,8 @@ protected
62
60
Boolean enabledByOutPlaces = Functions.OddsAndEnds.allTrue(enableOut);
63
61
//****BLOCKS END****//
64
62
public
63
+ Boolean active "Is the transition active?" ;
64
+ Boolean fire "Does the transition fire?" ;
65
65
PNlib.Interfaces.TransitionIn inPlaces[nIn](
66
66
each active= delayPassed,
67
67
arcWeight= arcWeightIn,
0 commit comments