Class: Roby::Interface::V1::Async::UIConnector::ProgressMonitorCommand

Inherits:
ActionConnector show all
Defined in:
lib/roby/interface/v1/async/ui_connector.rb

Instance Attribute Summary collapse

Attributes inherited from ActionConnector

#action, #connector, #options

Instance Method Summary collapse

Methods inherited from ActionConnector

#interface

Instance Attribute Details

#callbackObject

Returns the value of attribute callback.



96
97
98
# File 'lib/roby/interface/v1/async/ui_connector.rb', line 96

def callback
  @callback
end

Instance Method Details

#connectObject



98
99
100
101
102
# File 'lib/roby/interface/v1/async/ui_connector.rb', line 98

def connect
    action.on_progress do
        update
    end
end

#updateObject



104
105
106
# File 'lib/roby/interface/v1/async/ui_connector.rb', line 104

def update
    callback.call(action)
end