INRIA & FluxMedia

fr.fluxmedia.transmorpher.graph
Class Merge

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

public class Merge
extends CallImpl

This class allows to instanciate a call for an object able to merge multiple SAX events flows in one flow. There is two ways to create a Merge object :

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

Field Summary
 
Fields inherited from class fr.fluxmedia.transmorpher.graph.CallImpl
attributes, id, inPorts, nullified, outPorts, parameters, process, visited
 
Constructor Summary
Merge()
          Creates a simple instance of a Merge
Merge(java.lang.String id, java.lang.String type)
          Creates an instance of a Merge with an id and a type
Merge(java.lang.String id, java.lang.String type, Process process)
          Creates an instance of a Merge with an id ,a type and a process
Merge(java.lang.String id, java.lang.String type, Process process, int in)
          Creates an instance of a Merge with an id ,a type , a process and a number of in.
 
Method Summary
 void createProcess(TProcessComposite currentProcess)
          Creates a TMerger corresponding to this Merge object and adds it to the composite process in the execution structure.
 void generateJavaCode(Writer file)
          Prints a java code description of this instance of Merge
 void generateXML()
          Prints an XML description of this instance of Merge
 void retroNull(PortList out, PortList in)
          Propagate the nullify of its sole output to all the input
 
Methods inherited from class fr.fluxmedia.transmorpher.graph.CallImpl
addIn, addIn, addOut, addOut, clearNull, clearVisited, generateParameters, generatePorts, 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
 

Constructor Detail

Merge

public Merge()
Creates a simple instance of a Merge


Merge

public Merge(java.lang.String id,
             java.lang.String type)
Creates an instance of a Merge with an id and a type

Parameters:
id - The id of instance to create
type - The type of instance to create

Merge

public Merge(java.lang.String id,
             java.lang.String type,
             Process process)
Creates an instance of a Merge with an id ,a type and a process

Parameters:
id - The id of instance to create
type - The type of instance to create
process - The process that owns this instance

Merge

public Merge(java.lang.String id,
             java.lang.String type,
             Process process,
             int in)
Creates an instance of a Merge with an id ,a type , a process and a number of in.

Parameters:
id - The id of instance to create
type - The type of instance to create
process - The process that owns this instance
in - The number of in ports
Method Detail

retroNull

public void retroNull(PortList out,
                      PortList in)
Propagate the nullify of its sole output to all the input

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

generateXML

public void generateXML()
Prints an XML description of this instance of Merge

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

createProcess

public final void createProcess(TProcessComposite currentProcess)
Creates a TMerger corresponding to this Merge object and adds it to the composite process in the execution structure.

Specified by:
createProcess in interface Call
Overrides:
createProcess in class CallImpl
Parameters:
currentProcess - the container for this serializer

generateJavaCode

public void generateJavaCode(Writer file)
                      throws java.io.IOException
Prints a java code description of this instance of Merge

Specified by:
generateJavaCode in interface Call
Specified by:
generateJavaCode in class CallImpl
Parameters:
file - a writer used for printing the code in a file
Throws:
java.io.IOException - when an IO errors occur

INRIA & FluxMedia

..no bottom yet...