Class: Syskit::DRoby::V5::ProfileDumper::DRoby
- Inherits:
-
Roby::DRoby::V5::DistributedObjectDumper::DRoby
- Object
- Roby::DRoby::V5::DistributedObjectDumper::DRoby
- Syskit::DRoby::V5::ProfileDumper::DRoby
- Defined in:
- lib/syskit/droby/v5/droby_dump.rb
Instance Method Summary collapse
-
#initialize(name, remote_siblings) ⇒ DRoby
constructor
A new instance of DRoby.
- #proxy(peer) ⇒ Object
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 |