|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.fluxmedia.transmorpher.engine.TProcess_Impl
fr.fluxmedia.transmorpher.engine.TProcessComposite
fr.fluxmedia.transmorpher.engine.TLoop
public final class TLoop
This class represents a repeat process. A Loop can accept several iterator of different types.
Field Summary | |
---|---|
(package private) XML_Port[] |
iListBuf
Buf ports of this process |
(package private) java.lang.String[] |
iListLocalBuf
Buf ports of this process |
(package private) java.lang.String[] |
iListLocalIn
In ports of this process |
(package private) java.lang.String[] |
iListLocalOut
Out ports of this process |
(package private) boolean |
isFirstLoop
true if it's first loop |
(package private) java.util.Vector |
iterators
List of iterator |
(package private) java.util.Vector |
listOfProcess
List of inner processes |
protected java.util.Hashtable |
listOfProcessBuf
the list of PortProcess buf |
(package private) java.util.Vector |
listOfSerializer
List of inner serializer |
(package private) int |
loopCounter
counter of loop. |
(package private) LoopManagerHandler[] |
managers
Controller Handler |
(package private) java.lang.String[] |
nameBuf
Buf name |
(package private) int |
numberOfManagers
number of call to manage method |
(package private) boolean |
stop
flag for iterators, if one of them is finished then its value is true |
Fields inherited from class fr.fluxmedia.transmorpher.engine.TProcessComposite |
---|
listOfApplyProcess, listOfChannel, listOfGenerator, listOfProcessBasic, listOfProcessIn, listOfProcessOut, NB_PROCESS_RISE |
Fields inherited from class fr.fluxmedia.transmorpher.engine.TProcess_Impl |
---|
debug, id, iListIn, iListOfParameters, iListOut, iName, iNbIn, iNbOut, nameFather, nameIn, nameOut |
Constructor Summary | |
---|---|
TLoop(java.lang.String[] pIn,
java.lang.String[] pOut,
java.lang.String[] pBuf,
Parameters pParam,
StringParameters staticAttributes)
The constructor |
Method Summary | |
---|---|
void |
addIterator(TIterator iterator)
Adds an Iterator to the Loop. |
void |
addProcess(TProcess process)
Adds a process to the list of process of the TLoop object |
void |
addSerializer(TProcess process)
Adds a process (TSerializer) to the list of serializer of the TLoop object |
void |
bindPorts(TProcess process)
links ports and creates feedbacks. |
void |
generatePort()
Generates all the process ports.In this case, nothing to do , ports have been generated before. |
void |
innerGeneratePort(java.lang.String[] locIn,
java.lang.String[] locOut,
java.lang.String[] locBuf)
To setup the Loop manager, the ports of this Loop have to be created before inner process ports. |
private boolean |
isReady()
Gets the ready attribute of the TLoop object |
void |
manage()
Manages the loop. |
void |
reset()
Initializes all inner processes for a new loop. |
void |
setContentHandler(org.xml.sax.ContentHandler c,
int i)
Sets one of the output handler of this loop with the content handler of the following process. |
Methods inherited from class fr.fluxmedia.transmorpher.engine.TProcessComposite |
---|
addApplyProcess, addChannel, addGenerator, bindParameters, bindPorts, execProcess, getAllProcess, getApplyProcess, getChannel, getGenerator, getListOfProcessIn, getListOfProcessOut, getProcessBasic, showChannel |
Methods inherited from class fr.fluxmedia.transmorpher.engine.TProcess_Impl |
---|
getFatherName, getId, getIn, getIn, getIn, getName, getNameIn, getNameIn, getNameOut, getNameOut, getOut, getOut, getOut, getParameter, getParameterNames, getParameters, setDebug, setFatherName, setId, setIn, setName, setOut, setParameter, setParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
LoopManagerHandler[] managers
java.lang.String[] iListLocalIn
java.lang.String[] iListLocalOut
java.lang.String[] iListLocalBuf
java.util.Vector listOfProcess
java.lang.String[] nameBuf
XML_Port[] iListBuf
boolean isFirstLoop
boolean stop
int numberOfManagers
int loopCounter
java.util.Vector iterators
java.util.Vector listOfSerializer
protected java.util.Hashtable listOfProcessBuf
Constructor Detail |
---|
public TLoop(java.lang.String[] pIn, java.lang.String[] pOut, java.lang.String[] pBuf, Parameters pParam, StringParameters staticAttributes) throws javax.xml.transform.TransformerException, javax.xml.transform.TransformerConfigurationException, org.xml.sax.SAXException, java.io.IOException
pIn
- in port namespOut
- out port namespBuf
- buffer port namespParam
- Description of the ParameterstaticAttributes
- Description of the Parameter
javax.xml.transform.TransformerException
- Description of the Exception
javax.xml.transform.TransformerConfigurationException
- Description of the Exception
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.
java.io.IOException
- Description of the ExceptionMethod Detail |
---|
public void bindPorts(TProcess process) throws TMRuntimeException, TMException, org.xml.sax.SAXException
bindPorts
in class TProcessComposite
process
- The current process to link to the others
TMRuntimeException
- Description of the Exception
TMException
- Description of the Exception
org.xml.sax.SAXException
- Description of the Exceptionpublic void innerGeneratePort(java.lang.String[] locIn, java.lang.String[] locOut, java.lang.String[] locBuf)
locIn
- local name of in portslocOut
- local name of out portslocBuf
- local name of buf portspublic void generatePort()
generatePort
in interface TProcess
generatePort
in class TProcessComposite
public void reset() throws TMRuntimeException, TMException, org.xml.sax.SAXException
reset
in interface TProcess
reset
in class TProcess_Impl
TMRuntimeException
- Description of the Exception
TMException
- Description of the Exception
org.xml.sax.SAXException
- Description of the Exceptionpublic void setContentHandler(org.xml.sax.ContentHandler c, int i)
c
- the next content handler.i
- manager position.public void addIterator(TIterator iterator)
iterator
- The iterator to be added to this Looppublic void addProcess(TProcess process)
addProcess
in class TProcessComposite
process
- The process to be added to the list of processpublic void addSerializer(TProcess process)
process
- The process to be added to the list of serializerprivate boolean isReady()
public void manage()
|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |