class Syskit::PortAccessor

Base class for output reader/input writer

Attributes

actual_port[R]

The actual port, when resolved. This is the port on the TaskContext object that actually serves the data @return [Syskit::OutputPort]

policy[R]

The connection policy

port[R]

The port for which this is a writer @return [Syskit::OutputPort]

resolved_port[R]

The port actually resolved. This is different from port if port is on an abstract task that got replaced @return [Syskit::OutputPort]

Public Class Methods

new(port, policy = Hash.new) click to toggle source
# File lib/syskit/port.rb, line 215
def initialize(port, policy = Hash.new)
    @port = port.to_component_port
    @policy = policy
    @disconnected = false
    schedule_resolution(@port) do |resolved_port, _|
        @resolved_port = resolved_port
    end
end