INRIA & FluxMedia

fr.fluxmedia.transmorpher.graph
Class RepeatProcess

java.lang.Object
  extended by java.util.Observable
      extended by fr.fluxmedia.transmorpher.graph.TransformationImpl
          extended by fr.fluxmedia.transmorpher.graph.Process
              extended by fr.fluxmedia.transmorpher.graph.RepeatProcess
All Implemented Interfaces:
Transformation

public class RepeatProcess
extends Process

Transmorpher graph repeat process definitions

Since:
jdk 1.3 / SAX 2.0
Author:
Jerome.Euzenat@inrialpes.fr

Field Summary
protected  PortList buf
          The list of buffered ports
protected  Repeat caller
          The repeat call
 
Fields inherited from class fr.fluxmedia.transmorpher.graph.Process
calls, channels
 
Fields inherited from class fr.fluxmedia.transmorpher.graph.TransformationImpl
attributes, inPorts, name, outPorts, parameters, transmorpher, type
 
Constructor Summary
RepeatProcess(java.lang.String name, Repeat repeat, int nbIn, int nbOut, int nbBuf)
          Constructor for the RepeatProcess object
 
Method Summary
 PortList bufPorts()
          Returns buf list
 void generateJavaCode(Writer file)
          Prints the Java code for the execution of the call
 void generateXML()
          Prints the XML expression of the process
 Repeat getCaller()
          Gets the caller attribute of the RepeatProcess object
 Transmorpher getTransmorpher()
          This implementation takes into account the fact that this particular process body is imbedded into a Call.
 void setUp()
           
 
Methods inherited from class fr.fluxmedia.transmorpher.graph.Process
addCall, addChannel, clearNull, clearVisited, deleteCallsTo, generateJavaCode, getAllChannels, getCall, getCalls, getChannel, getChannels, removeCall, removeCallAndPorts, removeChannel, removeChannelAndPorts, retroNull, retroNull, retroNull
 
Methods inherited from class fr.fluxmedia.transmorpher.graph.TransformationImpl
addIn, addIn, addOut, addOut, getAttributes, getName, getParameters, getType, inPorts, outPorts, setName, setParameters, setType, 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, toString, wait, wait, wait
 

Field Detail

caller

protected Repeat caller
The repeat call


buf

protected PortList buf
The list of buffered ports

Constructor Detail

RepeatProcess

public RepeatProcess(java.lang.String name,
                     Repeat repeat,
                     int nbIn,
                     int nbOut,
                     int nbBuf)
Constructor for the RepeatProcess object

Parameters:
name - The name of the Repeat Process to create
repeat - The Repeat Call insatnce corresponding to this RepeatProcess
nbIn - The number of In ports
nbOut - The number of Out ports
nbBuf - The number of buffered ports
Method Detail

bufPorts

public PortList bufPorts()
Returns buf list

Returns:
Description of the Return Value

generateXML

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

Specified by:
generateXML in interface Transformation
Overrides:
generateXML in class Process

generateJavaCode

public void generateJavaCode(Writer file)
Prints the Java code for the execution of the call

Parameters:
file - Description of the Parameter

setUp

public void setUp()
Overrides:
setUp in class Process

getCaller

public Repeat getCaller()
Gets the caller attribute of the RepeatProcess object

Returns:
The caller value

getTransmorpher

public Transmorpher getTransmorpher()
This implementation takes into account the fact that this particular process body is imbedded into a Call. This works recursively since that call can be embedded in the same way and then will use the same kind of getTransmorpher.

Specified by:
getTransmorpher in interface Transformation
Overrides:
getTransmorpher in class TransformationImpl
Returns:
The transmorpher value

INRIA & FluxMedia

..no bottom yet...