Math2mat
Public Member Functions

m2m.backend.structure.IfThenElse Class Reference

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

List of all members.

Public Member Functions

 IfThenElse ()
void modifyNumType (BuildingBlock.NumType type)
String getXmlTagName ()
boolean insideFromXml (org.w3c.dom.Element el, Function newFunc)
void insideToXml (org.w3c.dom.Element el, Document dom, boolean shortRef)
Element copy (Function newFunc)
void setBodyTrue (Vector< Element > body)
Vector< ElementgetBodyTrue ()
void setBodyFalse (Vector< Element > body)
Vector< ElementgetBodyFalse ()
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 conditional structure if/then/else

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

Definition at line 25 of file IfThenElse.java.


Constructor & Destructor Documentation

m2m.backend.structure.IfThenElse.IfThenElse ( )

Constructor empty

Definition at line 43 of file IfThenElse.java.


Member Function Documentation

Element m2m.backend.structure.IfThenElse.copy ( Function  newFunc) [virtual]

Copy entirely the function.

Returns:
The new function.

Reimplemented from m2m.backend.structure.Function.

Definition at line 146 of file IfThenElse.java.

Vector<Element> m2m.backend.structure.IfThenElse.getBodyFalse ( )

Get the false body element list

Returns:
Element list

Definition at line 187 of file IfThenElse.java.

Vector<Element> m2m.backend.structure.IfThenElse.getBodyTrue ( )

Get the true body element list

Returns:
Element list

Definition at line 171 of file IfThenElse.java.

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

Get the conditional test element list

Returns:
Element list

Definition at line 203 of file IfThenElse.java.

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

Reimplemented from m2m.backend.structure.Function.

Definition at line 60 of file IfThenElse.java.

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

Reimplemented from m2m.backend.structure.Function.

Definition at line 64 of file IfThenElse.java.

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

Reimplemented from m2m.backend.structure.Function.

Definition at line 120 of file IfThenElse.java.

void m2m.backend.structure.IfThenElse.modifyNumType ( BuildingBlock.NumType  type)

Reimplemented from m2m.backend.structure.Function.

Definition at line 50 of file IfThenElse.java.

void m2m.backend.structure.IfThenElse.setBodyFalse ( Vector< Element body)

Set the false body element list

Parameters:
bodyElement list

Definition at line 179 of file IfThenElse.java.

void m2m.backend.structure.IfThenElse.setBodyTrue ( Vector< Element body)

Set the true body element list

Parameters:
bodyElement list

Definition at line 163 of file IfThenElse.java.

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

Set the conditional test element list

Parameters:
condElement list

Definition at line 195 of file IfThenElse.java.

String m2m.backend.structure.IfThenElse.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 269 of file IfThenElse.java.

String m2m.backend.structure.IfThenElse.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 231 of file IfThenElse.java.

String m2m.backend.structure.IfThenElse.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 208 of file IfThenElse.java.


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