INRIA & FluxMedia

fr.fluxmedia.transmorpher.graph
Class Repeat

java.lang.Object
  extended by java.util.Observable
      extended by fr.fluxmedia.transmorpher.graph.CallImpl
          extended by fr.fluxmedia.transmorpher.graph.Repeat
All Implemented Interfaces:
Call, java.io.Serializable

public class Repeat
extends CallImpl

Transmorpher graph repeat node

Since:
jdk 1.3 / SAX 2.0
Author:
Jerome.Euzenat@inrialpes.fr
See Also:
Serialized Form

Field Summary
(package private)  LinearIndexedStruct iterators
          The iterators changing the parameters
protected  RepeatProcess process
          The process body of the repeat is made of a process
 
Fields inherited from class fr.fluxmedia.transmorpher.graph.CallImpl
attributes, id, inPorts, nullified, outPorts, parameters, visited
 
Constructor Summary
Repeat(java.lang.String name, Process owner, int nbIn, int nbOut, int nbBuf)
          The constructor.
 
Method Summary
 void addIterator(Iterator iterator)
          Adds an iterator to this repeat.
 void clearNull()
          Description of the Method
 void clearVisited()
          Description of the Method
 void createProcess(TProcessComposite currentProcess)
          Creates the execution structure of a repeat and adds it to the current composite process.
 void generateJavaCode(Writer file)
          Prints the Java code for the execution of the call.
 void generatePorts(Writer file)
          Description of the Method
 void generateXML()
          Prints the XML expression of the call
 Iterator getIterator(java.lang.String s)
          Returns the iterator corresponding to the name s.
 RepeatProcess getProcessBody()
          Returns the repeat process linked with this call.
 PortList inBuf()
          Returns the list of buffering ports.
 PortList outBuf()
          Description of the Method
 void retroNull(PortList out, PortList in)
          Description of the Method
 
Methods inherited from class fr.fluxmedia.transmorpher.graph.CallImpl
addIn, addIn, addOut, addOut, generateParameters, getAttributes, getId, getParameters, getProcess, getType, inPorts, newProcess, outPorts, retroNull, setId, setParameters, setType, setUp, toString, 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, wait, wait, wait
 

Field Detail

process

protected RepeatProcess process
The process body of the repeat is made of a process


iterators

LinearIndexedStruct iterators
The iterators changing the parameters

Constructor Detail

Repeat

public Repeat(java.lang.String name,
              Process owner,
              int nbIn,
              int nbOut,
              int nbBuf)
The constructor. Creates a new Repeat Call.

Parameters:
name - The name of the instance to create
owner - The Process that owns this instance
nbIn - The number of in ports
nbOut - The number of out ports
nbBuf - The number of buffered ports
Method Detail

addIterator

public void addIterator(Iterator iterator)
Adds an iterator to this repeat.

Parameters:
iterator - - iterator to add

getIterator

public Iterator getIterator(java.lang.String s)
Returns the iterator corresponding to the name s.

Parameters:
s - - name of an iterator to search for.
Returns:
the iterator.

getProcessBody

public RepeatProcess getProcessBody()
Returns the repeat process linked with this call.

Returns:
the repeat process.

inBuf

public PortList inBuf()
Returns the list of buffering ports.

Returns:
the list.

outBuf

public PortList outBuf()
Description of the Method

Returns:
Description of the Return Value

clearNull

public void clearNull()
Description of the Method

Specified by:
clearNull in interface Call
Overrides:
clearNull in class CallImpl

clearVisited

public void clearVisited()
Description of the Method

Specified by:
clearVisited in interface Call
Overrides:
clearVisited in class CallImpl

retroNull

public void retroNull(PortList out,
                      PortList in)
Description of the Method

Parameters:
out - Description of the Parameter
in - Description of the Parameter

generateXML

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

Specified by:
generateXML in interface Call
Specified by:
generateXML in class CallImpl

generateJavaCode

public void generateJavaCode(Writer file)
                      throws java.io.IOException
Prints the Java code for the execution of the call.

Specified by:
generateJavaCode in interface Call
Specified by:
generateJavaCode in class CallImpl
Parameters:
file - - the file to write in
Throws:
java.io.IOException - Description of the Exception

generatePorts

public void generatePorts(Writer file)
                   throws java.io.IOException
Description of the Method

Overrides:
generatePorts in class CallImpl
Parameters:
file - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

createProcess

public final void createProcess(TProcessComposite currentProcess)
Creates the execution structure of a repeat and adds it to the current composite process.

Specified by:
createProcess in interface Call
Overrides:
createProcess in class CallImpl
Parameters:
currentProcess - - execution structure is added to this process.

INRIA & FluxMedia

..no bottom yet...