Skip to content

Commit

Permalink
#12 doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Aug 10, 2023
1 parent 4275faa commit 8076b5a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/damsi/dfg.rb
Expand Up @@ -46,11 +46,12 @@ def msg(tex)
@ticks.push(@tick, "\\texttt{\\frenchspacing{}#{@op}: #{tex}}")
end

def send(vtx, arg, value)
# Send "data" through the "arc" to the vertex "vtx"
def send(vtx, arc, data)
@cells[vtx] = {} if @cells[vtx].nil?
@cells[vtx][arg] = value
@ticks.push(@tick, "\\texttt{\\frenchspacing{}#{@op}: \"#{value}\"#{vtx}.#{arg}}")
@log.debug("#{@tick}| #{value} -> #{vtx}.#{arg}")
@cells[vtx][arc] = data
@ticks.push(@tick, "\\texttt{\\frenchspacing{}#{@op}: \"#{data}\"#{vtx}.#{arc}}")
@log.debug("#{@tick}| #{data} -> #{vtx}.#{arc}")
end

def recv(vtx, &block)
Expand Down

0 comments on commit 8076b5a

Please sign in to comment.