translate
Class SEESCOAImplementationVisitor

java.lang.Object
  extended byEDU.utwente.CoCompose.lang.ModelVisitor
      extended byEDU.utwente.CoCompose.translate.GenerateImplementationVisitor
          extended bytranslate.JavaImplementationVisitor
              extended bytranslate.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

Field Summary
 
Fields inherited from class EDU.utwente.CoCompose.translate.GenerateImplementationVisitor
constraintCheck, Indent, OUTPUT_DIR
 
Fields inherited from class EDU.utwente.CoCompose.lang.ModelVisitor
log
 
Constructor Summary
SEESCOAImplementationVisitor()
          Constructs a SEESCOAImplementationVisitor.
 
Method Summary
protected  void conceptAsComponentClass(Concept concept, java.lang.String form)
          Implements the concept as a Componentclass.
protected  void conceptAsMessage(Concept concept, java.lang.String form)
          Implements the concept as a Message.
 java.lang.String getTargetLanguage()
          Returns the target language this GenerateImplementationVisitor supports.
 void visitConcept(Concept concept)
          Generates implementation for a Concept object.
protected  void writeImplementation(Model model, java.lang.String outdir)
          Writes the implementation of the model.
 
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
 

Constructor Detail

SEESCOAImplementationVisitor

public SEESCOAImplementationVisitor()
Constructs a SEESCOAImplementationVisitor.

Method Detail

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.