Sha256: 4bdc54bc906a37ef0be53376ad3aad9445add967082df2a8c818d8ced6bba778

Contents?: true

Size: 709 Bytes

Versions: 39

Compression:

Stored size: 709 Bytes

Contents

#encoding: utf-8

# A mixin for collections of T transitions.
# 
class YPetri::Simulation::Transitions
  module Type_T
    include Type_a

    # T transitions have gradient closures.
    # 
    def gradient_closures
      map &:gradient_closure
    end

    # Gradient by the T transitions.
    # 
    def gradient
      Ts().gradient + TS().gradient
    end

    # State change of free places if the timed transitions fire for given time.
    # 
    def delta Δt
      gradient * Δt
    end

    # State change of all places if the timed transitions fire for given time.
    # 
    def Δ Δt
      ∇ * Δt
    end
    alias delta_all Δ
  end # module Type_T
end # class YPetri::Simulation::Transitions

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
y_petri-2.2.4 lib/y_petri/simulation/transitions/T.rb
y_petri-2.2.3 lib/y_petri/simulation/transitions/T.rb
y_petri-2.2.2 lib/y_petri/simulation/transitions/T.rb
y_petri-2.2.1 lib/y_petri/simulation/transitions/T.rb
y_petri-2.2.0 lib/y_petri/simulation/transitions/T.rb
y_petri-2.1.51 lib/y_petri/simulation/transitions/T.rb
y_petri-2.1.50 lib/y_petri/simulation/transitions/T.rb
y_petri-2.1.49 lib/y_petri/simulation/transitions/T.rb
y_petri-2.1.48 lib/y_petri/simulation/transitions/T.rb
y_petri-2.1.47 lib/y_petri/simulation/transitions/T.rb
y_petri-2.1.46 lib/y_petri/simulation/transitions/T.rb
y_petri-2.1.45 lib/y_petri/simulation/transitions/T.rb
y_petri-2.1.44 lib/y_petri/simulation/transitions/T.rb
y_petri-2.1.42 lib/y_petri/simulation/transitions/T.rb
y_petri-2.1.40 lib/y_petri/simulation/transitions/T.rb
y_petri-2.1.39 lib/y_petri/simulation/transitions/T.rb
y_petri-2.1.37 lib/y_petri/simulation/transitions/T.rb
y_petri-2.1.36 lib/y_petri/simulation/transitions/T.rb
y_petri-2.1.35 lib/y_petri/simulation/transitions/T.rb
y_petri-2.1.34 lib/y_petri/simulation/transitions/T.rb