fr.fluxmedia.transmorpher.graph
Class Main
java.lang.Object
|
+--java.util.Observable
|
+--fr.fluxmedia.transmorpher.graph.TransformationImpl
|
+--fr.fluxmedia.transmorpher.graph.Process
|
+--fr.fluxmedia.transmorpher.graph.MainProcess
|
+--fr.fluxmedia.transmorpher.graph.Main
- All Implemented Interfaces:
- Transformation
- public class Main
- extends MainProcess
A Main instance is a graph component that can contains calls
- Since:
- jdk 1.3 / SAX 2.0
- Author:
- Jerome.Euzenat@inrialpes.fr
Fields inherited from class java.util.Observable |
changed, obs |
Constructor Summary |
Main(java.lang.String name,
Transmorpher owner)
Constructor for the Main object |
Methods inherited from class fr.fluxmedia.transmorpher.graph.Process |
addCall, addChannel, clearNull, clearVisited, deleteCallsTo, 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 |
Main
public Main(java.lang.String name,
Transmorpher owner)
- Constructor for the Main object
- Parameters:
name
- The name of the Main instance to createowner
- The transmorpher which owns this instance
generateXML
public void generateXML()
- Prints the XML expression of the main
- Overrides:
generateXML
in class Process
createMainProcess
public TProcessComposite createMainProcess()
- Creates an execution component corresponding to this Main and starts the creation
of execution components of each calls of this Main
- Overrides:
createMainProcess
in class MainProcess
- Returns:
- an execution component
generateImport
public void generateImport(Writer file,
LinearIndexedStruct externs)
throws java.io.IOException
- Generates java code for import
- Overrides:
generateImport
in class MainProcess
- Parameters:
file
- The writer used for printing in a fileexterns
- Description of the Parameter- Throws:
java.io.IOException
- When IO errors occur
generateClassHeader
public void generateClassHeader(Writer file)
throws java.io.IOException
- Generates java code for class header
- Overrides:
generateClassHeader
in class MainProcess
- Parameters:
file
- The writer used for printing in a file- Throws:
java.io.IOException
- When IO errors occur
generateMainHeader
public void generateMainHeader(Writer file)
throws java.io.IOException
- Generates java code for main header
- Overrides:
generateMainHeader
in class MainProcess
- Parameters:
file
- The writer used for printing in a file- Throws:
java.io.IOException
- When IO errors occur
generateReadParameters
public void generateReadParameters(Writer file)
throws java.io.IOException
- Generates java code for command line parameters
- Overrides:
generateReadParameters
in class MainProcess
- Parameters:
file
- The writer used for printing in a file- Throws:
java.io.IOException
- When IO errors occur
generateBody
public final void generateBody(Writer file,
LinearIndexedStruct externs)
throws java.io.IOException
- Generates java code for body
- Overrides:
generateBody
in class MainProcess
- Parameters:
file
- The writer used for printing in a fileexterns
- Description of the Parameter- Throws:
java.io.IOException
- When IO errors occur
generateEnd
public void generateEnd(Writer file)
throws java.io.IOException
- Generates java code for end
- Overrides:
generateEnd
in class MainProcess
- Parameters:
file
- The writer used for printing in a file- Throws:
java.io.IOException
- When IO errors occur
..no bottom yet...