translate
Class SEESCOAImplementationVisitor
java.lang.Object
|
+--EDU.utwente.CoCompose.lang.ModelVisitor
|
+--EDU.utwente.CoCompose.translate.GenerateImplementationVisitor
|
+--translate.JavaImplementationVisitor
|
+--translate.SEESCOAImplementationVisitor
- All Implemented Interfaces:
- java.lang.Runnable
- public class SEESCOAImplementationVisitor
- extends JavaImplementationVisitor
Generates SEESCOA component language implementation for a CoCompose model.
- Version:
- 0.1.15, 22 October 2003
- Author:
- Dennis Wagelaar
Methods inherited from class translate.JavaImplementationVisitor |
conceptAsClass, conceptAsConstructorMethod, conceptAsInterface, conceptAsMethod, conceptAsOther, getImplementation, getImplPart, getPointerAttribute, moveImports, removeExtraNewlines, substVars, visitModel, weavePointers, weavePointers |
Methods inherited from class EDU.utwente.CoCompose.translate.GenerateImplementationVisitor |
dumpImplementation, getForms, getImpl, getImpl, getImplementation, getImpls, indent, removeForm, setForm, setImpl, setImpl, visitComposite, visitImplementation, visitImplementationGenerator, writeFile |
Methods inherited from class EDU.utwente.CoCompose.lang.ModelVisitor |
getUpdate, run, setErrorReporter, setLogger, setUpdate, startModel, visitAbstractConcept, visitCompositePartConcept, visitCompositeRole, visitConstrainedConcept, visitImplementationRolePart, visitLink, visitPublishedConcept, visitSolutionPattern, visitSolutionRole |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEESCOAImplementationVisitor
public SEESCOAImplementationVisitor()
- Constructs a SEESCOAImplementationVisitor.
conceptAsComponentClass
protected void conceptAsComponentClass(Concept concept,
java.lang.String form)
- Implements the concept as a Componentclass.
- Parameters:
concept
- The concept to implement.form
- The exact concept form.
conceptAsMessage
protected void conceptAsMessage(Concept concept,
java.lang.String form)
- Implements the concept as a Message.
- Parameters:
concept
- The concept to implement.form
- The exact concept form.
writeImplementation
protected void writeImplementation(Model model,
java.lang.String outdir)
throws CoComposeException
- Writes the implementation of the model.
- Overrides:
writeImplementation
in class JavaImplementationVisitor
- Parameters:
model
- The model to write the implementation for.outdir
- The directory to save the implementation files.- Throws:
CoComposeException
- if writing the implementation failed.
getTargetLanguage
public java.lang.String getTargetLanguage()
- Returns the target language this GenerateImplementationVisitor supports.
- Overrides:
getTargetLanguage
in class JavaImplementationVisitor
- Returns:
- The target language.
visitConcept
public void visitConcept(Concept concept)
throws CoComposeException
- Generates implementation for a Concept object.
- Overrides:
visitConcept
in class JavaImplementationVisitor
- Parameters:
concept
- The concept to visit.- Throws:
CoComposeException
- if generating implementation failed.