Sha256: 61501be7de60e1b54eb1dd69c52915f6121fea3624e1c822739ed52db986ead3

Contents?: true

Size: 517 Bytes

Versions: 4

Compression:

Stored size: 517 Bytes

Contents

module Roby::TaskStructure
    class Roby::TaskEventGenerator
	# Mark this event as being handled by the task +task+
	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
    end

    relation :ErrorHandling, :child_name => :error_handler do
	def failed_task
	    each_parent_object(ErrorHandling) do |task|
		return task
	    end
	    nil
	end
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
roby-0.7.1 lib/roby/relations/error_handling.rb
roby-0.7.2 lib/roby/relations/error_handling.rb
roby-0.7 lib/roby/relations/error_handling.rb
roby-0.7.3 lib/roby/relations/error_handling.rb