fr.fluxmedia.transmorpher.graph
Class MainProcess
java.lang.Object
|
+--java.util.Observable
|
+--fr.fluxmedia.transmorpher.graph.TransformationImpl
|
+--fr.fluxmedia.transmorpher.graph.Process
|
+--fr.fluxmedia.transmorpher.graph.MainProcess
- All Implemented Interfaces:
- Transformation
- Direct Known Subclasses:
- Main, Servlet, Transformer
- public abstract class MainProcess
- extends Process
The MainProcess class is an helper class which provides methods to create an execution structure
and methods to produce the java code corresponding to its type.
MainProcess can be :
- a Main, which can be executed or compiled
- a Servlet, which can only be compiled
- a Transformer, which can only be compiled
- Since:
- jdk 1.3 / SAX 2.0
- Author:
- Jerome.Euzenat@inrialpes.fr
Fields inherited from class java.util.Observable |
changed, obs |
Constructor Summary |
MainProcess(java.lang.String name,
Transmorpher owner,
int nbIn,
int nbOut)
Constructor for the MainProcess object. |
Methods inherited from class fr.fluxmedia.transmorpher.graph.Process |
addCall, addChannel, clearNull, clearVisited, deleteCallsTo, generateXML, getAllChannels, getCall, getCalls, getChannel, getChannels, removeCall, removeCallAndPorts, removeChannel, removeChannelAndPorts, retroNull, retroNull, retroNull, setUp, XMLName |
Methods inherited from class fr.fluxmedia.transmorpher.graph.TransformationImpl |
addIn, addIn, addOut, addOut, getAttributes, getName, getParameters, getTransmorpher, getType, inPorts, outPorts, setName, setParameters, setType, update |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
MainProcess
public MainProcess(java.lang.String name,
Transmorpher owner,
int nbIn,
int nbOut)
- Constructor for the MainProcess object.
- Parameters:
name
- The name of the MainProcess instanceowner
- The transmorpher that owns this instancenbIn
- The number of in ports of this instance (should be 0)nbOut
- The number of out ports of this instance (should be 0)
createMainProcess
public abstract TProcessComposite createMainProcess()
- Create an execution components that can contain others
- Returns:
- Description of the Return Value
generateJavaCode
public void generateJavaCode(Writer file,
LinearIndexedStruct externs)
throws java.io.IOException
- Prints a java code description of this MainProcess instance
- Overrides:
generateJavaCode
in class Process
- Parameters:
file
- The writer used for printing in a fileexterns
- Description of the Parameter- Throws:
java.io.IOException
- When IO errors occur
generateImport
public abstract void generateImport(Writer file,
LinearIndexedStruct externs)
throws java.io.IOException
- Generates java code for import
- Parameters:
file
- The writer used for printing in a fileexterns
- Description of the Parameter- Throws:
java.io.IOException
- When IO errors occur
generateClassHeader
public abstract void generateClassHeader(Writer file)
throws java.io.IOException
- Generates java code for class header
- Parameters:
file
- The writer used for printing in a file- Throws:
java.io.IOException
- When IO errors occur
generateMainHeader
public abstract void generateMainHeader(Writer file)
throws java.io.IOException
- Generates java code for main header
- Parameters:
file
- The writer used for printing in a file- Throws:
java.io.IOException
- When IO errors occur
generateReadParameters
public abstract void generateReadParameters(Writer file)
throws java.io.IOException
- Generates java code for commmand line parameters
- Parameters:
file
- The writer used for printing in a file- Throws:
java.io.IOException
- When IO errors occur
generateBody
public abstract void generateBody(Writer file,
LinearIndexedStruct externs)
throws java.io.IOException
- Generates java code for body
- Parameters:
file
- The writer used for printing in a fileexterns
- Description of the Parameter- Throws:
java.io.IOException
- When IO errors occur
generateEnd
public abstract void generateEnd(Writer file)
throws java.io.IOException
- Generates java code for end
- Parameters:
file
- The writer used for printing in a file- Throws:
java.io.IOException
- When IO errors occur
..no bottom yet...