Class: Roby::TaskEventGenerator

Inherits:
Object
  • Object
show all
Includes:
ConflictEventHandling, Roby::TaskStructure::ExecutionAgentStart
Defined in:
lib/roby/distributed/proxy.rb,
lib/roby/relations/error_handling.rb

Defined Under Namespace

Classes: DRoby, DRoby

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Roby::TaskStructure::ExecutionAgentStart

#calling

Methods included from ConflictEventHandling

#calling, #fired

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