module Roby::Transaction::PlanServiceProxy

Public Instance Methods

commit_transaction() click to toggle source
Calls superclass method
# File lib/roby/transaction/plan_service_proxy.rb, line 22
def commit_transaction
    super

    replacement_handlers.each do |h|
        __getobj__.on_replacement(&h)
    end
    plan_status_handlers.each do |h|
        __getobj__.on_plan_status_change(&h)
    end
    event_handlers.each do |event, handlers|
        handlers.each do |h|
            __getobj__.on(event, &h)
        end
    end
    finalization_handlers.each do |h|
        __getobj__.when_finalized(&h)
    end
end
on_plan_status_change(&handler) click to toggle source
# File lib/roby/transaction/plan_service_proxy.rb, line 18
def on_plan_status_change(&handler)
    plan_status_handlers << handler
end
setup_proxy(object, plan) click to toggle source
Calls superclass method
# File lib/roby/transaction/plan_service_proxy.rb, line 10
def setup_proxy(object, plan)
    super
    finalization_handlers.clear
    event_handlers.clear
    plan_status_handlers.clear
    replacement_handlers.clear
end
task=(new_task) click to toggle source
# File lib/roby/transaction/plan_service_proxy.rb, line 6
def task=(new_task)
    @task = new_task
end