Class: Syskit::InputPort
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.
- #input? ⇒ Boolean
- #writer(policy = Hash.new) ⇒ Object
Methods inherited from Port
#==, #connect_to, #connected?, #connected_to?, #disconnect_from, #eql?, #hash, #initialize, #inspect, #name, #new_sample, #output?, #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
158 159 160 161 162 163 164 |
# File 'lib/syskit/port.rb', line 158 def each_concrete_connection port = to_component_port port.component.each_concrete_input_connection(port.name) do |out_task, out_port_name, in_port_name, policy| yield(out_task.find_output_port(out_port_name), policy) end self end |
#each_connection ⇒ Object
Enumerates all ports connected to this one
145 146 147 148 149 150 151 |
# File 'lib/syskit/port.rb', line 145 def each_connection port = to_component_port port.component.each_input_connection(port.name) do |out_task, out_port_name, in_port_name, policy| yield(out_task.find_output_port(out_port_name), policy) end self end |
#input? ⇒ Boolean
166 |
# File 'lib/syskit/port.rb', line 166 def input?; true end |
#writer(policy = Hash.new) ⇒ Object
153 154 155 |
# File 'lib/syskit/port.rb', line 153 def writer(policy = Hash.new) InputWriter.new(self, policy) end |