|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
fr.fluxmedia.transmorpher.graph.CallImpl
public abstract class CallImpl
This class is an helper class which implements most of methods specified in the Call interface.
Field Summary | |
---|---|
protected StringParameters |
attributes
The storage object for the attributes of this call. |
protected java.lang.String |
id
The id of the call |
protected PortList |
inPorts
The storage structure for the in ports of this call |
protected boolean |
nullified
Description of the Field |
protected PortList |
outPorts
The storage structure for the out ports of this call |
protected Parameters |
parameters
The storage object for the parameters of this call. |
protected Process |
process
The process owner of this call |
protected boolean |
visited
Description of the Field |
Constructor Summary | |
---|---|
CallImpl()
|
|
CallImpl(java.lang.String id,
java.lang.String type,
Process process,
int numberOfIn,
int numberOfOut)
Constructor for the CallImpl object |
Method Summary | |
---|---|
void |
addIn(int index,
Port port)
Adds a feature to the In attribute of the CallImpl object |
void |
addIn(Port port)
Adds a feature to the In attribute of the CallImpl object |
void |
addOut(int index,
Port port)
Adds a feature to the Out attribute of the CallImpl object |
void |
addOut(Port port)
Adds a feature to the Out attribute of the CallImpl object |
void |
clearNull()
clear the "null" mark |
void |
clearVisited()
clear the "visited" mark |
void |
createProcess(TProcessComposite composite)
Creates the execution object ( from engine package ) corresponding to this call |
abstract void |
generateJavaCode(Writer file)
Prints the Java code for the execution of the call |
void |
generateParameters(Writer file)
This method is used for printing a java description of this Call parameters and attributes |
void |
generatePorts(Writer file)
This method is used for printing a java description of this Call ports |
abstract void |
generateXML()
Prints the XML expression of the call |
StringParameters |
getAttributes()
Gets the process attribute of the CallImpl object |
java.lang.String |
getId()
Gets the id attribute of the CallImpl object |
Parameters |
getParameters()
Gets the parameters attribute of the CallImpl object |
Process |
getProcess()
Gets the process attribute of the CallImpl object |
java.lang.String |
getType()
Gets the type attribute of the CallImpl object |
PortList |
inPorts()
Returns the storage object of the in ports |
static TProcess |
newProcess(java.lang.String type,
java.lang.Object[] params)
This method is used for creating the execution object corresponding to this call. |
PortList |
outPorts()
Returns the storage object of the out ports |
void |
retroNull()
propagate the null values of the input to the output. |
void |
setId(java.lang.String id)
A modification of the id involved a modification in the process Struct Storage. |
void |
setParameters(Parameters param)
Sets the parameters attribute of the CallImpl object |
void |
setType(java.lang.String t)
Sets the type attribute of the CallImpl object |
void |
setUp()
Description of the Method |
java.lang.String |
toString()
Prints a description of this object in a string form |
void |
update(java.lang.Object object)
A specific method for flowcomposer |
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 |
Field Detail |
---|
protected java.lang.String id
protected Parameters parameters
protected StringParameters attributes
protected PortList inPorts
protected PortList outPorts
protected boolean visited
protected boolean nullified
protected Process process
Constructor Detail |
---|
public CallImpl()
public CallImpl(java.lang.String id, java.lang.String type, Process process, int numberOfIn, int numberOfOut)
id
- The name of this calltype
- The type of this callprocess
- The process owner of this callnumberOfIn
- The number of in portsnumberOfOut
- The number of out portMethod Detail |
---|
public abstract void generateXML()
generateXML
in interface Call
public abstract void generateJavaCode(Writer file) throws java.io.IOException
generateJavaCode
in interface Call
file
- The writer used for printing the java code
java.io.IOException
- If an I/O error occurspublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getId()
getId
in interface Call
public void setId(java.lang.String id)
setId
in interface Call
id
- The new id valuepublic java.lang.String getType()
getType
in interface Call
public void setType(java.lang.String t)
setType
in interface Call
t
- The new type valuepublic void setParameters(Parameters param)
setParameters
in interface Call
param
- The new parameters valuepublic Parameters getParameters()
getParameters
in interface Call
public StringParameters getAttributes()
getAttributes
in interface Call
public Process getProcess()
getProcess
in interface Call
public void addOut(Port port)
port
- The feature to be added to the Out attributepublic void addIn(Port port)
port
- The feature to be added to the In attributepublic void addIn(int index, Port port)
index
- The index in the storage object at which port has to be addedport
- The feature to be added to the In attributepublic void addOut(int index, Port port)
index
- The index in the storage object at which port has to be addedport
- The feature to be added to the Out attributepublic PortList inPorts()
inPorts
in interface Call
public PortList outPorts()
outPorts
in interface Call
public void clearVisited()
clearVisited
in interface Call
public void clearNull()
clearNull
in interface Call
public void retroNull()
public void setUp()
Call
setUp
in interface Call
public void generatePorts(Writer file) throws java.io.IOException
file
- The writer used for printing in a file
java.io.IOException
- If an I/O error occurspublic void generateParameters(Writer file) throws java.io.IOException
file
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void createProcess(TProcessComposite composite)
createProcess
in interface Call
composite
- the container for the execution objectpublic void update(java.lang.Object object)
object
- Description of the Parameterpublic static final TProcess newProcess(java.lang.String type, java.lang.Object[] params)
type
- The type of the execution object to createparams
- the parameters to pass to the selected constructor
|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |