INRIA & FluxMedia

fr.fluxmedia.transmorpher.Graph
Class Repeat

java.lang.Object
  |
  +--java.util.Observable
        |
        +--fr.fluxmedia.transmorpher.Graph.CallImpl
              |
              +--fr.fluxmedia.transmorpher.Graph.Repeat
All Implemented Interfaces:
Call, java.io.Serializable

public class Repeat
extends CallImpl

See Also:
Serialized Form

Field Summary
(package private)  LinearIndexedStruct iterators
          The iterators changing the variables
private  RepeatProcess process
          The process body of the repeat is made of a process
private  PortList tests
          The ports that must be tested for equality at each iteration
 
Fields inherited from class fr.fluxmedia.transmorpher.Graph.CallImpl
iAttributes, id, inPorts, nullified, outPorts, parameters, visited
 
Fields inherited from class java.util.Observable
changed, obs
 
Constructor Summary
Repeat(java.lang.String n, int t, Process p, int in, int out, int buf)
          The constructor.
 
Method Summary
 void addIterator(Iterator iterator)
          Adds an iterator to this repeat.
 void clearNull()
          clear the "null" mark
 void clearVisited()
          clear the "visited" mark
 void createProcess(TProcessComposite currentProcess, TProcessFactory iProcessFactory)
          Creates the execution structure of a repeat and adds it to the current composite process.
 void generateJavaCode(ReadWrite file)
          Prints the Java code for the execution of the call.
 void generatePorts(ReadWrite file)
           
 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 getTests()
          Returns test ports list.
 PortList inBuf()
          Returns the list of buffering ports.
 PortList outBuf()
           
 void retroNull(PortList out, PortList in)
           
 PortList tests()
           
 
Methods inherited from class fr.fluxmedia.transmorpher.Graph.CallImpl
addIn, addIn, addOut, addOut, generateParameters, getAttributes, getId, getParameters, getProcess, getType, inPorts, 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, registerNatives, wait, wait, wait
 

Field Detail

tests

private PortList tests
The ports that must be tested for equality at each iteration

process

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

iterators

LinearIndexedStruct iterators
The iterators changing the variables
Constructor Detail

Repeat

public Repeat(java.lang.String n,
              int t,
              Process p,
              int in,
              int out,
              int buf)
The constructor. Creates a new Repeat Call.
Method Detail

getTests

public PortList getTests()
Returns test ports list.
Returns:
a test port list.

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.

tests

public PortList tests()

outBuf

public PortList outBuf()

clearNull

public void clearNull()
Description copied from class: CallImpl
clear the "null" mark
Overrides:
clearNull in class CallImpl

clearVisited

public void clearVisited()
Description copied from class: CallImpl
clear the "visited" mark
Overrides:
clearVisited in class CallImpl

retroNull

public void retroNull(PortList out,
                      PortList in)

generateXML

public void generateXML()
Prints the XML expression of the call
Overrides:
generateXML in class CallImpl

generateJavaCode

public void generateJavaCode(ReadWrite file)
Prints the Java code for the execution of the call.
Overrides:
generateJavaCode in class CallImpl
Parameters:
file - - the file to write in

generatePorts

public void generatePorts(ReadWrite file)
Overrides:
generatePorts in class CallImpl

createProcess

public final void createProcess(TProcessComposite currentProcess,
                                TProcessFactory iProcessFactory)
Creates the execution structure of a repeat and adds it to the current composite process.
Overrides:
createProcess in class CallImpl
Parameters:
currentProcess - - execution structure is added to this process.
iProcessFactory - - the factory to use for creating the execution structure.

INRIA & FluxMedia

..no bottom yet...