|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.fluxmedia.transmorpher.graph.Iterator
public class Iterator
Transmorpher graph iterator implementation The iterator class introduces the use of a variable which will be iterated over a particular structure. It must contain a name, a type and a number of other parameters that will specify its behavior.
Field Summary | |
---|---|
protected java.lang.String |
name
Iterator name. |
protected Parameters |
parameters
The iterator parameters. |
protected Repeat |
repeat
The owner . |
protected java.lang.String |
type
Iterator type |
Constructor Summary | |
---|---|
Iterator()
Creates a simple instance of iterator. |
|
Iterator(java.lang.String name,
java.lang.String type,
Repeat repeat)
Creates an instance of iterator. |
Method Summary | |
---|---|
void |
createIterator(TProcessComposite process)
Creates a new TIterator corresponding to the iterator and adds it to the current composite process (this must be a TLoop because iterators cannot be used inside others components) |
void |
generateJavaCode(Writer file)
Generates java code for this component. |
void |
generateParameters(Writer file)
Generates java code for the parameters of this iterator. |
void |
generateXML()
Prints the XML expression of the call. |
java.lang.String |
getName()
Returns the name. |
Parameters |
getParameters()
Returns parameters. |
Repeat |
getRepeat()
Returns the owner (repeat) of the iterator. |
java.lang.String |
getType()
Returns iterator type. |
private TIterator |
newIterator(java.lang.String type,
java.lang.Object[] params)
Description of the Method |
void |
setParameters(Parameters parameters)
Sets parameters. |
void |
setType(java.lang.String type)
Sets the type of iterator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected Parameters parameters
protected java.lang.String type
protected Repeat repeat
Constructor Detail |
---|
public Iterator()
public Iterator(java.lang.String name, java.lang.String type, Repeat repeat)
name
- the name of the iterator.type
- the type of the iterator.repeat
- the owner of the iterator.Method Detail |
---|
public void generateXML()
public java.lang.String getName()
public Repeat getRepeat()
public void setType(java.lang.String type)
type
- the type.public java.lang.String getType()
public void setParameters(Parameters parameters)
parameters
- The new parameters valuepublic Parameters getParameters()
private TIterator newIterator(java.lang.String type, java.lang.Object[] params)
type
- Description of the Parameterparams
- Description of the Parameter
public void createIterator(TProcessComposite process)
process
- the current TLoop.public void generateJavaCode(Writer file) throws java.io.IOException
file
- a writer for printing in a file
java.io.IOException
- when an IO errors occurpublic void generateParameters(Writer file) throws java.io.IOException
file
- a writer for printing in a file
java.io.IOException
- when an IO errors occur
|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |