Sha256: 80fd1fd3e2dcd8de647eafeb9db20def503bf74213bdb9f3e6e260de79000c6c

Contents?: true

Size: 767 Bytes

Versions: 8

Compression:

Stored size: 767 Bytes

Contents

# encoding: utf-8

# Adaptation of Euler method for the systems possibly with timeless transitions
# and assignment transitions. Unlike +pseudo_euler+, which fires every step,
# +quasi_euler+ fires every time tick. Not implemented yet.
# 
module YPetri::Core::Timed::Ticked
  # Computes Δ for the period of Δt. Not mplemented yet.
  # 
  def delta Δt
    fail NotImplementedError, "QuasiEuler not implemented yet!"
  end


  # Makes a single step by Δt. Not implemented yet.
  # 
  def step! Δt=simulation.step_size
    fail NotImplementedError, "QuasiEuler not implemented yet!"
    # Now one would have to compare whichever comes first, time tick or the
    # end of Δt, and then again and again, until Δt is fired...
  end
end # YPetri::Core::Timed::Ticked

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
y_petri-2.4.9 lib/y_petri/core/timed/ticked.rb
y_petri-2.4.8 lib/y_petri/core/timed/ticked.rb
y_petri-2.4.6 lib/y_petri/core/timed/ticked.rb
y_petri-2.4.4 lib/y_petri/core/timed/ticked.rb
y_petri-2.4.3 lib/y_petri/core/timed/ticked.rb
y_petri-2.4.2 lib/y_petri/core/timed/ticked.rb
y_petri-2.4.0 lib/y_petri/core/timed/ticked.rb
y_petri-2.3.12 lib/y_petri/core/timed/ticked.rb