INRIA & FluxMedia

fr.fluxmedia.transmorpher.TProcessFactory
Class TProcessComposite

java.lang.Object
  |
  +--fr.fluxmedia.transmorpher.TProcessFactory.TProcess_Impl
        |
        +--fr.fluxmedia.transmorpher.TProcessFactory.TProcessComposite
All Implemented Interfaces:
TProcess
Direct Known Subclasses:
TLoop, TLoopStack2

public class TProcessComposite
extends TProcess_Impl


Field Summary
(package private)  Vector iListCompositeIn
          The list of child process
(package private)  Vector iListCompositeOut
          The list of unlinked in XML_Port
(package private)  Hashtable iListInNotAffected
          The list of unlinked out XML_Port
(package private)  Hashtable iListOutNotAffected
          The list of unlinked in XML_Port
(package private)  Vector iProcessList
          The lsit of child process
static int NB_PROCESS_RISE
          The max number of process in a composite
 
Fields inherited from class fr.fluxmedia.transmorpher.TProcessFactory.TProcess_Impl
iListIn, iListOut, iName, iNbIn, iNbOut
 
Constructor Summary
TProcessComposite(String[] pIn, String[] pOut)
          The constructor : build a Composite process with pNbIn in Port, and pNbOut Out Port
 
Method Summary
 void addProcess(TProcess pProcess)
          Add a process to the child process list
 void CreateLink()
          Call it at the end of the addProcess call, to link all the children
 TProcess getProcess(String vName)
          Get the process with the given name
 void InsertCompositeInPort(String pName)
           
 void InsertCompositeOutPort(String pName)
           
 void InsertUnlinkedInPort(String pName, XML_Port pPort)
          Insert a new unlinked IN port, with its name
 void InsertUnlinkedOutPort(String pName, XML_Port pPort)
          Insert a new unlinked Out port, with its name
 TProcess internalCopy()
          copy of the composite.
 void LinkCompositePort()
           
 void removeUnlinkedInPort(String pName)
          remove an unlinked IN port, with its name
 void removeUnlinkedOutPort(String pName)
          remove an unlinked Out port, with its name
 
Methods inherited from class fr.fluxmedia.transmorpher.TProcessFactory.TProcess_Impl
Copy, getIn, getIn, getName, getOut, getOut, setIn, setName, setOut
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

NB_PROCESS_RISE

public static final int NB_PROCESS_RISE
The max number of process in a composite

iListOutNotAffected

Hashtable iListOutNotAffected
The list of unlinked in XML_Port

iListCompositeOut

Vector iListCompositeOut
The list of unlinked in XML_Port

iListInNotAffected

Hashtable iListInNotAffected
The list of unlinked out XML_Port

iListCompositeIn

Vector iListCompositeIn
The list of child process

iProcessList

Vector iProcessList
The lsit of child process
Constructor Detail

TProcessComposite

public TProcessComposite(String[] pIn,
                         String[] pOut)
                  throws TransformerException,
                         TransformerConfigurationException,
                         SAXException,
                         IOException
The constructor : build a Composite process with pNbIn in Port, and pNbOut Out Port
Method Detail

InsertUnlinkedInPort

public final void InsertUnlinkedInPort(String pName,
                                       XML_Port pPort)
Insert a new unlinked IN port, with its name

InsertUnlinkedOutPort

public final void InsertUnlinkedOutPort(String pName,
                                        XML_Port pPort)
Insert a new unlinked Out port, with its name

removeUnlinkedInPort

public final void removeUnlinkedInPort(String pName)
remove an unlinked IN port, with its name

removeUnlinkedOutPort

public final void removeUnlinkedOutPort(String pName)
remove an unlinked Out port, with its name

InsertCompositeOutPort

public final void InsertCompositeOutPort(String pName)

InsertCompositeInPort

public final void InsertCompositeInPort(String pName)

addProcess

public final void addProcess(TProcess pProcess)
Add a process to the child process list

getProcess

public final TProcess getProcess(String vName)
Get the process with the given name

CreateLink

public final void CreateLink()
                      throws SAXException
Call it at the end of the addProcess call, to link all the children

LinkCompositePort

public final void LinkCompositePort()

internalCopy

public TProcess internalCopy()
copy of the composite. This is the complex method of the TProcess classes. Instead we must copy all the child and linked them correctly. This method is call by the copy method of the XMLProcess_impl classes
Overrides:
internalCopy in class TProcess_Impl

INRIA & FluxMedia

...