Math2mat
Classes | Public Member Functions

m2m.backend.structure.SimpleVariable Class Reference

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

List of all members.

Classes

class  MapVHDLSimpleVariable

Public Member Functions

boolean insideFromXml (org.w3c.dom.Element el, Function newFunc)
String getXmlTagName ()
void insideToXml (org.w3c.dom.Element el, Document dom, boolean shortRef)
Element copy (Function newFunc)
 SimpleVariable ()
 SimpleVariable (String n)
 SimpleVariable (double v)
 SimpleVariable (ArrayList< Double > v)
 SimpleVariable (String n, double v)
 SimpleVariable (SimpleVariable var)
 SimpleVariable (String n, double v, String t)
 SimpleVariable (String n, ArrayList< Double > v, String t)
void setVal (double v)
void setVal (ArrayList< Double > v)
double getVal ()
double getVal (int pos)
ArrayList< Double > getValues ()
void addVal (double v)
void setType (String t)
String getType ()
void setSize (int n)
int getSize ()
String toString (int level)
String toSchematic (int level, String prefix, String boxFormat, String color)
void setCost (int cost)
int getCost ()
Vector< Integer > getMultiCost ()
HashMap< Function,
MapVHDLSimpleVariable
getVariableMap ()
Vector< ElementgetVariableDependencies ()
void setSimpleFifo (boolean value)
boolean getSimpleFifo ()
int getSimpleFifoCost ()
void setSimpleFifoCost (int value)
void setOutputLoopVariable (SimpleVariable var)
SimpleVariable getOutputLoopVariable ()
void setInputLoopVariable (SimpleVariable var)
SimpleVariable getInputLoopVariable ()

Detailed Description

Describe a VHDL variable Contains 3 parametres, the value, the type and the name (inherits from Element)

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

Definition at line 27 of file SimpleVariable.java.


Constructor & Destructor Documentation

m2m.backend.structure.SimpleVariable.SimpleVariable ( )

Empty constructor. Set an empty name, the value to 0 and the type to "none"

Definition at line 175 of file SimpleVariable.java.

m2m.backend.structure.SimpleVariable.SimpleVariable ( String  n)

Constructor, set the name of the object

Parameters:
nName

Definition at line 186 of file SimpleVariable.java.

m2m.backend.structure.SimpleVariable.SimpleVariable ( double  v)

Constructor, set the value of the object and an empty name

Parameters:
vValue

Definition at line 197 of file SimpleVariable.java.

m2m.backend.structure.SimpleVariable.SimpleVariable ( ArrayList< Double >  v)

Definition at line 205 of file SimpleVariable.java.

m2m.backend.structure.SimpleVariable.SimpleVariable ( String  n,
double  v 
)

Constructor, set the name and the value.

Parameters:
nName
vValue

Definition at line 217 of file SimpleVariable.java.

m2m.backend.structure.SimpleVariable.SimpleVariable ( SimpleVariable  var)

Constructor, the new object contains values of the parametre variable

Parameters:
varSimpleVariable to copy

Definition at line 228 of file SimpleVariable.java.

m2m.backend.structure.SimpleVariable.SimpleVariable ( String  n,
double  v,
String  t 
)

Construct a complete variable

Parameters:
nName
vValue
tType

Definition at line 241 of file SimpleVariable.java.

m2m.backend.structure.SimpleVariable.SimpleVariable ( String  n,
ArrayList< Double >  v,
String  t 
)

Definition at line 253 of file SimpleVariable.java.


Member Function Documentation

void m2m.backend.structure.SimpleVariable.addVal ( double  v)

Definition at line 298 of file SimpleVariable.java.

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

Implements m2m.backend.structure.Element.

Definition at line 157 of file SimpleVariable.java.

int m2m.backend.structure.SimpleVariable.getCost ( )

Get the latency cost of the variable.

Returns:
the latency cost of the variable

Definition at line 369 of file SimpleVariable.java.

SimpleVariable m2m.backend.structure.SimpleVariable.getInputLoopVariable ( )

Get the input loop variable of the simple variable

Returns:
the loop variable of the simple variable

Definition at line 465 of file SimpleVariable.java.

Vector<Integer> m2m.backend.structure.SimpleVariable.getMultiCost ( )

Get the multiCostBeforeOp vector of the variable.

Returns:
the multiCostBeforeOp vector of the variable

Definition at line 378 of file SimpleVariable.java.

