class SPNet::ParamOutPort

Output value to a connected ParamInPort object.

@author James Tunnell

Public Class Methods

new() click to toggle source

A new instance of ParamOutPort.

Calls superclass method SPNet::OutPort::new
# File lib/spnet/ports/param_out_port.rb, line 9
def initialize
  super(:matching_class => ParamInPort)
end

Public Instance Methods

get_value() click to toggle source

If linked, return the result of calling the connected ParamInPort object's get_value method. Otherwise, return false.

# File lib/spnet/ports/param_out_port.rb, line 24
def get_value
  if linked?
    return @link.to.get_value
  end
  return false
end
set_value(value) click to toggle source

If linked, return the result of calling the connected ParamInPort object's set_value method. Otherwise, return false.

# File lib/spnet/ports/param_out_port.rb, line 15
def set_value value
  if linked?
    return @link.to.set_value value
  end
  return false
end