com.orchestranetworks.service.extensions
Class AdaptationTreeOptimizerSpec_MutualizeCommons

java.lang.Object
  extended bycom.orchestranetworks.service.extensions.AdaptationTreeOptimizerSpec
      extended bycom.orchestranetworks.service.extensions.AdaptationTreeOptimizerSpec_MutualizeCommons

public class AdaptationTreeOptimizerSpec_MutualizeCommons
extends AdaptationTreeOptimizerSpec

Specifies an optimization by refactoring common values on an adaptations' tree.

The optimization is made by comparing each value for the adaptation specified and its children:

  1. Each node is checked and if all children have a common value, this common value is set into parent and all children values become INHERIT.
  2. The rule above applies only if it does not modify the resolved view of an instance if this one is activated or is an agreement.

For tables it compares each nodes of each record in children with the record of the same primary key in parent.


Constructor Summary
AdaptationTreeOptimizerSpec_MutualizeCommons(Adaptation anInstance, boolean includeDescendantsWithoutDelegated, boolean includeAllDescendants)
          Contructs a specification for factoring common values in an adaptations' tree.
 
Method Summary
 AdaptationTreeOptimizerIterator createOptimizerIterator(Session aSession)
          Builds an iterator for adaptation's tree optimization.
 
Methods inherited from class com.orchestranetworks.service.extensions.AdaptationTreeOptimizerSpec
getAdaptation, isIncludeAllDescendants, isIncludeDescendantsWithoutDelegated
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdaptationTreeOptimizerSpec_MutualizeCommons

public AdaptationTreeOptimizerSpec_MutualizeCommons(Adaptation anInstance,
                                                    boolean includeDescendantsWithoutDelegated,
                                                    boolean includeAllDescendants)
Contructs a specification for factoring common values in an adaptations' tree.

If parameters includeDescendantsWithoutDelegated and includeAllDescendants are both set to false, the optimization will concern only the adaptation instance specified and its children.

Parameters:
anInstance - top parent that is targeted by the optimization in the adaptations' tree.
includeDescendantsWithoutDelegated - includes all descendants excepted descendants of delegated adaptations.
includeAllDescendants - includes in the tree all adaptations even children of delegated adaptations.
Method Detail

createOptimizerIterator

public AdaptationTreeOptimizerIterator createOptimizerIterator(Session aSession)
Description copied from class: AdaptationTreeOptimizerSpec
Builds an iterator for adaptation's tree optimization.

Specified by:
createOptimizerIterator in class AdaptationTreeOptimizerSpec
Parameters:
aSession - session for running the optimization.


(report a bug)
EBX.Platform 4.5.3 [0607:0001]
Copyright Orchestra Networks 2000-2008. All rights reserved.