class Syskit::Models::OutputPort

Public Instance Methods

bind(component) click to toggle source
# File lib/syskit/models/port.rb, line 228
def bind(component)
    Syskit::OutputPort.new(self, component_model.bind(component))
end
output?() click to toggle source
# File lib/syskit/models/port.rb, line 232
def output?; true end
reader(policy = Hash.new) click to toggle source
# File lib/syskit/models/port.rb, line 234
def reader(policy = Hash.new)
    OutputReader.new(self, policy)
end
to_state_variable_model(field, name) click to toggle source

This is needed to use the Port to represent a data source on the component's state as e.g.

state.position = Component.pose_samples_port
# File lib/syskit/models/port.rb, line 221
def to_state_variable_model(field, name)
    model = Roby::StateVariableModel.new(field, name)
    model.type = type
    model.data_source = self
    model
end