Module: Roby::DRoby::V5::Actions::Models::InterfaceActionDumper

Included in:
CoordinationActionDumper, MethodActionDumper
Defined in:
lib/roby/droby/v5/droby_dump.rb

Instance Method Summary collapse

Instance Method Details

#droby_dump!(peer) ⇒ Object



707
708
709
710
# File 'lib/roby/droby/v5/droby_dump.rb', line 707

def droby_dump!(peer)
    super
    @action_interface_model = peer.dump(action_interface_model)
end

#proxy_from_existing(peer) ⇒ Object



712
713
714
715
716
717
718
719
720
721
722
# File 'lib/roby/droby/v5/droby_dump.rb', line 712

def proxy_from_existing(peer)
    interface_model = peer.local_object(@action_interface_model)
    if action = interface_model.find_action_by_name(name)
        # Load the return type and the default values, we must
        # make sure that any dumped droby-identifiable object
        # is loaded nonetheless
        peer.local_model(returned_type)
        arguments.each { |arg| peer.local_object(arg.default) }
    end
    return action, interface_model
end