class Roby::DRoby::V5::Models::TaskDumper::DRoby

Attributes

arguments[R]
events[R]

Public Class Methods

new(name, remote_siblings, arguments, supermodel, provided_models, events) click to toggle source
Calls superclass method
# File lib/roby/droby/v5/droby_dump.rb, line 221
def initialize(name, remote_siblings, arguments, supermodel, provided_models, events)
    super(name, remote_siblings, supermodel, provided_models)
    @arguments = arguments
    @events = events
end

Public Instance Methods

unmarshal_dependent_models(peer) click to toggle source
Calls superclass method
# File lib/roby/droby/v5/droby_dump.rb, line 227
def unmarshal_dependent_models(peer)
    super

    @arguments.each do |name, has_default, default, doc|
        if has_default
            peer.local_object(default)
        end
    end
end
update(peer, local_object, fresh_proxy: false) click to toggle source
# File lib/roby/droby/v5/droby_dump.rb, line 237
def update(peer, local_object, fresh_proxy: false)
    if @argument_set # Backward compatibility
        arguments = @argument_set.map { |name| [name, false, nil, nil] }
    end

    @arguments.each do |name, has_default, default, doc|
        if !local_object.has_argument?(name)
            if !has_default
                default = Roby::Models::Task::NO_DEFAULT_ARGUMENT 
            end
            local_object.argument name, default: peer.local_object(default), doc: doc
        end
    end
    events.each do |name, controlable, terminal|
        if !local_object.has_event?(name)
            local_object.event name, controlable: controlable, terminal: terminal
        end
    end
end