Class: Syskit::Models::InputPort

Inherits:
Port show all
Defined in:
lib/syskit/models/port.rb

Constant Summary

Constants inherited from Port

Port::OROGEN_MODEL_EXCLUDED_FORWARDINGS

Instance Attribute Summary

Attributes inherited from Port

#component_model, #max_sizes, #name, #orogen_model, #type

Instance Method Summary collapse

Methods inherited from Port

#==, #attach, #can_connect_to?, #connect_to, #connected_to?, #initialize, #instanciate, #max_marshalling_size, #method_missing, #new_sample, #output?, #pretty_print, #resolve_data_source, #respond_to_missing?, #same_port?, #short_name, #static?, #to_component_port, #to_orocos_port, #to_s, #try_to_component_port

Constructor Details

This class inherits a constructor from Syskit::Models::Port

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Syskit::Models::Port

Instance Method Details

#bind(component) ⇒ Object



247
248
249
# File 'lib/syskit/models/port.rb', line 247

def bind(component)
    Syskit::InputPort.new(self, component_model.bind(component))
end

#input?Boolean

Returns:

  • (Boolean)


255
# File 'lib/syskit/models/port.rb', line 255

def input?; true end

#multiplexes?Boolean

Return true if the underlying port multiplexes, i.e. if it is an input port that is expected to have multiple inbound connections

Returns:

  • (Boolean)


243
244
245
# File 'lib/syskit/models/port.rb', line 243

def multiplexes?
    orogen_model.multiplexes?
end

#writer(policy = Hash.new) ⇒ Object



251
252
253
# File 'lib/syskit/models/port.rb', line 251

def writer(policy = Hash.new)
    InputWriter.new(self, policy)
end