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



700
701
702
703
# File 'lib/roby/droby/v5/droby_dump.rb', line 700

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

#proxy_from_existing(peer) ⇒ Object



705
706
707
708
709
710
711
712
713
714
715
# File 'lib/roby/droby/v5/droby_dump.rb', line 705

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
    [action, interface_model]
end