INRIA & FluxMedia

fr.fluxmedia.transmorpher.Graph
Class Transmorpher

java.lang.Object
  |
  +--java.util.Observable
        |
        +--fr.fluxmedia.transmorpher.Graph.Transmorpher

public class Transmorpher
extends java.util.Observable


Field Summary
protected  int debug
           
protected  LinearIndexedStruct defexterns
          the list of declared names of components
protected  java.io.File href
          The filename of the Transmorpher sheet
(package private)  TProcessComposite iExecutionStructure
           
protected  java.util.LinkedList imports
          the list of imports this could be a list of urls OR of Transmorpher if the import has been parsed.
protected  java.util.LinkedList includes
          the list of includes
(package private)  TProcessFactory iProcessFactory
           
protected  MainProcess main
          The main process of the Transmorpher sheet
protected  java.lang.String name
          The name of the Transmorpher sheet
protected  boolean opt
           
protected  LinearIndexedStruct transformations
          the list of Processes
protected  boolean useThread
           
(package private)  java.lang.String version
          the version to be used
 
Fields inherited from class java.util.Observable
changed, obs
 
Constructor Summary
Transmorpher(int d)
           
Transmorpher(java.lang.String n, java.lang.String v, int d, boolean o)
           
Transmorpher(java.lang.String n, java.lang.String v, int d, boolean o, Transmorpher t)
           
 
Method Summary
 void addExtern(java.lang.String name, java.lang.String cl, java.lang.String impl, boolean def)
           
 void addImport(java.lang.String i)
           
 void addInclude(java.lang.String i)
           
 void addTransformation(java.lang.String name, Transformation t)
           
 void exec(Parameters p)
           
 void generateExec(java.lang.String reloc)
          Generates Java code for the transformation
 void generateJavaCode(java.lang.String reloc)
           
 void generateXML()
           
 int getDebug()
          Get the value of debug.
 LinearIndexedStruct getDefexterns()
           
 java.lang.String getExtern(java.lang.String name)
           
 java.io.File getFile()
           
 java.util.LinkedList getImports()
           
 java.util.LinkedList getIncludes()
           
 MainProcess getMain()
           
 java.lang.String getName()
           
 Transformation getTransformation(java.lang.String name)
           
 LinearIndexedStruct getTransformations()
           
 java.lang.String getVersion()
           
 boolean isThread()
           
 boolean optimizedP()
           
 void removeExtern(java.lang.String name)
           
 void removeTransformation(Transformation trans)
           
 void retroNull()
           
 void setDebug(int v)
          Set the value of debug.
 void setFile(java.io.File u)
           
 void setMain(MainProcess p)
           
 void setName(java.lang.String n)
           
 void setOptimized(boolean b)
           
 void setVersion(java.lang.String v)
           
 void useThread(boolean thread)
           
 
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
 

Field Detail

name

protected java.lang.String name
The name of the Transmorpher sheet

href

protected java.io.File href
The filename of the Transmorpher sheet

main

protected MainProcess main
The main process of the Transmorpher sheet

transformations

protected LinearIndexedStruct transformations
the list of Processes

version

java.lang.String version
the version to be used

iExecutionStructure

TProcessComposite iExecutionStructure

iProcessFactory

TProcessFactory iProcessFactory

imports

protected java.util.LinkedList imports
the list of imports this could be a list of urls OR of Transmorpher if the import has been parsed. In such a case the URL can be found in its href attribute

includes

protected java.util.LinkedList includes
the list of includes

defexterns

protected LinearIndexedStruct defexterns
the list of declared names of components

debug

protected int debug

opt

protected boolean opt

useThread

protected boolean useThread
Constructor Detail

Transmorpher

public Transmorpher(int d)

Transmorpher

public Transmorpher(java.lang.String n,
                    java.lang.String v,
                    int d,
                    boolean o)

Transmorpher

public Transmorpher(java.lang.String n,
                    java.lang.String v,
                    int d,
                    boolean o,
                    Transmorpher t)
Method Detail

getName

public final java.lang.String getName()

setName

public final void setName(java.lang.String n)

getDebug

public int getDebug()
Get the value of debug.
Returns:
value of debug.

setDebug

public void setDebug(int v)
Set the value of debug.
Parameters:
v - Value to assign to debug.

isThread

public boolean isThread()
Returns:
true if using thread.

useThread

public void useThread(boolean thread)
Parameters:
v - Value to assign to debug.

getFile

public final java.io.File getFile()

setFile

public final void setFile(java.io.File u)

getVersion

public final java.lang.String getVersion()

setVersion

public final void setVersion(java.lang.String v)

optimizedP

public final boolean optimizedP()

setOptimized

public final void setOptimized(boolean b)

getMain

public final MainProcess getMain()

getTransformations

public LinearIndexedStruct getTransformations()

getTransformation

public final Transformation getTransformation(java.lang.String name)

addTransformation

public final void addTransformation(java.lang.String name,
                                    Transformation t)

removeTransformation

public final void removeTransformation(Transformation trans)

getExtern

public final java.lang.String getExtern(java.lang.String name)

addExtern

public final void addExtern(java.lang.String name,
                            java.lang.String cl,
                            java.lang.String impl,
                            boolean def)

removeExtern

public final void removeExtern(java.lang.String name)

getDefexterns

public final LinearIndexedStruct getDefexterns()

addImport

public final void addImport(java.lang.String i)

getImports

public final java.util.LinkedList getImports()

addInclude

public final void addInclude(java.lang.String i)

getIncludes

public final java.util.LinkedList getIncludes()

setMain

public final void setMain(MainProcess p)

retroNull

public final void retroNull()

generateXML

public final void generateXML()

generateExec

public final void generateExec(java.lang.String reloc)
                        throws javax.xml.transform.TransformerException,
                               javax.xml.transform.TransformerConfigurationException,
                               org.xml.sax.SAXException,
                               java.io.IOException
Generates Java code for the transformation

generateJavaCode

public final void generateJavaCode(java.lang.String reloc)

exec

public final void exec(Parameters p)
                throws java.lang.Exception

INRIA & FluxMedia

..no bottom yet...