module YPetri::Simulation::TransitionRepresentation::Type_Ts

Attributes

gradient_closure[R]

Public Instance Methods

gradient_all()
Alias for:
init() click to toggle source

Initialization subroutine.

# File lib/y_petri/simulation/transition_representation/Ts.rb, line 14
def init
  super
  @gradient_closure = to_gradient_closure
end
to_gradient_closure() click to toggle source

Builds a gradient closure.

# File lib/y_petri/simulation/transition_representation/Ts.rb, line 28
def to_gradient_closure
  build_closure
end
() click to toggle source

Gradient contribution of the transition to all places.

# File lib/y_petri/simulation/transition_representation/Ts.rb, line 21
def 
  codomain >> gradient_closure.call
end
Also aliased as: gradient_all