class Orocos::InputWriter

Local output port that is specifically designed to write to another task's input port

Attributes

policy[RW]

The policy of the connection

port[RW]

The port this object is reading from

Public Instance Methods

disconnect() click to toggle source

Disconnects this port from the port it is reading

# File lib/orocos/input_writer.rb, line 11
def disconnect
    disconnect_all
end
write(data) click to toggle source

Write data on the associated input port

@raise [CORBA::ComError] if the remote process is known to be dead. This is only possible if the remote deployment has been started by this Ruby instance

# File lib/orocos/input_writer.rb, line 20
def write(data)
    if process = port.task.process
        if !process.alive?
            disconnect_all
            raise CORBA::ComError, "remote end is dead"
        end
    end
    if !super
        raise CORBA::ComError, "remote end was disconnected"
    else true
    end
end