commandline.Encoder.dynamicProg.Tree Class Reference

Inheritance diagram for commandline.Encoder.dynamicProg.Tree:

Inheritance graph
[legend]
Collaboration diagram for commandline.Encoder.dynamicProg.Tree:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void prune (float Lagrangian, int WHICH_NORM)
Node getRootNode ()
void print ()
void reset ()
void applyPruningInRealTree ()

Protected Member Functions

 Tree (Node rootNode)
Node next ()

Protected Attributes

Node rootNode
PriorityQueue< Node > queue

Package Attributes

float Lagrangian

Private Member Functions

float getLagrangian ()
void setLagrangian (float lagrangian)


Detailed Description

Class that serves as an iterator over the nodes in the tree in a way it traverses nodes in a bottom-up fashion and each node is visited if and only if all its children are already visited

Author:
ward

Definition at line 24 of file Tree.java.


Constructor & Destructor Documentation

commandline.Encoder.dynamicProg.Tree.Tree ( Node  rootNode  )  [protected]

Definition at line 30 of file Tree.java.


Member Function Documentation

void commandline.Encoder.dynamicProg.Tree.prune ( float  Lagrangian,
int  WHICH_NORM 
)

Prunes the Node tree by setting node.pruned to 'true' if they have no children any longer

Parameters:
Lagrangian 

we have to reduce the slope by pruning the children

keep children and accumulate the cost

Definition at line 45 of file Tree.java.

Referenced by commandline.Encoder.dynamicProg.Tree.applyPruningInRealTree(), commandline.Encoder.NormalMeshEncoder.startEncoding(), and commandline.Encoder.dynamicProg.TestDynamicProgrm.test().

Node commandline.Encoder.dynamicProg.Tree.next (  )  [protected]

Definition at line 101 of file Tree.java.

Referenced by commandline.Encoder.dynamicProg.Tree.prune().

Node commandline.Encoder.dynamicProg.Tree.getRootNode (  ) 

void commandline.Encoder.dynamicProg.Tree.print (  ) 

prints the tree list in breath first order

Definition at line 114 of file Tree.java.

Referenced by commandline.Encoder.dynamicProg.TestDynamicProgrm.test().

void commandline.Encoder.dynamicProg.Tree.reset (  ) 

set all node.pruned=false

Definition at line 132 of file Tree.java.

Referenced by commandline.Encoder.NormalMeshEncoder.startEncoding().

void commandline.Encoder.dynamicProg.Tree.applyPruningInRealTree (  ) 

applies the pruning in the real tree so the tree resembles the pruning

Definition at line 150 of file Tree.java.

Referenced by commandline.Encoder.NormalMeshEncoder.constructBreathFirstEncodingOfTree().

float commandline.Encoder.dynamicProg.Tree.getLagrangian (  )  [private]

Get the lagragian multiplier. Needed for printing purposes

Returns:

Definition at line 179 of file Tree.java.

void commandline.Encoder.dynamicProg.Tree.setLagrangian ( float  lagrangian  )  [private]

Definition at line 183 of file Tree.java.

Referenced by commandline.Encoder.dynamicProg.Tree.prune().


Member Data Documentation

Definition at line 25 of file Tree.java.

Referenced by commandline.Encoder.dynamicProg.Tree.getRootNode().


The documentation for this class was generated from the following file:

Generated on Tue Jul 8 15:00:04 2008 for NODIC by  doxygen 1.5.5