class Syskit::Models::OutputReader
Attributes
policy[R]
port[R]
Public Class Methods
new(port, policy = Hash.new)
click to toggle source
# File lib/syskit/models/port.rb, line 262 def initialize(port, policy = Hash.new) @port = port @policy = policy end
Public Instance Methods
==(other)
click to toggle source
# File lib/syskit/models/port.rb, line 269 def ==(other) other.port == port && other.policy == policy end
bind(port_or_task)
click to toggle source
# File lib/syskit/models/port.rb, line 273 def bind(port_or_task) if port_or_task.respond_to?(:reader) port_or_task.reader(policy) else port.bind(port_or_task).reader(policy) end end
eql?(other)
click to toggle source
# File lib/syskit/models/port.rb, line 268 def eql?(other); self == other end
hash()
click to toggle source
# File lib/syskit/models/port.rb, line 267 def hash; [port, policy].hash end
instanciate(plan)
click to toggle source
# File lib/syskit/models/port.rb, line 281 def instanciate(plan) port.instanciate(plan).reader(policy) end