lib/cell_cycle/simple.rb in cell_cycle-0.0.3 vs lib/cell_cycle/simple.rb in cell_cycle-0.1.1

- old
+ new

@@ -4,12 +4,11 @@ # (A_phase, S_phase, Cdc20A). A_phase is the phase when the cell cycle enzyme # machinery is synthesized. S_phase has the standard meaning: DNA synthesis # phase. Cdc20A represents the APC (Anaphase Promoting Complex). When present, # it degrades the cell cycle enzyme machinery. -require 'y_nelson' and include YNelson -require 'sy' +require 'cell_cycle' # Constants that control the cell cycle settings. S_phase_duration = 12.h S_phase_start = 5.h S_phase_end = S_phase_start + S_phase_duration @@ -48,10 +47,10 @@ A_phase = Place m!: 0 S_phase = Place m!: 0 Cdc20A = Place m!: 1 # Include them in the CELL_CYCLE net. -CELL_CYCLE = Net() << Timer << Clock << A_phase << S_phase << Cdc20A +CELL_CYCLE << Timer << Clock << A_phase << S_phase << Cdc20A # Assignment transitions that control the state of the places A_phase, S_phase # and Cdc20A. # A_phase_ϝ = Transition assignment: -> t { t > Aα && t < Aω ? 1 : 0 },