Class: Syskit::DRoby::V5::ComBusDumper::DRoby
- Inherits:
-
Roby::DRoby::V5::DRobyModel
- Object
- Roby::DRoby::V5::DRobyModel
- Syskit::DRoby::V5::ComBusDumper::DRoby
- Defined in:
- lib/syskit/droby/v5/droby_dump.rb
Instance Attribute Summary collapse
-
#lazy_dispatch ⇒ Object
readonly
Returns the value of attribute lazy_dispatch.
-
#message_type ⇒ Object
readonly
Returns the value of attribute message_type.
Instance Method Summary collapse
- #create_new_proxy_model(peer) ⇒ Object
-
#initialize(message_type, lazy_dispatch, *args) ⇒ DRoby
constructor
A new instance of DRoby.
Constructor Details
#initialize(message_type, lazy_dispatch, *args) ⇒ DRoby
Returns a new instance of DRoby
78 79 80 81 82 |
# File 'lib/syskit/droby/v5/droby_dump.rb', line 78 def initialize(, lazy_dispatch, *args) @message_type = @lazy_dispatch = lazy_dispatch super(*args) end |
Instance Attribute Details
#lazy_dispatch ⇒ Object (readonly)
Returns the value of attribute lazy_dispatch
76 77 78 |
# File 'lib/syskit/droby/v5/droby_dump.rb', line 76 def lazy_dispatch @lazy_dispatch end |
#message_type ⇒ Object (readonly)
Returns the value of attribute message_type
75 76 77 |
# File 'lib/syskit/droby/v5/droby_dump.rb', line 75 def @message_type end |
Instance Method Details
#create_new_proxy_model(peer) ⇒ Object
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/syskit/droby/v5/droby_dump.rb', line 84 def create_new_proxy_model(peer) supermodel = peer.local_model(self.supermodel) # 2016-05: workaround broken log files in which types # are marshalled as strings instead of type # objects if .respond_to?(:to_str) = Roby.app.default_loader.resolve_type(self., define_dummy_type: true) else = peer.local_object(self.) end # We unfortunately must register the type on the global # loader. We're not ready yet for a fully mixed-loader # setup Roby.app.default_loader.register_type_model() local_model = supermodel.new_submodel(name: name, lazy_dispatch: lazy_dispatch, message_type: ) peer.register_model(local_model, remote_siblings) local_model end |