Skip to content

Commit be47efd

Browse files
committed
Make some variables of discrete transitions public and some others protected
1 parent dfe5849 commit be47efd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PNlib/TD.mo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ model TD "Discrete Transition"
1010
annotation(Dialog(enable = true, group = "Arc Weights"));
1111
Boolean firingCon=true "additional firing condition" annotation(Dialog(enable = true, group = "Firing Condition"));
1212
//****MODIFIABLE PARAMETERS AND VARIABLES END****//
13+
protected
14+
outer PNlib.Settings settings1 "global settings for animation and display";
1315
Integer showTransitionName=settings1.showTransitionName
1416
"only for transition animation and display (Do not change!)";
1517
Integer showDelay=settings1.showDelay
1618
"only for transition animation and display (Do not change!)";
1719
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";
2020
Real tIn[nIn] "tokens of input places";
2121
Real tOut[nOut] "tokens of output places";
2222
Real testValue[nIn] "test values of input arcs";
@@ -42,8 +42,6 @@ protected
4242
"Integer test values of input arcs (for generating events!)";
4343
Integer normalArc[nIn]
4444
"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?";
4745
Boolean disPlaceIn[nIn]
4846
"Are the input places discrete or continuous? true=discrete";
4947
Boolean disPlaceOut[nOut]
@@ -62,6 +60,8 @@ protected
6260
Boolean enabledByOutPlaces = Functions.OddsAndEnds.allTrue(enableOut);
6361
//****BLOCKS END****//
6462
public
63+
Boolean active "Is the transition active?";
64+
Boolean fire "Does the transition fire?";
6565
PNlib.Interfaces.TransitionIn inPlaces[nIn](
6666
each active=delayPassed,
6767
arcWeight=arcWeightIn,

0 commit comments

Comments
 (0)