public class ModelTopology extends Object
Usage: new ModelTopology() load() findEquals() / findEquals(EquivalenceMap) returns the element matches getNotProcessed() returns not matched elementsNOTE: The instances should not be reused
| Constructor and Description |
|---|
ModelTopology() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Leave this topology empy and ready to load another model
|
List<javax.jmi.reflect.RefObject> |
getContents() |
ArrayList<Node<javax.jmi.reflect.RefObject>> |
getGenerationOfReady() |
boolean |
isEmpty() |
void |
load(MatchingCriteria criteria,
Collection<javax.jmi.reflect.RefObject> elements)
Load into this model topology the listed associations and attributes, so that model processing
would treat as equal any model elements with same values of the listed attributes and equal
objects bound in the listed associations.
|
void |
remove(Collection<javax.jmi.reflect.RefObject> equivalents)
Removes from this topology all nodes from the equivalence class the representative is of
|
void |
removeFromReadyNodes(List<Node<javax.jmi.reflect.RefObject>> targetGenerationReady)
Exclude the listed nodes from the READY list, but keep them in the topology itself
|
void |
removeFromTopology(Collection<Node<javax.jmi.reflect.RefObject>> nodes)
This method excludes the nodes provided from the owner topology, decreases the level of all
nodes that refer this and rearranges the topology to reflect level of the changed nodes.
|
String |
toString() |
public ModelTopology()
public boolean isEmpty()
public void load(MatchingCriteria criteria, Collection<javax.jmi.reflect.RefObject> elements)
criteria - is a not null criteria defining the attribute names to evaluate for all model
elementselements - is a non-null list of model elements to orderpublic final ArrayList<Node<javax.jmi.reflect.RefObject>> getGenerationOfReady()
public final void remove(Collection<javax.jmi.reflect.RefObject> equivalents)
equivalents - not nullpublic void removeFromTopology(Collection<Node<javax.jmi.reflect.RefObject>> nodes)
nodes - is a collection of ready nodespublic void removeFromReadyNodes(List<Node<javax.jmi.reflect.RefObject>> targetGenerationReady)
targetGenerationReady - not nullpublic List<javax.jmi.reflect.RefObject> getContents()
public void clear()
Copyright © 2001–2018 MDA Tools. All rights reserved.