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

Inherits:
ActionConnector show all
Defined in:
lib/roby/interface/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.



91
92
93
# File 'lib/roby/interface/async/ui_connector.rb', line 91

def callback
  @callback
end

Instance Method Details

#connectObject



93
94
95
96
97
# File 'lib/roby/interface/async/ui_connector.rb', line 93

def connect
    action.on_progress do
        update
    end
end

#updateObject



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

def update
    callback.call(action)
end