Module: Syskit::Coordination::TransactionExtension

Defined in:
lib/syskit/coordination/transaction_extension.rb

Overview

Extension module for Roby::Transaction

Instance Method Summary collapse

Instance Method Details

#apply_modifications_to_planObject

Hook called to apply the modifications stored in self to the underlying plan

See Also:

  • Roby::Transaction#apply_modifications_to_plan


9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/syskit/coordination/transaction_extension.rb', line 9

def apply_modifications_to_plan
    super

    # We add the data monitoring tables to the underlying plan. We
    # have to make sure to only add tables that are not tied to a
    # fault response table, as those are already passed on by the
    # table itself
    from_fault_response_table = Set.new
    active_fault_response_tables.each do |tbl|
        from_fault_response_table |= tbl.data_monitoring_tables.to_set
    end
    data_monitoring_tables.each do |tbl|
        if !from_fault_response_table.include?(tbl)
            plan.use_data_monitoring_table tbl.model, tbl.arguments
        end
    end
end