de.cau.cs.kieler.s.codegen
Class AbstractWorkflowGenerator

java.lang.Object
  extended by de.cau.cs.kieler.s.codegen.AbstractWorkflowGenerator
Direct Known Subclasses:
WorkflowGenerator, WorkflowGenerator

public abstract class AbstractWorkflowGenerator
extends Object

Rating red

Field Summary
protected  EObject myModel
           
protected static String outPath
           
protected  org.eclipse.xpand2.output.PostProcessor postProcessor
           
protected  URI uri
           
protected  String uriString
           
 
Constructor Summary
AbstractWorkflowGenerator()
          The constructor sets the location in the KIELER workspace to save the sc files if you just generate sc code without simulation.
AbstractWorkflowGenerator(IFile selectedFile)
          Creates a new AbstractWorkflowGenerator.java.
AbstractWorkflowGenerator(IFile selectedFile, String fileLocation)
          Creates a new AbstractWorkflowGenerator.java.
AbstractWorkflowGenerator(String fileLocation)
          The constructor to use a given diagram (as *.kixs file) for generating code.
 
Method Summary
 String getFileName()
          Returns the name of the file.
 EObject getModel()
          Returns the model.
abstract  String getNameOfMainMethod()
          Getter for the name of the root method.
abstract  String getPathToMainTemplate()
          Getter for the path to the main code generation template file.
 URI getURI()
          Returns the uri.
 void invokeWorkflow(boolean sim, String path)
          Invocation of the workflow.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myModel

protected EObject myModel

outPath

protected static String outPath

uriString

protected String uriString

uri

protected URI uri

postProcessor

protected org.eclipse.xpand2.output.PostProcessor postProcessor
Constructor Detail

AbstractWorkflowGenerator

public AbstractWorkflowGenerator()
The constructor sets the location in the KIELER workspace to save the sc files if you just generate sc code without simulation. It also sets the variables for the EMF reader.


AbstractWorkflowGenerator

public AbstractWorkflowGenerator(String fileLocation)
The constructor to use a given diagram (as *.kixs file) for generating code.

Parameters:
fileLocation - the location of the given diagram file

AbstractWorkflowGenerator

public AbstractWorkflowGenerator(IFile selectedFile)
Creates a new AbstractWorkflowGenerator.java.

Parameters:
selectedFile -

AbstractWorkflowGenerator

public AbstractWorkflowGenerator(IFile selectedFile,
                                 String fileLocation)
Creates a new AbstractWorkflowGenerator.java.

Parameters:
selectedFile -
fileLocation -
Method Detail

invokeWorkflow

public void invokeWorkflow(boolean sim,
                           String path)
Invocation of the workflow. Prepares the environment for generating code.

Parameters:
sim - is false if you just want to generate code and true if you want to generate code and simulate it
path - the path where the generated files should be written

getPathToMainTemplate

public abstract String getPathToMainTemplate()
Getter for the path to the main code generation template file. e.g.: de::cau::cs::kieler::s::sj::templates::Codegen

Returns:
the template path

getNameOfMainMethod

public abstract String getNameOfMainMethod()
Getter for the name of the root method.

Returns:
the root methods name

getModel

public EObject getModel()
Returns the model.

Returns:
model

getURI

public URI getURI()
Returns the uri.

Returns:
uri

getFileName

public String getFileName()
Returns the name of the file.

Returns:
filename