de.cau.cs.kieler.synccharts.codegen.sc
Class WorkflowGenerator

java.lang.Object
  extended by de.cau.cs.kieler.synccharts.codegen.sc.WorkflowGenerator

public class WorkflowGenerator
extends Object

The WorkflowGenerator starts the Xpand process of generating code. Variables will be set to define the out path of the generated files and the model for which to generate code.

Rating yellow
(2010-06-14)

Constructor Summary
WorkflowGenerator(String fileLocation)
          The constructor to use a given diagram (as *.kixs file) for generating code.
WorkflowGenerator(URI fileLocation)
          The constructor to use a given diagram (as *.kixs file) for generating code.
 
Method Summary
static String getAbsoultePath(URI uri)
          The constructor sets the location in the KIELER workspace to save the sc files if you just generate sc code without simulation.
 String getFileName()
          Returns the name of the file.
 EObject getModel()
          Returns the model.
 String getOutPathFromUI()
           
 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
 

Constructor Detail

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(URI fileLocation)
The constructor to use a given diagram (as *.kixs file) for generating code.

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

getAbsoultePath

public static String getAbsoultePath(URI uri)
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.

Returns:
the out path from ui

getOutPathFromUI

public String getOutPathFromUI()

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

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