Class: Syskit::OutputPort
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Port
Instance Method Summary collapse
-
#each_concrete_connection ⇒ Object
Enumerates all ports connected to this one.
-
#each_connection ⇒ Object
Enumerates all ports connected to this one.
- #output? ⇒ Boolean
- #reader(policy = Hash.new) ⇒ Object
- #to_data_source ⇒ Object
Methods inherited from Port
#==, #connect_to, #connected?, #connected_to?, #disconnect_from, #eql?, #hash, #initialize, #input?, #inspect, #name, #new_sample, #pretty_print, #static?, #to_actual_port, #to_component_port, #to_orocos_port, #to_s, #type
Constructor Details
This class inherits a constructor from Syskit::Port
Instance Method Details
#each_concrete_connection ⇒ Object
Enumerates all ports connected to this one
188 189 190 191 192 193 194 |
# File 'lib/syskit/port.rb', line 188 def each_concrete_connection port = to_component_port port.component.each_concrete_output_connection(port.name) do |_, in_port_name, in_task, policy| yield(in_task.find_input_port(in_port_name), policy) end self end |
#each_connection ⇒ Object
Enumerates all ports connected to this one
179 180 181 182 183 184 185 |
# File 'lib/syskit/port.rb', line 179 def each_connection port = to_component_port port.component.each_output_connection(port.name) do |_, in_port_name, in_task, policy| yield(in_task.find_input_port(in_port_name), policy) end self end |
#output? ⇒ Boolean
196 |
# File 'lib/syskit/port.rb', line 196 def output?; true end |
#reader(policy = Hash.new) ⇒ Object
174 175 176 |
# File 'lib/syskit/port.rb', line 174 def reader(policy = Hash.new) OutputReader.new(self, policy) end |
#to_data_source ⇒ Object
170 171 172 |
# File 'lib/syskit/port.rb', line 170 def to_data_source OutputReader.new(self) end |