|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.repository.DeleteDependencyCalculator
public class DeleteDependencyCalculator
Class for going through the whole repository and getting the list of entities to be deleted.
Nested Class Summary | |
---|---|
protected class |
DeleteDependencyCalculator.DeletingNode
Class for keeping info about the structure of the repository. |
Field Summary | |
---|---|
protected NodeConfiguration |
nodeConfiguration
Used to access the repository. |
protected java.util.HashMap<org.eclipse.emf.common.util.URI,DeleteDependencyCalculator.DeletingNode> |
nodesCache
A map for accessing the references of the nodes as fast as possible. |
protected RepositoryQuery |
repositoryQuery
Used to access the repository. |
protected DeleteDependencyCalculator.DeletingNode |
root
Not really needed. |
Constructor Summary | |
---|---|
DeleteDependencyCalculator(NodeConfiguration nodeConfiguration)
Constructor. |
Method Summary | |
---|---|
protected void |
addCodeBundleNode(DeleteDependencyCalculator.DeletingNode node,
CodeBundle codeBundle)
Inserts the code bundle into the dependencies of the node, depending on the standalone status of the code bundle. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(Architecture entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(Aspect entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(AssemblyDescriptor entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(CodeBundle entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(ConnectorUnitDeploymentDescription entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(DeploymentPlan entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(Frame entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(InstanceAssemblyDescription entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(InstanceDeploymentDescription entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(Interface entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(InterfaceType entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(MicroComponent entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(MicroInterfaceType entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(SubcomponentDeploymentInstance entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
protected DeleteDependencyCalculator.DeletingNode |
cacheEntity(SubcomponentInstance entity)
Goes through all the dependencies of the entity and caches it into memory of this data structure. |
static void |
ContainerContainmentRelation(DeleteDependencyCalculator.DeletingNode container,
DeleteDependencyCalculator.DeletingNode containment)
Specifies a container-containment relation between the two nodes. |
java.util.Set<VersionedEntity> |
getAllDependencies()
Just for debugging purposes. |
java.util.Set<VersionedEntity> |
getDeletingDependencies(org.eclipse.emf.common.util.URI uri)
Gets all dependencies which should be deleted with a VersionedEntity for keeping the repository consistent. |
java.util.Set<VersionedEntity> |
getDeletingDependencies(VersionedEntity entity)
Gets all dependencies which should be deleted with a VersionedEntity for keeping the repository consistent. |
java.util.Set<VersionedEntity> |
getDeletingDependencies(VersionedEntity[] entityArr)
Gets all dependencies which should be deleted with a VersionedEntity for keeping the repository consistent. |
java.util.Set<VersionedEntity> |
getDeletingParents(org.eclipse.emf.common.util.URI uri)
Gets all "dependencies" which the entity should be deleted with for keeping the repository consistent. |
protected void |
indent(int indent)
Simple indentation function when printing information about the nodes. |
static void |
ParentChildRelation(DeleteDependencyCalculator.DeletingNode parent,
DeleteDependencyCalculator.DeletingNode child)
Specifies a parent-child relation between the two given nodes. |
void |
printResult()
Prints the results of dependency seeking - the siblings of the root node. |
protected org.eclipse.emf.ecore.EObject |
resolve(org.eclipse.emf.ecore.EObject e)
Just until I find out why EcoreUtil.resolveAll works only for some entities. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap<org.eclipse.emf.common.util.URI,DeleteDependencyCalculator.DeletingNode> nodesCache
protected DeleteDependencyCalculator.DeletingNode root
protected NodeConfiguration nodeConfiguration
protected RepositoryQuery repositoryQuery
Constructor Detail |
---|
public DeleteDependencyCalculator(NodeConfiguration nodeConfiguration)
nodeConfiguration
- the configuration of the repository.Method Detail |
---|
protected org.eclipse.emf.ecore.EObject resolve(org.eclipse.emf.ecore.EObject e)
e
- The EObject to be resolved
public static void ParentChildRelation(DeleteDependencyCalculator.DeletingNode parent, DeleteDependencyCalculator.DeletingNode child)
public static void ContainerContainmentRelation(DeleteDependencyCalculator.DeletingNode container, DeleteDependencyCalculator.DeletingNode containment)
public java.util.Set<VersionedEntity> getDeletingDependencies(VersionedEntity entity)
entity
- the entity to be deleted and which's dependencies to find.
public java.util.Set<VersionedEntity> getDeletingDependencies(VersionedEntity[] entityArr)
entityArr
- the entities to be deleted and which's dependencies to find.
public java.util.Set<VersionedEntity> getDeletingDependencies(org.eclipse.emf.common.util.URI uri)
uri
- the entity to be deleted and which's dependencies to find.
public java.util.Set<VersionedEntity> getDeletingParents(org.eclipse.emf.common.util.URI uri)
uri
- the entity and which's dependencies to find.
public java.util.Set<VersionedEntity> getAllDependencies()
protected void indent(int indent)
indent
- How many spaces it should indent.public void printResult()
protected void addCodeBundleNode(DeleteDependencyCalculator.DeletingNode node, CodeBundle codeBundle)
node
- codeBundle
- protected DeleteDependencyCalculator.DeletingNode cacheEntity(Architecture entity)
protected DeleteDependencyCalculator.DeletingNode cacheEntity(Aspect entity)
protected DeleteDependencyCalculator.DeletingNode cacheEntity(AssemblyDescriptor entity)
protected DeleteDependencyCalculator.DeletingNode cacheEntity(CodeBundle entity)
protected DeleteDependencyCalculator.DeletingNode cacheEntity(DeploymentPlan entity)
protected DeleteDependencyCalculator.DeletingNode cacheEntity(InstanceDeploymentDescription entity)
protected DeleteDependencyCalculator.DeletingNode cacheEntity(ConnectorUnitDeploymentDescription entity)
protected DeleteDependencyCalculator.DeletingNode cacheEntity(SubcomponentDeploymentInstance entity)
protected DeleteDependencyCalculator.DeletingNode cacheEntity(Frame entity)
protected DeleteDependencyCalculator.DeletingNode cacheEntity(InterfaceType entity)
protected DeleteDependencyCalculator.DeletingNode cacheEntity(MicroComponent entity)
protected DeleteDependencyCalculator.DeletingNode cacheEntity(InstanceAssemblyDescription entity)
protected DeleteDependencyCalculator.DeletingNode cacheEntity(Interface entity)
protected DeleteDependencyCalculator.DeletingNode cacheEntity(SubcomponentInstance entity)
protected DeleteDependencyCalculator.DeletingNode cacheEntity(MicroInterfaceType entity)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |