de.cau.cs.kieler.esterel.cec.sim
Class WorkflowGenerator

java.lang.Object
  extended by de.cau.cs.kieler.esterel.cec.sim.WorkflowGenerator

public class WorkflowGenerator
extends Object

Rating red

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(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.
 URI getURI()
          Returns the uri.
 void invokeWorkflow(String path, String name)
          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()
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
Method Detail

invokeWorkflow

public void invokeWorkflow(String path,
                           String name)
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