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 must be a list of Transmorphers once the imports have 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  java.lang.String reloc
           
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, java.lang.String _reloc, boolean o)
           
Transmorpher(java.lang.String n, java.lang.String v, int d, java.lang.String _reloc, 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)
          This is an internal method for dynamically adding imports
 void addInclude(java.lang.String i)
           
 void addTransformation(java.lang.String name, Transformation t)
           
 void exec(Parameters p)
           
 Transformation findTransformation(java.lang.String name)
           
 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 recordImport(java.lang.String i, Transmorpher t)
          replace the import URI by the actual import
 void removeExtern(java.lang.String name)
           
 void removeTransformation(Transformation trans)
           
 void reserveImport(java.lang.String i)
          just put the import URI in the linked list
 void retroNull()
           
 void save()
           
 void saveAll()
           
 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 must be a list of Transmorphers once the imports have 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

reloc

protected java.lang.String reloc

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,
                    java.lang.String _reloc,
                    boolean o)

Transmorpher

public Transmorpher(java.lang.String n,
                    java.lang.String v,
                    int d,
                    java.lang.String _reloc,
                    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()

findTransformation

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

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()

reserveImport

public final void reserveImport(java.lang.String i)
just put the import URI in the linked list

recordImport

public final void recordImport(java.lang.String i,
                               Transmorpher t)
replace the import URI by the actual import

addImport

public final void addImport(java.lang.String i)
                     throws javax.xml.parsers.ParserConfigurationException,
                            org.xml.sax.SAXException,
                            java.io.IOException
This is an internal method for dynamically adding imports

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()

save

public final void save()
                throws TMException

saveAll

public final void saveAll()
                   throws TMException

generateXML

public final void generateXML()

generateExec

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

generateJavaCode

public final void generateJavaCode(java.lang.String _reloc)
                            throws java.io.IOException,
                                   TMException

exec

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

INRIA & FluxMedia

..no bottom yet...