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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dfddc6ced509606c4f4f8b4bd6fb55e17002f336
4
- data.tar.gz: b1c0ba4a9b0cfa73ebeb6a0e7730e3dbb0b1ba31
3
+ metadata.gz: 22e07a4b0bde5e3423b1a31e6d3aba99fca58465
4
+ data.tar.gz: 0608ccca5fc22eaf01236c818ef7e8611044284d
5
5
  SHA512:
6
- metadata.gz: 12152cc39d1fc4259d56705fded129bb5c475d1223d949c8e6b58224670338c745989e1dacdb7ba4b4ce89b14b90310c8bf41bcd2e2dbe64842433c57de043f6
7
- data.tar.gz: 460307f2c328568e56e3e384562bd2d2075d5987215fd0882964a91aa37708876cd3666b9880e4cb57b20745fe7e645358206b082f05b00e731121f4b058a3a6
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 T( *ordered, **named, &block )
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
- T **args, &block
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 A( *codomain, **nn, &block )
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
@@ -12,7 +12,7 @@ module YPetri
12
12
 
13
13
  # Petri net aspect.
14
14
  delegate :Place,
15
- :Transition, :T, :A,
15
+ :Transition, :TT, :TS, :AT,
16
16
  :Net,
17
17
  :place, :transition, :pl, :tr,
18
18
  :places, :transitions, :nets,
@@ -1,4 +1,4 @@
1
1
  module YPetri
2
- VERSION = "2.1.47"
2
+ VERSION = "2.1.48"
3
3
  DEBUG = false
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: y_petri
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.47
4
+ version: 2.1.48
5
5
  platform: ruby
6
6
  authors:
7
7
  - boris