Module: Syskit::Coordination::TransactionExtension
- Defined in:
- lib/syskit/coordination/transaction_extension.rb
Overview
Extension module for Roby::Transaction
Instance Method Summary collapse
-
#apply_modifications_to_plan ⇒ Object
Hook called to apply the modifications stored in self to the underlying plan.
Instance Method Details
#apply_modifications_to_plan ⇒ Object
Hook called to apply the modifications stored in self to the underlying 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 |