INRIA & FluxMedia

fr.fluxmedia.transmorpher.graph
Class ApplyProcess

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

public class ApplyProcess
extends ApplyImpl

This class allows to create an object able to call a transformation defined in a Process

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

Fields inherited from class fr.fluxmedia.transmorpher.graph.CallImpl
attributes, id, inPorts, nullified, outPorts, parameters, process, visited
 
Fields inherited from class java.util.Observable
changed, obs
 
Constructor Summary
ApplyProcess(java.lang.String id, java.lang.String type)
          Creates an instance of ApplyProcess with an id and a type
ApplyProcess(java.lang.String id, java.lang.String type, Process process)
          Constructor for the ApplyProcess object
ApplyProcess(java.lang.String id, java.lang.String type, Process process, java.lang.String reference)
          Constructor for the ApplyProcess object
ApplyProcess(java.lang.String id, java.lang.String type, Process process, java.lang.String reference, int in, int out)
          Constructor for the ApplyProcess object
ApplyProcess(java.lang.String id, java.lang.String type, java.lang.String reference)
          Creates an instance of ApplyProcess with an id, a type and a process
 
Method Summary
 void createProcess(TProcessComposite currentProcess)
          Creates a TApplyProcess corresponding to this ApplyProcess object and adds it to the composite process in the execution structure.
 void generateJavaCode(Writer file)
          Prints a java code description of this instance WARNING :This is the main problematic aspect: There is a possible recursion in Process calls: they should thus be stacked for working correctly
 void generateLocalName(Writer file)
          Do nothing ( to remove ?)
 void generateXML()
          Prints an XML description of this instance
 void retroNull(PortList out, PortList in)
          ask a nullify call to the called process
 void setUp()
          Description of the Method
 
Methods inherited from class fr.fluxmedia.transmorpher.graph.ApplyImpl
getRef, setRef
 
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, 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
 

Constructor Detail

ApplyProcess

public ApplyProcess(java.lang.String id,
                    java.lang.String type)
Creates an instance of ApplyProcess with an id and a type
Parameters:
id - The id of the instance to create
type - The type of the instance to create

ApplyProcess

public ApplyProcess(java.lang.String id,
                    java.lang.String type,
                    java.lang.String reference)
Creates an instance of ApplyProcess with an id, a type and a process
Parameters:
id - The id of the instance to create
type - The type of the instance to create
reference - The reference of the process to apply

ApplyProcess

public ApplyProcess(java.lang.String id,
                    java.lang.String type,
                    Process process)
Constructor for the ApplyProcess object
Parameters:
id - The id of the instance to create
type - The type of the instance to create
process - The process that owns this instance

ApplyProcess

public ApplyProcess(java.lang.String id,
                    java.lang.String type,
                    Process process,
                    java.lang.String reference)
Constructor for the ApplyProcess object
Parameters:
id - The id of the instance to create
type - The type of the instance to create
process - The process that owns this instance
reference - The reference of the process to apply

ApplyProcess

public ApplyProcess(java.lang.String id,
                    java.lang.String type,
                    Process process,
                    java.lang.String reference,
                    int in,
                    int out)
Constructor for the ApplyProcess object
Parameters:
id - The id of the instance to create
type - The type of the instance to create
process - The process that owns this instance
reference - The reference of the process to apply
in - The number of in ports
out - The number of out ports
Method Detail

retroNull

public void retroNull(PortList out,
                      PortList in)
ask a nullify call to the called process
Overrides:
retroNull in class ApplyImpl
Parameters:
out - Description of the Parameter
in - Description of the Parameter

generateXML

public void generateXML()
Prints an XML description of this instance
Overrides:
generateXML in class CallImpl

createProcess

public final void createProcess(TProcessComposite currentProcess)
Creates a TApplyProcess corresponding to this ApplyProcess object and adds it to the composite process in the execution structure.
Overrides:
createProcess in class CallImpl
Parameters:
currentProcess - the container for this serializer

setUp

public void setUp()
Description copied from interface: Call
Description of the Method
Overrides:
setUp in class CallImpl

generateJavaCode

public void generateJavaCode(Writer file)
                      throws java.io.IOException
Prints a java code description of this instance WARNING :This is the main problematic aspect: There is a possible recursion in Process calls: they should thus be stacked for working correctly
Overrides:
generateJavaCode in class CallImpl
Parameters:
file - The writer used for printing the code in a file
Throws:
java.io.IOException - when an IO errors occur

generateLocalName

public void generateLocalName(Writer file)
Do nothing ( to remove ?)
Parameters:
file - Description of the Parameter

INRIA & FluxMedia

..no bottom yet...