fr.fluxmedia.transmorpher.graph
Class Dispatch
java.lang.Object
|
+--java.util.Observable
|
+--fr.fluxmedia.transmorpher.graph.CallImpl
|
+--fr.fluxmedia.transmorpher.graph.Dispatch
- All Implemented Interfaces:
- Call, java.io.Serializable
- public class Dispatch
- extends CallImpl
This class allows to instanciate a call for an object able to produce multiple SAX events flows.
There is two ways to create a Dispatch object :
- Give an XML representation of the dispatch to instanciate :
<dispatch type="broadcast" id="disp" in="i1" out="o1 o2 o3"/>
For a Dispatch object, one in port is required and at least two out ports.
Type Attribute describe the type of the TDispatcher to create : a built-in TDispatcher (stdlib) or
a specific TDispatcher (tmcontrib).
- Use Flowcomposer ( a GUI tool for transmorpher )
- Since:
- jdk 1.3 / SAX 2.0
- Author:
- Jerome.Euzenat@inrialpes.fr
- See Also:
- Serialized Form
Fields inherited from class java.util.Observable |
changed, obs |
Constructor Summary |
Dispatch()
Creates a simple instance of Dispatch |
Dispatch(java.lang.String id,
java.lang.String type)
Creates an instance of Dispatch with an id and a type |
Dispatch(java.lang.String id,
java.lang.String type,
Process process)
Creates an instance of Dispatch with an id , a type and a process |
Dispatch(java.lang.String id,
java.lang.String type,
Process process,
int out)
Constructor for the Dispatch object |
Method Summary |
void |
createProcess(TProcessComposite currentProcess)
Creates a TDispatcher corresponding to this Dispatch object and adds it to the composite
process in the execution structure. |
void |
generateJavaCode(Writer file)
Prints a java code description of this Dispatch instance |
void |
generateXML()
Prints an XML description of this Dispatch instance |
void |
retroNull(PortList out,
PortList in)
Propagates the nullity of all its output to its sole 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, registerNatives, wait, wait, wait |
Dispatch
public Dispatch()
- Creates a simple instance of Dispatch
Dispatch
public Dispatch(java.lang.String id,
java.lang.String type)
- Creates an instance of Dispatch with an id and a type
- Parameters:
id
- The id of the Dispatch instance to createtype
- The type of the Dispatch instance to create
Dispatch
public Dispatch(java.lang.String id,
java.lang.String type,
Process process)
- Creates an instance of Dispatch with an id , a type and a process
- Parameters:
id
- The id of the Dispatch instance to createtype
- The type of the Dispatch instance to createprocess
- The process that owns this Dispatch instance
Dispatch
public Dispatch(java.lang.String id,
java.lang.String type,
Process process,
int out)
- Constructor for the Dispatch object
- Parameters:
id
- The id of the Dispatch instance to createtype
- The type of the Dispatch instance to createprocess
- The process that owns this Dispatch instanceout
- The number of out ports
retroNull
public void retroNull(PortList out,
PortList in)
- Propagates the nullity of all its output to its sole input
- Parameters:
out
- Description of the Parameterin
- Description of the Parameter
generateXML
public void generateXML()
- Prints an XML description of this Dispatch instance
- Overrides:
generateXML
in class CallImpl
createProcess
public final void createProcess(TProcessComposite currentProcess)
- Creates a TDispatcher corresponding to this Dispatch object and adds it to the composite
process in the execution structure.
- 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 Dispatch instance
- Overrides:
generateJavaCode
in class CallImpl
- Parameters:
file
- a writer used for printing in a file- Throws:
java.io.IOException
- when an IO errors occur
..no bottom yet...