de.cau.cs.kieler.s.sj
Class WorkflowGenerator

java.lang.Object
  extended by de.cau.cs.kieler.s.codegen.AbstractWorkflowGenerator
      extended by de.cau.cs.kieler.s.sj.WorkflowGenerator

public class WorkflowGenerator
extends AbstractWorkflowGenerator

Rating red

Field Summary
 
Fields inherited from class de.cau.cs.kieler.s.codegen.AbstractWorkflowGenerator
myModel, outPath, postProcessor, uri, uriString
 
Constructor Summary
WorkflowGenerator()
          The constructor sets the location in the KIELER workspace to save the sc files if you just generate sc code without simulation.
WorkflowGenerator(IFile selectedFile)
          Creates a new WorkflowGenerator.java.
WorkflowGenerator(IFile selectedFile, String fileLocation)
          Creates a new WorkflowGenerator.java.
WorkflowGenerator(String fileLocation)
          The constructor to use a given diagram (as *.kixs file) for generating code.
 
Method Summary
 String getNameOfMainMethod()
          Getter for the name of the root method.
 String getPathToMainTemplate()
          Getter for the path to the main code generation template file.
 
Methods inherited from class de.cau.cs.kieler.s.codegen.AbstractWorkflowGenerator
getFileName, getModel, getURI, invokeWorkflow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowGenerator

public WorkflowGenerator()
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.


WorkflowGenerator

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

Parameters:
fileLocation - the location of the given diagram file

WorkflowGenerator

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

Parameters:
selectedFiles -

WorkflowGenerator

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

Parameters:
selectedFiles -
fileLocation - the location of the given diagram file
Method Detail

getNameOfMainMethod

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

Specified by:
getNameOfMainMethod in class AbstractWorkflowGenerator
Returns:
the root methods name

getPathToMainTemplate

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

Specified by:
getPathToMainTemplate in class AbstractWorkflowGenerator
Returns:
the template path