class Flowckerc::SolverClass::AtomExecContext
Public Class Methods
new(atom, parent)
click to toggle source
# File lib/flowckerc.rb, line 131 def initialize atom, parent @atom = atom @parent = parent end
Public Instance Methods
config(data={})
click to toggle source
# File lib/flowckerc.rb, line 152 def config data={} @atom.config = data end
inp(spec)
click to toggle source
# File lib/flowckerc.rb, line 142 def inp spec to_port = spec[:to] spec[:to] = [@atom.id, to_port] @parent.link spec end
name(atom_name)
click to toggle source
# File lib/flowckerc.rb, line 148 def name atom_name @parent.syms.add atom_name, @atom end
options()
click to toggle source
# File lib/flowckerc.rb, line 156 def options @parent.options end
out(spec)
click to toggle source
# File lib/flowckerc.rb, line 136 def out spec from_port = spec[:from] spec[:from] = [@atom.id, from_port] @parent.link spec end