Class: Syskit::DRoby::V5::ProfileDumper::DRoby

Inherits:
Roby::DRoby::V5::DistributedObjectDumper::DRoby
  • Object
show all
Defined in:
lib/syskit/droby/v5/droby_dump.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, remote_siblings) ⇒ DRoby

Returns a new instance of DRoby



190
191
192
193
# File 'lib/syskit/droby/v5/droby_dump.rb', line 190

def initialize(name, remote_siblings)
    super(remote_siblings, [])
    @name = name
end

Instance Method Details

#proxy(peer) ⇒ Object



195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# File 'lib/syskit/droby/v5/droby_dump.rb', line 195

def proxy(peer)
    if !@name
        return Actions::Profile.new
    elsif local = peer.find_model_by_name(@name)
        return local
    end

    profile =
        begin
            constant(@name)
        rescue Exception
            Actions::Profile.new(@name)
        end

    peer.register_model(profile)
    profile
end