EDU.utwente.CoCompose.translate
Class TranslateVisitor
java.lang.Object
|
+--EDU.utwente.CoCompose.lang.ModelVisitor
|
+--EDU.utwente.CoCompose.translate.TranslateVisitor
- All Implemented Interfaces:
- java.lang.Runnable
- public class TranslateVisitor
- extends ModelVisitor
Translates the model using all three translation process steps (flatten,
determine concept forms and generate implementation).
- Version:
- 0.1.15, 20 October 2003
- Author:
- Dennis Wagelaar
- See Also:
FlattenVisitor
,
DetermineFormsVisitor
,
GenerateImplementationVisitor
Method Summary |
protected void |
addTransModel(Model transModel)
Adds a transformed model to the collection of transformed models. |
java.util.Collection |
getTransModels()
Gets the transformed models so far. |
protected void |
setTransModels(java.util.Collection transModels)
Sets the transformed models so far. |
void |
visitModel(Model model)
Translates the model. |
Methods inherited from class EDU.utwente.CoCompose.lang.ModelVisitor |
getUpdate, run, setErrorReporter, setLogger, setUpdate, startModel, visitAbstractConcept, visitComposite, visitCompositePartConcept, visitCompositeRole, visitConcept, visitConstrainedConcept, visitImplementation, visitImplementationGenerator, visitImplementationRolePart, visitLink, visitPublishedConcept, visitSolutionPattern, visitSolutionRole |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TranslateVisitor
public TranslateVisitor()
- Constructs a TranslateVisitor.
setTransModels
protected void setTransModels(java.util.Collection transModels)
- Sets the transformed models so far.
- Parameters:
transModels
- The collection of transformed models.
addTransModel
protected void addTransModel(Model transModel)
- Adds a transformed model to the collection of transformed models.
- Parameters:
transModel
- The transformed model to add.
getTransModels
public java.util.Collection getTransModels()
- Gets the transformed models so far.
- Returns:
- The collection of transformed models.
visitModel
public void visitModel(Model model)
throws CoComposeException
- Translates the model.
- Overrides:
visitModel
in class ModelVisitor
- Parameters:
model
- The model to translate.- Throws:
CoComposeException
- if one of the model's constraints are not fulfilled or
if the model could not be translated.