Class: Orocos::Async::CORBA::InputWriter

Inherits:
ObjectBase
  • Object
show all
Extended by:
Utilrb::EventLoop::Forwardable
Defined in:
lib/orocos/async/ports.rb

Instance Attribute Summary

Attributes inherited from ObjectBase

#emitting, #event_loop, #name, #options, #pending_adds

Instance Method Summary collapse

Methods inherited from ObjectBase

#add_listener, define_event, define_events, #disable_emitting, #event, event_names, #event_names, #invalidate_delegator!, #listener?, #listeners, #number_of_listeners, #on_event, #proxy_event, #reachable!, #reachable?, #really_add_listener, #remove_all_listeners, #remove_listener, #remove_proxy_event, #valid_delegator?, valid_event?, #valid_event?, validate_event, #validate_event, #wait

Constructor Details

#initialize(port, writer, options = Hash.new) ⇒ InputWriter

Returns a new instance of InputWriter



156
157
158
159
160
161
162
# File 'lib/orocos/async/ports.rb', line 156

def initialize(port,writer,options=Hash.new)
    super(port.name,port.event_loop)
    @port = port
    disable_emitting do
        reachable!(writer)
    end
end

Instance Method Details

#unreachable!(options = Hash.new) ⇒ Object



164
165
166
167
# File 'lib/orocos/async/ports.rb', line 164

def unreachable!(options = Hash.new)
    @delegator_obj.disconnect if valid_delegator?
    super
end