Class: Roby::TaskEventGenerator
- Defined in:
- lib/roby/distributed/proxy.rb,
lib/roby/relations/error_handling.rb
Defined Under Namespace
Class Method Summary collapse
-
._load(str) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#_dump(lvl) ⇒ Object
:nodoc:.
-
#droby_dump(dest) ⇒ Object
Returns an intermediate representation of
selfsuitable to be sent to thedestpeer. -
#handle_with(repairing_task) ⇒ Object
Mark this event as being handled by the task
task.
Methods included from Roby::TaskStructure::ExecutionAgentStart
Methods included from ConflictEventHandling
Class Method Details
._load(str) ⇒ Object
:nodoc:
150 151 152 |
# File 'lib/roby/distributed/proxy.rb', line 150 def self._load(str) # :nodoc: Marshal.load(str) end |
Instance Method Details
#_dump(lvl) ⇒ Object
:nodoc:
147 148 149 |
# File 'lib/roby/distributed/proxy.rb', line 147 def _dump(lvl) # :nodoc: Marshal.dump(remote_id) end |
#droby_dump(dest) ⇒ Object
Returns an intermediate representation of self suitable to be sent to the dest peer.
156 157 158 |
# File 'lib/roby/distributed/proxy.rb', line 156 def droby_dump(dest) DRoby.new(controlable?, happened?, Distributed.format(task, dest), symbol) end |
#handle_with(repairing_task) ⇒ Object
Mark this event as being handled by the task task
5 6 7 8 9 10 11 |
# File 'lib/roby/relations/error_handling.rb', line 5 def handle_with(repairing_task) if !task.child_object?(repairing_task, ErrorHandling) task.add_error_handler repairing_task, ValueSet.new end task[repairing_task, ErrorHandling] << symbol end |