y_petri 2.1.47 → 2.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/y_petri/agent/petri_net_related.rb +3 -3
- data/lib/y_petri/dsl.rb +1 -1
- data/lib/y_petri/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22e07a4b0bde5e3423b1a31e6d3aba99fca58465
|
4
|
+
data.tar.gz: 0608ccca5fc22eaf01236c818ef7e8611044284d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abcd6a24e846d30d1ca85332205727a673110953b336e329eaaa9e4c95e2cca10fe171ec829fb6e071baf38818bdffee489a0c6702c473bba2b427a94a9846bd
|
7
|
+
data.tar.gz: cb6dcf85b7e03c2d7d7b4b63375c56a17ff351200def7ec727f5f836821081bc6740469e84a584795221e742af325dacc851f80ee56109ccd553155333ecc472
|
@@ -77,7 +77,7 @@ module YPetri::Agent::PetriNetRelated
|
|
77
77
|
# Timed transition constructor: Creates a new timed transition in the current
|
78
78
|
# world. Rate closure has to be supplied as a block.
|
79
79
|
#
|
80
|
-
def
|
80
|
+
def TT( *ordered, **named, &block )
|
81
81
|
fail ArgumentError, "Timed transition constructor requires a block " +
|
82
82
|
"defining the rate function!" unless block
|
83
83
|
world.Transition.send( :new, *ordered, **named.update( rate: block ) )
|
@@ -93,14 +93,14 @@ module YPetri::Agent::PetriNetRelated
|
|
93
93
|
stoichiometry.has? :name, syn!: :ɴn
|
94
94
|
args.update domain: stoichiometry.delete( :domain ) if
|
95
95
|
stoichiometry.has? :domain
|
96
|
-
|
96
|
+
TT **args, &block
|
97
97
|
end
|
98
98
|
|
99
99
|
# Assignment transition constructor: Creates a new assignment transition in
|
100
100
|
# the current world. Ordered arguments are collected as codomain. Domain key
|
101
101
|
# (+:domain) is optional. Assignment closure must be supplied in a block.
|
102
102
|
#
|
103
|
-
def
|
103
|
+
def AT( *codomain, **nn, &block )
|
104
104
|
fail ArgumentError, "Assignment transition constructor requires a block " +
|
105
105
|
"defining the assignment function!" unless block
|
106
106
|
world.Transition.send( :new,
|
data/lib/y_petri/dsl.rb
CHANGED
data/lib/y_petri/version.rb
CHANGED