|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEDU.utwente.CoCompose.lang.ModelVisitor
EDU.utwente.CoCompose.translate.OrderCompositesVisitor
Orders the composites in a list based on the composite interdependencies. If a published concept of one composite fills a role of another compose, for instance, that composite should be flattened first.
Field Summary |
Fields inherited from class EDU.utwente.CoCompose.lang.ModelVisitor |
log |
Constructor Summary | |
OrderCompositesVisitor()
Constructs a OrderCompositesVisitor. |
Method Summary | |
protected void |
addComposite(Composite composite)
Adds a composite to the list. |
protected void |
addVisited(Composite composite)
Adds the composite to the visited set. |
protected java.lang.Object |
clone()
Create a shallow copy of this. |
protected boolean |
containsComposite(AbstractConcept composite)
Checks whether the list contains the composite. |
java.util.List |
getComposites()
Retrieves the list of composites. |
void |
reset()
Resets the object to the state as it was just after object creation. |
void |
visitComposite(Composite composite)
Determines the composite dependencies and inserts the composite in the list at the appropriate index. |
protected boolean |
visited(Composite composite)
Checks whether the composite is already being visited. |
void |
visitModel(Model model)
Determines the dependencies of the composites in the model. |
Methods inherited from class EDU.utwente.CoCompose.lang.ModelVisitor |
getUpdate, run, setErrorReporter, setLogger, setUpdate, startModel, visitAbstractConcept, visitCompositePartConcept, visitCompositeRole, visitConcept, visitConstrainedConcept, visitImplementation, visitImplementationGenerator, visitImplementationRolePart, visitLink, visitPublishedConcept, visitSolutionPattern, visitSolutionRole |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OrderCompositesVisitor()
Method Detail |
protected void addComposite(Composite composite)
composite
- The composite to add.protected boolean containsComposite(AbstractConcept composite)
composite
- The composite to check for.
protected boolean visited(Composite composite)
protected void addVisited(Composite composite)
protected java.lang.Object clone()
public java.util.List getComposites()
public void reset()
public void visitModel(Model model) throws CoComposeException
visitModel
in class ModelVisitor
model
- The model to visit.
CoComposeException
- if a dependency cycle is detected.public void visitComposite(Composite composite) throws CoComposeException
visitComposite
in class ModelVisitor
composite
- The composite to visit.
CoComposeException
- if a dependency cycle is detected.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |