INRIA & FluxMedia

fr.fluxmedia.transmorpher.graph
Class Main

java.lang.Object
  extended by java.util.Observable
      extended by fr.fluxmedia.transmorpher.graph.TransformationImpl
          extended by fr.fluxmedia.transmorpher.graph.Process
              extended by fr.fluxmedia.transmorpher.graph.MainProcess
                  extended by 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

Field Summary
 
Fields inherited from class fr.fluxmedia.transmorpher.graph.Process
calls, channels
 
Fields inherited from class fr.fluxmedia.transmorpher.graph.TransformationImpl
attributes, inPorts, name, outPorts, parameters, transmorpher, type
 
Constructor Summary
Main(java.lang.String name, Transmorpher owner)
          Constructor for the Main object
 
Method Summary
 TProcessComposite createMainProcess()
          Creates an execution component corresponding to this Main and starts the creation of execution components of each calls of this Main
 void generateBody(Writer file, LinearIndexedStruct externs)
          Generates java code for body
 void generateClassHeader(Writer file)
          Generates java code for class header
 void generateEnd(Writer file)
          Generates java code for end
 void generateImport(Writer file, LinearIndexedStruct externs)
          Generates java code for import
 void generateMainHeader(Writer file)
          Generates java code for main header
 void generateReadParameters(Writer file)
          Generates java code for command line parameters
 void generateXML()
          Prints the XML expression of the main
 
Methods inherited from class fr.fluxmedia.transmorpher.graph.MainProcess
generateJavaCode
 
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
 
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, toString, wait, wait, wait
 

Constructor Detail

Main

public Main(java.lang.String name,
            Transmorpher owner)
Constructor for the Main object

Parameters:
name - The name of the Main instance to create
owner - The transmorpher which owns this instance
Method Detail

generateXML

public void generateXML()
Prints the XML expression of the main

Specified by:
generateXML in interface Transformation
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

Specified by:
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

Specified by:
generateImport in class MainProcess
Parameters:
file - The writer used for printing in a file
externs - 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

Specified by:
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

Specified by:
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

Specified by:
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

Specified by:
generateBody in class MainProcess
Parameters:
file - The writer used for printing in a file
externs - 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

Specified by:
generateEnd in class MainProcess
Parameters:
file - The writer used for printing in a file
Throws:
java.io.IOException - When IO errors occur

INRIA & FluxMedia

..no bottom yet...