INRIA & FluxMedia

fr.fluxmedia.transmorpher.graph
Class Process

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

public class Process
extends TransformationImpl

Transmorpher graph processes definitions.

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

Field Summary
protected  LinearIndexedStruct calls
          The storage object for the calls of this Process instance
protected  java.util.Hashtable channels
          The storage object for the channels of this Process instance
 
Fields inherited from class fr.fluxmedia.transmorpher.graph.TransformationImpl
attributes, inPorts, name, outPorts, parameters, transmorpher, type
 
Constructor Summary
Process(java.lang.String name, Transmorpher owner)
          Creates an instance of Process
Process(java.lang.String name, Transmorpher owner, int nbIn, int nbOut)
          Constructor for the Process object
 
Method Summary
 void addCall(Call call)
          Adds a Call instance in this Process
 void addChannel(Channel channel)
          Adds a channel to this process
 void clearNull()
          Description of the Method
 void clearVisited()
          Description of the Method
 void deleteCallsTo(java.lang.String name)
          Delete all the calls to a particular transformation name is the name of a transformation (local or imported) to be suppressed.
 void generateJavaCode(Writer file, LinearIndexedStruct externs)
          Prints a java code description of this process instance
 void generateXML()
          Prints the XML expression of the process
 java.util.Hashtable getAllChannels()
          Gets the all channels of the Process object
 Call getCall(java.lang.String name)
          Gets the call attribute of the Process object
 LinearIndexedStruct getCalls()
          Gets the calls attribute of the Process object
 Channel getChannel(java.lang.String name)
          Gets the channel of this Process object cooresponding to the given name
 java.util.Enumeration getChannels()
          Gets an enumeration of the channels of this Process object
 void removeCall(Call call)
          Removes a call from this Process
 void removeCallAndPorts(Call c)
          Delete a call (and the channels connected to this call)
 void removeChannel(Channel channel)
          Remove a channel
 void removeChannelAndPorts(Channel c)
          Delete a channel and Port associated.
 void retroNull()
          Description of the Method
 void retroNull(PortList out, PortList in)
          Description of the Method
 boolean retroNull(PortList out, PortList in, boolean b)
          Description of the Method
 void setUp()
           
private  java.lang.String XMLName()
          Description of the Method
 
Methods inherited from class fr.fluxmedia.transmorpher.graph.TransformationImpl
addIn, addIn, addOut, addOut, getAttributes, getName, getParameters, getTransmorpher, 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

calls

protected LinearIndexedStruct calls
The storage object for the calls of this Process instance


channels

protected java.util.Hashtable channels
The storage object for the channels of this Process instance

Constructor Detail

Process

public Process(java.lang.String name,
               Transmorpher owner)
Creates an instance of Process

Parameters:
name - The name of this instance
owner - The Transmorpher instance that owns this instance

Process

public Process(java.lang.String name,
               Transmorpher owner,
               int nbIn,
               int nbOut)
Constructor for the Process object

Parameters:
name - The name of this instance
owner - The Transmorpher instance that owns this instance
nbIn - The number of in ports of this instance
nbOut - The number of out ports of this instance
Method Detail

addCall

public void addCall(Call call)
Adds a Call instance in this Process

Parameters:
call - The call to add

removeCall

public void removeCall(Call call)
Removes a call from this Process

Parameters:
call - The call instance to remove

deleteCallsTo

public void deleteCallsTo(java.lang.String name)
Delete all the calls to a particular transformation name is the name of a transformation (local or imported) to be suppressed.

Parameters:
name - The name of the transformation instance to remove

removeCallAndPorts

public void removeCallAndPorts(Call c)
Delete a call (and the channels connected to this call)

Parameters:
c - Description of the Parameter

removeChannelAndPorts

public void removeChannelAndPorts(Channel c)
Delete a channel and Port associated.

Parameters:
c - Description of the Parameter

getCalls

public LinearIndexedStruct getCalls()
Gets the calls attribute of the Process object

Returns:
The calls value

getCall

public Call getCall(java.lang.String name)
Gets the call attribute of the Process object

Parameters:
name - The name of the call required
Returns:
The call value

addChannel

public void addChannel(Channel channel)
Adds a channel to this process

Parameters:
channel - The channel to add

getChannels

public java.util.Enumeration getChannels()
Gets an enumeration of the channels of this Process object

Returns:
The channels enumeration

getAllChannels

public java.util.Hashtable getAllChannels()
Gets the all channels of the Process object

Returns:
The allChannels

getChannel

public Channel getChannel(java.lang.String name)
Gets the channel of this Process object cooresponding to the given name

Parameters:
name - The name of the channel
Returns:
The channel if exist else null

removeChannel

public void removeChannel(Channel channel)
Remove a channel

Parameters:
channel - The channel to remove

retroNull

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

Specified by:
retroNull in interface Transformation
Overrides:
retroNull in class TransformationImpl
Parameters:
out - Description of the Parameter
in - Description of the Parameter

retroNull

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

Parameters:
out - Description of the Parameter
in - Description of the Parameter
b - Description of the Parameter
Returns:
Description of the Return Value

retroNull

public void retroNull()
Description of the Method


clearNull

public void clearNull()
Description of the Method


clearVisited

public void clearVisited()
Description of the Method


XMLName

private java.lang.String XMLName()
Description of the Method

Returns:
Description of the Return Value

generateXML

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

Specified by:
generateXML in interface Transformation
Specified by:
generateXML in class TransformationImpl

setUp

public void setUp()

generateJavaCode

public void generateJavaCode(Writer file,
                             LinearIndexedStruct externs)
                      throws java.io.IOException
Prints a java code description of this process instance

Specified by:
generateJavaCode in interface Transformation
Specified by:
generateJavaCode in class TransformationImpl
Parameters:
file - The write used for printing in a file
externs - Description of the Parameter
Throws:
java.io.IOException - when IO errors occur.

INRIA & FluxMedia

..no bottom yet...