org.objectweb.dsrg.sofa.repository
Class CloneDependencyCalculator

java.lang.Object
  extended by org.objectweb.dsrg.sofa.repository.CloneDependencyCalculator

public class CloneDependencyCalculator
extends java.lang.Object

Class that searches for first class entities that given entity is dependent on. When cloning an entity, use this class to determine, which entities need also be cloned.


Constructor Summary
CloneDependencyCalculator()
           
 
Method Summary
static EntitiesSet seekDependencies(Architecture entity)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependencies(Architecture entity, EntitiesSet dl)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependencies(Aspect entity)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependencies(Aspect entity, EntitiesSet dl)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependencies(AssemblyDescriptor entity)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependencies(AssemblyDescriptor entity, EntitiesSet dl)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependencies(CodeBundle entity)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependencies(CodeBundle entity, EntitiesSet dl)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependencies(DeploymentPlan entity)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependencies(DeploymentPlan entity, EntitiesSet dl)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependencies(Frame entity)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependencies(Frame entity, EntitiesSet dl)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependencies(InterfaceType entity)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependencies(InterfaceType entity, EntitiesSet dl)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependencies(MicroComponent entity)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependencies(MicroComponent entity, EntitiesSet dl)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependenciesForUnknown(VersionedEntity entity)
          When cloning an entity, use this method to determine, which entities need also be cloned.
static EntitiesSet seekDependenciesForUnknown(VersionedEntity entity, EntitiesSet dl)
          When cloning an entity, use this method to determine, which entities need also be cloned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloneDependencyCalculator

public CloneDependencyCalculator()
Method Detail

seekDependenciesForUnknown

public static EntitiesSet seekDependenciesForUnknown(VersionedEntity entity)
                                              throws java.lang.IllegalArgumentException
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
Returns:
The set of entities, on that this entity depends.
Throws:
java.lang.IllegalArgumentException - Argument is not a first class repository entity.

seekDependenciesForUnknown

public static EntitiesSet seekDependenciesForUnknown(VersionedEntity entity,
                                                     EntitiesSet dl)
                                              throws java.lang.IllegalArgumentException
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
dl - Additional dependencies, that will be returned along entity's dependencies.
Returns:
The set of entities, on that this entity depends (+ additional dependencies if any).
Throws:
java.lang.IllegalArgumentException - Argument is not a first class repository entity.

seekDependencies

public static EntitiesSet seekDependencies(Architecture entity)
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
Returns:
The set of entities, on that this entity depends.

seekDependencies

public static EntitiesSet seekDependencies(Architecture entity,
                                           EntitiesSet dl)
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
dl - Additional dependencies, that will be returned along entity's dependencies.
Returns:
The set of entities, on that this entity depends (+ additional dependencies if any).

seekDependencies

public static EntitiesSet seekDependencies(Frame entity)
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
Returns:
The set of entities, on that this entity depends.

seekDependencies

public static EntitiesSet seekDependencies(Frame entity,
                                           EntitiesSet dl)
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
dl - Additional dependencies, that will be returned along entity's dependencies.
Returns:
The set of entities, on that this entity depends (+ additional dependencies if any).

seekDependencies

public static EntitiesSet seekDependencies(Aspect entity)
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
Returns:
The set of entities, on that this entity depends.

seekDependencies

public static EntitiesSet seekDependencies(Aspect entity,
                                           EntitiesSet dl)
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
dl - Additional dependencies, that will be returned along entity's dependencies.
Returns:
The set of entities, on that this entity depends (+ additional dependencies if any).

seekDependencies

public static EntitiesSet seekDependencies(CodeBundle entity)
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
Returns:
The set of entities, on that this entity depends.

seekDependencies

public static EntitiesSet seekDependencies(CodeBundle entity,
                                           EntitiesSet dl)
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
dl - Additional dependencies, that will be returned along entity's dependencies.
Returns:
The set of entities, on that this entity depends (+ additional dependencies if any).

seekDependencies

public static EntitiesSet seekDependencies(AssemblyDescriptor entity)
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
Returns:
The set of entities, on that this entity depends.

seekDependencies

public static EntitiesSet seekDependencies(AssemblyDescriptor entity,
                                           EntitiesSet dl)
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
dl - Additional dependencies, that will be returned along entity's dependencies.
Returns:
The set of entities, on that this entity depends (+ additional dependencies if any).

seekDependencies

public static EntitiesSet seekDependencies(InterfaceType entity)
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
Returns:
The set of entities, on that this entity depends.

seekDependencies

public static EntitiesSet seekDependencies(InterfaceType entity,
                                           EntitiesSet dl)
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
dl - Additional dependencies, that will be returned along entity's dependencies.
Returns:
The set of entities, on that this entity depends (+ additional dependencies if any).

seekDependencies

public static EntitiesSet seekDependencies(DeploymentPlan entity)
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
Returns:
The set of entities, on that this entity depends.

seekDependencies

public static EntitiesSet seekDependencies(DeploymentPlan entity,
                                           EntitiesSet dl)
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
dl - Additional dependencies, that will be returned along entity's dependencies.
Returns:
The set of entities, on that this entity depends (+ additional dependencies if any).

seekDependencies

public static EntitiesSet seekDependencies(MicroComponent entity)
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
Returns:
The set of entities, on that this entity depends.

seekDependencies

public static EntitiesSet seekDependencies(MicroComponent entity,
                                           EntitiesSet dl)
When cloning an entity, use this method to determine, which entities need also be cloned.

Parameters:
entity - The entity for which the dependencies will be searched.
dl - Additional dependencies, that will be returned along entity's dependencies.
Returns:
The set of entities, on that this entity depends (+ additional dependencies if any).