public class BroadcastTree
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap<java.lang.Long,java.lang.Integer> |
costs |
protected java.util.HashMap<java.lang.Long,Link> |
links |
Constructor and Description |
---|
BroadcastTree() |
BroadcastTree(java.util.HashMap<java.lang.Long,Link> links,
java.util.HashMap<java.lang.Long,java.lang.Integer> costs) |
Modifier and Type | Method and Description |
---|---|
void |
addTreeLink(long myNode,
Link link) |
int |
getCost(long node) |
java.util.HashMap<java.lang.Long,java.lang.Integer> |
getCosts() |
java.util.HashMap<java.lang.Long,Link> |
getLinks() |
Link |
getTreeLink(long node) |
java.lang.String |
toString() |
protected java.util.HashMap<java.lang.Long,Link> links
protected java.util.HashMap<java.lang.Long,java.lang.Integer> costs
public BroadcastTree()
public BroadcastTree(java.util.HashMap<java.lang.Long,Link> links, java.util.HashMap<java.lang.Long,java.lang.Integer> costs)
public Link getTreeLink(long node)
public int getCost(long node)
public java.util.HashMap<java.lang.Long,Link> getLinks()
public void addTreeLink(long myNode, Link link)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.HashMap<java.lang.Long,java.lang.Integer> getCosts()