SimpleVariable m2m.backend.structure.SimpleVariable.getOutputLoopVariable ( )

Get the output loop variable of the simple variable

Returns:
the loop variable of the simple variable

Definition at line 449 of file SimpleVariable.java.

boolean m2m.backend.structure.SimpleVariable.getSimpleFifo ( )

Get the simpleFifo attribut of the variable.

Returns:
the simpleFifo attribut of the variable.

Definition at line 414 of file SimpleVariable.java.

int m2m.backend.structure.SimpleVariable.getSimpleFifoCost ( )

Get the simpleFifoCost attribut of the variable.

Returns:
the simpleFifoCost attribut of the variable.

Definition at line 423 of file SimpleVariable.java.

int m2m.backend.structure.SimpleVariable.getSize ( ) [virtual]

Implements m2m.backend.structure.Variable.

Definition at line 324 of file SimpleVariable.java.

String m2m.backend.structure.SimpleVariable.getType ( ) [virtual]

Getter of type

Returns:
Type

Implements m2m.backend.structure.Variable.

Definition at line 316 of file SimpleVariable.java.

double m2m.backend.structure.SimpleVariable.getVal ( int  pos)

Definition at line 287 of file SimpleVariable.java.

double m2m.backend.structure.SimpleVariable.getVal ( ) [virtual]

Getter of value

Returns:
Value

Implements m2m.backend.structure.Variable.

Definition at line 280 of file SimpleVariable.java.

ArrayList<Double> m2m.backend.structure.SimpleVariable.getValues ( )

Definition at line 294 of file SimpleVariable.java.

Vector<Element> m2m.backend.structure.SimpleVariable.getVariableDependencies ( )

Get the variablesDependencies of the variable.

Returns:
the variablesDependencies of the variable

Definition at line 396 of file SimpleVariable.java.

HashMap<Function, MapVHDLSimpleVariable> m2m.backend.structure.SimpleVariable.getVariableMap ( )

Get the varaibleMap of the variable.

Returns:
the varaibleMap of the variable

Definition at line 387 of file SimpleVariable.java.

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

Implements m2m.backend.structure.Element.

Definition at line 139 of file SimpleVariable.java.

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

Reimplemented from m2m.backend.structure.Element.

Definition at line 118 of file SimpleVariable.java.

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

Definition at line 142 of file SimpleVariable.java.

void m2m.backend.structure.SimpleVariable.setCost ( int  cost)

Set the latency cost of the variable.

Parameters:
costthe latency cost to set to the variable.

Definition at line 360 of file SimpleVariable.java.

void m2m.backend.structure.SimpleVariable.setInputLoopVariable ( SimpleVariable  var)

Set the input loop variable of the simple variable

Parameters:
varThe variable to set

Definition at line 457 of file SimpleVariable.java.

void m2m.backend.structure.SimpleVariable.setOutputLoopVariable ( SimpleVariable  var)

Set the output loop variable of the simple variable

Parameters:
varThe variable to set

Definition at line 441 of file SimpleVariable.java.

void m2m.backend.structure.SimpleVariable.setSimpleFifo ( boolean  value)

Set the simpleFifo attribut of the variable.

Parameters:
valuethe value to set to the attribut

Definition at line 405 of file SimpleVariable.java.

void m2m.backend.structure.SimpleVariable.setSimpleFifoCost ( int  value)

Set the simpleFifoCost attribut of the variable.

Parameters:
valuethe value to set to the attribut

Definition at line 432 of file SimpleVariable.java.

void m2m.backend.structure.SimpleVariable.setSize ( int  n)

Definition at line 320 of file SimpleVariable.java.

void m2m.backend.structure.SimpleVariable.setType ( String  t) [virtual]

Setter of type

Parameters:
tNouveau type

Implements m2m.backend.structure.Variable.

Definition at line 308 of file SimpleVariable.java.

void m2m.backend.structure.SimpleVariable.setVal ( double  v) [virtual]

Setter of value

Parameters:
vNew value

Implements m2m.backend.structure.Variable.

Definition at line 264 of file SimpleVariable.java.

void m2m.backend.structure.SimpleVariable.setVal ( ArrayList< Double >  v)

Definition at line 270 of file SimpleVariable.java.

String m2m.backend.structure.SimpleVariable.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.Element.

Definition at line 342 of file SimpleVariable.java.

String m2m.backend.structure.SimpleVariable.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.Element.

Definition at line 329 of file SimpleVariable.java.


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