Class: Syskit::PortAccessor
Overview
Base class for output reader/input writer
Direct Known Subclasses
Instance Attribute Summary collapse
-
#actual_port ⇒ Syskit::OutputPort
readonly
The actual port, when resolved.
-
#policy ⇒ Object
readonly
The connection policy.
-
#port ⇒ Syskit::OutputPort
readonly
The port for which this is a writer.
-
#resolved_port ⇒ Syskit::OutputPort
readonly
The port actually resolved.
Instance Method Summary collapse
-
#initialize(port, policy = Hash.new) ⇒ PortAccessor
constructor
A new instance of PortAccessor.
Constructor Details
#initialize(port, policy = Hash.new) ⇒ PortAccessor
Returns a new instance of PortAccessor
215 216 217 218 219 220 221 222 |
# 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 |
Instance Attribute Details
#actual_port ⇒ Syskit::OutputPort (readonly)
The actual port, when resolved. This is the port on the TaskContext object that actually serves the data
211 212 213 |
# File 'lib/syskit/port.rb', line 211 def actual_port @actual_port end |
#policy ⇒ Object (readonly)
The connection policy
213 214 215 |
# File 'lib/syskit/port.rb', line 213 def policy @policy end |
#port ⇒ Syskit::OutputPort (readonly)
The port for which this is a writer
203 204 205 |
# File 'lib/syskit/port.rb', line 203 def port @port end |
#resolved_port ⇒ Syskit::OutputPort (readonly)
The port actually resolved. This is different from #port if #port is on an abstract task that got replaced
207 208 209 |
# File 'lib/syskit/port.rb', line 207 def resolved_port @resolved_port end |