Sha256: 0cd0584713f43597062e87f67030e4781743b22f4e270ec5af405e0e12a78a14

Contents?: true

Size: 485 Bytes

Versions: 2

Compression:

Stored size: 485 Bytes

Contents

module SPNet

# Output signal values to a connected SignalInPort object.
#
# @author James Tunnell
class SignalOutPort < OutPort

  # A new instance of SignalOutPort.
  def initialize
    super(:matching_class => SignalInPort)
  end
  
  # If linked, return the result of calling the connected SignalInPort object's
  # enqueue_values method. Otherwise, return false.
  def send_values values
    if linked?
      @link.to.enqueue_values values
    end
    return false
  end

end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spnet-0.1.6 lib/spnet/ports/signal_out_port.rb
spnet-0.1.5 lib/spnet/ports/signal_out_port.rb