Math2mat
|
Public Member Functions | |
String | getXmlTagName () |
boolean | insideFromXml (org.w3c.dom.Element el, Function newFunc) |
void | insideToXml (org.w3c.dom.Element el, Document dom, boolean shortRef) |
LoopFor () | |
Element | copy (Function newFunc) |
void | setStart (SimpleVariable start) |
SimpleVariable | getStart () |
void | setIncr (SimpleVariable incr) |
SimpleVariable | getIncr () |
void | setEnd (SimpleVariable end) |
SimpleVariable | getEnd () |
void | setLoopVariables (Vector< SimpleVariable > vector) |
Vector< SimpleVariable > | getLoopVariables () |
void | setIterOperation (Operation op) |
Operation | getIterOperation () |
String | toString (int level) |
String | toSchematic (int level, String prefix, String boxFormat, String color) |
String | toOctave (int level) |
SimpleVariable | getLoopVariable (SimpleVariable var) |
SimpleVariable | getInitVariable (SimpleVariable var) |
m2m.backend.structure.LoopFor.LoopFor | ( | ) |
Construct an empty loop (1:1:1)
Definition at line 136 of file LoopFor.java.
Copy entirely the for loop.
Reimplemented from m2m.backend.structure.Function.
Definition at line 149 of file LoopFor.java.
SimpleVariable m2m.backend.structure.LoopFor.getEnd | ( | ) |
SimpleVariable m2m.backend.structure.LoopFor.getIncr | ( | ) |
SimpleVariable m2m.backend.structure.LoopFor.getInitVariable | ( | SimpleVariable | var | ) |
Get the init variable if the parameter is a loop output variable.
var | the loop output variable |
Definition at line 343 of file LoopFor.java.
Operation m2m.backend.structure.LoopFor.getIterOperation | ( | ) |
Get the iterator operation of the loop for.
Definition at line 234 of file LoopFor.java.
SimpleVariable m2m.backend.structure.LoopFor.getLoopVariable | ( | SimpleVariable | var | ) |
Get the loop variable if the parameter is a loop output variable.
var | the loop output variable |
Definition at line 327 of file LoopFor.java.
Vector<SimpleVariable> m2m.backend.structure.LoopFor.getLoopVariables | ( | ) |
Get all loop variables of the loop for.
Definition at line 218 of file LoopFor.java.
SimpleVariable m2m.backend.structure.LoopFor.getStart | ( | ) |
String m2m.backend.structure.LoopFor.getXmlTagName | ( | ) | [virtual] |
Reimplemented from m2m.backend.structure.Function.
Definition at line 46 of file LoopFor.java.
boolean m2m.backend.structure.LoopFor.insideFromXml | ( | org.w3c.dom.Element | el, |
Function | newFunc | ||
) |
Reimplemented from m2m.backend.structure.Function.
Definition at line 51 of file LoopFor.java.
void m2m.backend.structure.LoopFor.insideToXml | ( | org.w3c.dom.Element | el, |
Document | dom, | ||
boolean | shortRef | ||
) |
Reimplemented from m2m.backend.structure.Function.
Definition at line 113 of file LoopFor.java.
void m2m.backend.structure.LoopFor.setEnd | ( | SimpleVariable | end | ) |
void m2m.backend.structure.LoopFor.setIncr | ( | SimpleVariable | incr | ) |
void m2m.backend.structure.LoopFor.setIterOperation | ( | Operation | op | ) |
Set the iterator operation of the loop for.
op | the iterator operation to set to the loop for |
Definition at line 226 of file LoopFor.java.
void m2m.backend.structure.LoopFor.setLoopVariables | ( | Vector< SimpleVariable > | vector | ) |
Set loop variables of the loop for.
vector | Loop variables to set to the loop for |
Definition at line 210 of file LoopFor.java.
void m2m.backend.structure.LoopFor.setStart | ( | SimpleVariable | start | ) |
String m2m.backend.structure.LoopFor.toOctave | ( | int | level | ) |
Generate the octave code for the element
level | Indent level |
Reimplemented from m2m.backend.structure.Function.
Definition at line 283 of file LoopFor.java.
String m2m.backend.structure.LoopFor.toSchematic | ( | int | level, |
String | prefix, | ||
String | boxFormat, | ||
String | color | ||
) |
Create the schematic file, use with graphviz to generate schematic
level | Level of tab |
prefix | Prefix for the element name |
boxFormat | Format of box (rectangle, triangle, ...) |
color | Color of the block |
Reimplemented from m2m.backend.structure.Function.
Definition at line 270 of file LoopFor.java.
String m2m.backend.structure.LoopFor.toString | ( | int | level | ) |
Convert the object to a string that contains all the parametres
level | Indent of the string |
Reimplemented from m2m.backend.structure.Function.
Definition at line 239 of file LoopFor.java.