|
||||||||||
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.FlatteningOptionsVisitor
Retrieves the flattening options for a composite.
Field Summary | |
protected java.util.Set |
patternsInPath
The set of solution patterns used in the flattening path. |
Fields inherited from class EDU.utwente.CoCompose.lang.ModelVisitor |
log |
Constructor Summary | |
FlatteningOptionsVisitor()
Constructs a FlatteningOptionsVisitor. |
Method Summary | |
protected void |
addOption(SolutionPattern option)
Adds an option to the collection of flattening options. |
java.lang.Object |
clone()
Returns a copy of this object. |
java.util.Collection |
getOptions()
Retrieves the flattening options so far. |
protected java.lang.String |
getTargetLanguage()
Gets the target language to use for flattening. |
void |
reset()
Resets this visitor to the state it was in just after creation. |
void |
setAppliedPatterns(AppliedPatterns patterns)
Sets the appliedPatterns property for caching of validated solution patterns. |
void |
setTargetLanguage(java.lang.String language)
Sets the target language to use for flattening. |
void |
visitComposite(Composite composite)
Gets the flattening options (solution patterns or nothing) that can be used for flattening the composite. |
void |
visitConcept(Concept concept)
Checks a Concept object for translation to the target language. |
void |
visitSolutionPattern(SolutionPattern solution)
Checks whether the solution pattern can eventually translate into the given language. |
Methods inherited from class EDU.utwente.CoCompose.lang.ModelVisitor |
getUpdate, run, setErrorReporter, setLogger, setUpdate, startModel, visitAbstractConcept, visitCompositePartConcept, visitCompositeRole, visitConstrainedConcept, visitImplementation, visitImplementationGenerator, visitImplementationRolePart, visitLink, visitModel, visitPublishedConcept, visitSolutionRole |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Set patternsInPath
Constructor Detail |
public FlatteningOptionsVisitor()
Method Detail |
protected java.lang.String getTargetLanguage()
protected void addOption(SolutionPattern option)
option
- - the option to add.public void reset()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneNotSupportedException.
java.lang.CloneNotSupportedException
public void setTargetLanguage(java.lang.String language)
language
- - the target language.public void setAppliedPatterns(AppliedPatterns patterns)
patterns
- - the AppliedPatterns object.public java.util.Collection getOptions()
public void visitConcept(Concept concept) throws CoComposeException
visitConcept
in class ModelVisitor
concept
- - the concept to check.
CoComposeException
- - if the concept does not translate.public void visitComposite(Composite composite) throws CoComposeException
visitComposite
in class ModelVisitor
composite
- - the composite to visit.
CoComposeException
- - if no flattening is possible.public void visitSolutionPattern(SolutionPattern solution) throws CoComposeException
visitSolutionPattern
in class ModelVisitor
solution
- - the solution pattern to visit.
CoComposeException
- - if translation is not possible.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |