|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcommandline.Encoder.dynamicProg.Node
public class Node
Class representing a TreeNode containing a GeometricObject and defining parent/child relations
| Field Summary | |
|---|---|
float |
cost
|
| Constructor Summary | |
|---|---|
Node(GeometricObject geometricObject,
int level)
|
|
| Method Summary | |
|---|---|
void |
addChildNode(Node child)
|
void |
addChildNodes(java.util.ArrayList<Node> children)
|
void |
addParentNode(Node parent)
|
java.util.ArrayList<Node> |
getAllLeaveNodes()
|
float |
getBitBudget()
returns R from L=D+lambda R |
Node |
getChildCoupledtoGeomObj(GeometricObject geometricObject)
Looks up the child coupled to a certain geometricObject |
java.util.ArrayList<Node> |
getChildren()
|
float |
getCost(float Lagrangian,
int WHICH_NORM)
Gets the Lagrangian cost of this node: min(L = D+ \lambda*R,previously setCost |
GeometricObject |
getGeometricObject()
|
int |
getLevel()
|
Node |
getParent()
|
boolean |
hasChildren()
Returns whether the Geometric Object has children or not |
boolean |
hasParent()
|
boolean |
isPruned()
|
void |
setCost(float cost)
sets this.cost= min(previous_cost,cost) |
void |
setHasBeenVisited(boolean hasBeenVisited)
|
void |
setPruned(boolean isPruned)
Sets if the children should be considered or not |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public float cost
| Constructor Detail |
|---|
public Node(GeometricObject geometricObject,
int level)
| Method Detail |
|---|
public void addChildNode(Node child)
public void addChildNodes(java.util.ArrayList<Node> children)
public void addParentNode(Node parent)
public Node getParent()
public boolean hasParent()
public boolean hasChildren()
public java.util.ArrayList<Node> getChildren()
public Node getChildCoupledtoGeomObj(GeometricObject geometricObject)
geometricObject -
public GeometricObject getGeometricObject()
public boolean isPruned()
public void setPruned(boolean isPruned)
isPruned -
public float getCost(float Lagrangian,
int WHICH_NORM)
public void setCost(float cost)
cost - public int getLevel()
public float getBitBudget()
public java.util.ArrayList<Node> getAllLeaveNodes()
public void setHasBeenVisited(boolean hasBeenVisited)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||