Skip to content

Commit 606a2bc

Browse files
committed
[#328] [stbx-core] Rename buildTokens to buildTransitionMarking.
1 parent e33fd32 commit 606a2bc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stbx-core/src/Statebox/Core/Transition.purs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ type Tokens = Int
3030

3131
--------------------------------------------------------------------------------
3232

33-
buildTokens :: a. Ord a => ArrayMultiset a -> ArrayMultiset a -> TransitionF a Tokens
34-
buildTokens pre post =
33+
buildTransitionMarking :: a. Ord a => ArrayMultiset a -> ArrayMultiset a -> TransitionF a Tokens
34+
buildTransitionMarking pre post =
3535
{ pre: buildPlaceMarkings pre
3636
, post: buildPlaceMarkings post
3737
}

stbx-core/src/Statebox/Core/WiringTree.purs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Data.Tuple.Nested ((/\))
1010

1111
import Data.ArrayMultiset (ArrayMultiset)
1212
import Data.Petrinet.Representation.NLL (ErrNetEncoding, TransitionF', fromNLL)
13-
import Statebox.Core.Transition (Glued(..), Transition, buildTokens, isInitial, isFinal)
13+
import Statebox.Core.Transition (Glued(..), Transition, buildTransitionMarking, isInitial, isFinal)
1414
import Statebox.Core.Types (Diagram, Net, PID, TID, Wiring)
1515

1616
data WiringTree
@@ -49,7 +49,7 @@ buildGluedTransition tid (pre /\ post) name =
4949
_ , [] -> Final gluedTransition
5050
_ , _ -> Untouched gluedTransition
5151
where
52-
gluedTransition = { name, path, transition: tid, tokens: buildTokens pre post }
52+
gluedTransition = { name, path, transition: tid, tokens: buildTransitionMarking pre post }
5353
path = [netIndex, diagramIndex, 0] -- path to trivial diagram that is assumed to exist
5454
diagramIndex = 0
5555
netIndex = 0

0 commit comments

Comments
 (0)