Module: Roby::Transactions::PlanObjectUpdates
- Included in:
- PlanObject
- Defined in:
- lib/roby/transactions/updates.rb
Instance Method Summary collapse
- #adding_child_object(child, relations, info) ⇒ Object
- #removing_child_object(child, relations) ⇒ Object
Instance Method Details
#adding_child_object(child, relations, info) ⇒ Object
113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/roby/transactions/updates.rb', line 113 def adding_child_object(child, relations, info) super if defined? super return if !plan for trsc in plan.transactions next unless trsc. if (parent_proxy = trsc[self, false]) && (child_proxy = trsc[child, false]) trsc.adding_plan_relation(parent_proxy, child_proxy, relations, info) end end end |
#removing_child_object(child, relations) ⇒ Object
124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/roby/transactions/updates.rb', line 124 def removing_child_object(child, relations) super if defined? super return if !plan plan.transactions.each do |trsc| next unless trsc. if (parent_proxy = trsc[self, false]) && (child_proxy = trsc[child, false]) trsc.removing_plan_relation(parent_proxy, child_proxy, relations) end end end |