Math2mat
Public Member Functions

m2m.backend.structure.LoopWhile Class Reference

Inheritance diagram for m2m.backend.structure.LoopWhile:
Inheritance graph
[legend]
Collaboration diagram for m2m.backend.structure.LoopWhile:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LoopWhile ()
String getXmlTagName ()
boolean insideFromXml (org.w3c.dom.Element el, Function newFunc)
void insideToXml (org.w3c.dom.Element el, Document dom, boolean shortRef)
void setCond (Vector< Element > cond)
Vector< ElementgetCond ()
String toString (int level)
String toSchematic (int level, String prefix, String boxFormat, String color)
String toOctave (int level)

Detailed Description

Describe a loop for.

Author:
Trolliet Gregory
gregory.trolliet@hesge.ch
Version:
0.1

Definition at line 22 of file LoopWhile.java.


Constructor & Destructor Documentation

m2m.backend.structure.LoopWhile.LoopWhile ( )

Construct an empty loop (1:1:1)

Definition at line 32 of file LoopWhile.java.


Member Function Documentation

Vector<Element> m2m.backend.structure.LoopWhile.getCond ( )

Get the conditional test element list

Returns:
Element list

Definition at line 92 of file LoopWhile.java.

String m2m.backend.structure.LoopWhile.getXmlTagName ( ) [virtual]

Reimplemented from m2m.backend.structure.Function.

Definition at line 38 of file LoopWhile.java.

boolean m2m.backend.structure.LoopWhile.insideFromXml ( org.w3c.dom.Element  el,
Function  newFunc 
)

Reimplemented from m2m.backend.structure.Function.

Definition at line 43 of file LoopWhile.java.

void m2m.backend.structure.LoopWhile.insideToXml ( org.w3c.dom.Element  el,
Document  dom,
boolean  shortRef 
)

Reimplemented from m2m.backend.structure.Function.

Definition at line 65 of file LoopWhile.java.

void m2m.backend.structure.LoopWhile.setCond ( Vector< Element cond)

Set the conditional test element list

Parameters:
condElement list

Definition at line 84 of file LoopWhile.java.

String m2m.backend.structure.LoopWhile.toOctave ( int  level)

Generate the octave code for the element

Parameters:
levelIndent level
Returns:
Octave code

Reimplemented from m2m.backend.structure.Function.

Definition at line 131 of file LoopWhile.java.

String m2m.backend.structure.LoopWhile.toSchematic ( int  level,
String  prefix,
String  boxFormat,
String  color 
)

Create the schematic file, use with graphviz to generate schematic

Parameters:
levelLevel of tab
prefixPrefix for the element name
boxFormatFormat of box (rectangle, triangle, ...)
colorColor of the block
Returns:
Generate string

Reimplemented from m2m.backend.structure.Function.

Definition at line 114 of file LoopWhile.java.

String m2m.backend.structure.LoopWhile.toString ( int  level)

Convert the object to a string that contains all the parametres

Parameters:
levelIndent of the string
Returns:
String

Reimplemented from m2m.backend.structure.Function.

Definition at line 97 of file LoopWhile.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations