Sha256: 6749aa73152ac446d9ecdaaae223078628c8327ceeb4f5858735c8586057748f

Contents?: true

Size: 344 Bytes

Versions: 39

Compression:

Stored size: 344 Bytes

Contents

#encoding: utf-8

require 'y_petri'
include YPetri

A = Place( default_marking: 0.5 )
B = Place( default_marking: 0.5 )
A_pump = Transition( stoichiometry: { A: -1 }, rate: proc { 0.005 } )
B_decay = Transition( stoichiometry: { B: -1 }, rate: 0.05 )
net
run!
simulation
places.map &:marking
simulation.settings
print_recording
plot_state; nil

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
y_petri-2.2.4 test/examples/example_2.rb
y_petri-2.2.3 test/examples/example_2.rb
y_petri-2.2.2 test/examples/example_2.rb
y_petri-2.2.1 test/examples/example_2.rb
y_petri-2.2.0 test/examples/example_2.rb
y_petri-2.1.51 test/examples/example_2.rb
y_petri-2.1.50 test/examples/example_2.rb
y_petri-2.1.49 test/examples/example_2.rb
y_petri-2.1.48 test/examples/example_2.rb
y_petri-2.1.47 test/examples/example_2.rb
y_petri-2.1.46 test/examples/example_2.rb
y_petri-2.1.45 test/examples/example_2.rb
y_petri-2.1.44 test/examples/example_2.rb
y_petri-2.1.42 test/examples/example_2.rb
y_petri-2.1.40 test/examples/example_2.rb
y_petri-2.1.39 test/examples/example_2.rb
y_petri-2.1.37 test/examples/example_2.rb
y_petri-2.1.36 test/examples/example_2.rb
y_petri-2.1.35 test/examples/example_2.rb
y_petri-2.1.34 test/examples/example_2.rb