|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.caida.otter.GraphNode
A node in a directed graph.
Constructor Summary | |
GraphNode(java.lang.String name)
Make a new node w/ no children |
|
GraphNode(java.lang.String name,
float latitude,
float longitude)
Make a new node w/ no children, w/ Lat Long |
|
GraphNode(java.lang.String source,
java.lang.String name,
float weight)
Make a new node w/ one child and weight |
|
GraphNode(java.lang.String source,
java.lang.String name,
GraphNode new_child)
Make a new node w/ one child |
|
GraphNode(java.lang.String source,
java.lang.String name,
GraphNode[] new_childList)
Make a new node w/ several children |
|
GraphNode(java.lang.String source,
java.lang.String name,
GraphNode[] new_childList,
float weight)
Make a new node w/ several children and weight |
|
GraphNode(java.lang.String source,
java.lang.String name,
GraphNode[] new_childList,
float latitude,
float longitude)
Make a new node w/ several children, w/ Lat Long |
|
GraphNode(java.lang.String source,
java.lang.String name,
GraphNode[] new_childList,
float latitude,
float longitude,
float weight)
Make a new node w/ several children, w/ Lat Long and weight |
|
GraphNode(java.lang.String source,
java.lang.String name,
GraphNode new_child,
float weight)
Make a new node w/ one child and weight |
|
GraphNode(java.lang.String source,
java.lang.String name,
GraphNode new_child,
float latitude,
float longitude)
Make a new node w/ one child, w/ Lat Long |
|
GraphNode(java.lang.String source,
java.lang.String name,
GraphNode new_child,
float latitude,
float longitude,
float weight)
Make a new node w/ one child, w/ Lat Long and weight |
|
GraphNode(java.lang.String source,
java.lang.String name,
java.util.Vector new_childList)
Make a new node w/ several children |
|
GraphNode(java.lang.String source,
java.lang.String name,
java.util.Vector new_childList,
float weight)
Make a new node w/ several children and weight |
|
GraphNode(java.lang.String source,
java.lang.String name,
java.util.Vector new_childList,
float latitude,
float longitude)
Make a new node w/ several children, w/ Lat Long |
|
GraphNode(java.lang.String source,
java.lang.String name,
java.util.Vector new_childList,
float latitude,
float longitude,
float weight)
Make a new node w/ several children, w/ Lat Long and weight |
Method Summary | |
void |
addChild(java.lang.String source,
GraphNode new_child)
Add one child to a node |
void |
addChild(java.lang.String source,
GraphNode[] new_children)
Add several children to a node |
void |
addChild(java.lang.String source,
java.util.Vector new_children)
Add several children to a node |
int |
calcMaxDepth()
Calculate depth in graph for each node using the current node as the only source. |
int |
calcMaxDepth(java.util.Vector sourceList,
java.lang.String sourceName)
CalcMaxDepth of the graph from multiple nodes under a single source category. |
void |
decrementWeight(java.lang.String source,
float num)
Decrement a node's weight for a given source |
boolean |
equals(java.lang.Object node)
Override equals to test name equivalence |
java.lang.String[] |
getAllSources()
Get all sources that this node is used in |
int |
getASNumber()
Get a node's AS Number |
java.util.Vector |
getChildren(java.lang.String source)
Get a node's children for a given source if they exist |
java.lang.String |
getCity()
Get a node's city |
int |
getDepth(java.lang.String source)
Get a node's depth in the graph |
float |
getLat()
Get a node's latitude |
float |
getLong()
Get a node's longitude |
java.lang.String |
getName()
Get a node's name |
GraphNode |
getParent(java.lang.String source)
Get a node parent for a given source if one exists |
float |
getWeight(java.lang.String source)
Get a node's weight given a source |
void |
incrementWeight(java.lang.String source,
float num)
Add to a node's weight for a given source |
boolean |
isChildOf(java.lang.String source,
GraphNode node)
Recursively check the parents to see if any of them correspond to the node given |
void |
mergeChildren(java.lang.String source,
GraphNode ref_node)
Merge the children for a given source. |
void |
setASNumber(int as_num)
Set a node's AS number |
void |
setCity(java.lang.String city)
Set a node's city |
void |
setDepth(java.lang.String source,
int depth)
Set a node's depth in the graph |
void |
setLat(float lat)
Set a node's latitude |
void |
setLong(float lon)
Set a nodes longitude |
void |
setParent(java.lang.String source,
GraphNode parent)
Add one parent to a node |
void |
validateChildren(java.lang.String source,
DirectedGraph graph)
Make sure all the children are valid children for the graph meaning that the children are contained in the graph. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public GraphNode(java.lang.String name)
public GraphNode(java.lang.String source, java.lang.String name, GraphNode new_child)
public GraphNode(java.lang.String source, java.lang.String name, GraphNode new_child, float weight)
public GraphNode(java.lang.String source, java.lang.String name, float weight)
public GraphNode(java.lang.String source, java.lang.String name, GraphNode[] new_childList)
public GraphNode(java.lang.String source, java.lang.String name, GraphNode[] new_childList, float weight)
public GraphNode(java.lang.String source, java.lang.String name, java.util.Vector new_childList)
public GraphNode(java.lang.String source, java.lang.String name, java.util.Vector new_childList, float weight)
public GraphNode(java.lang.String name, float latitude, float longitude)
public GraphNode(java.lang.String source, java.lang.String name, GraphNode new_child, float latitude, float longitude)
public GraphNode(java.lang.String source, java.lang.String name, GraphNode new_child, float latitude, float longitude, float weight)
public GraphNode(java.lang.String source, java.lang.String name, java.util.Vector new_childList, float latitude, float longitude)
public GraphNode(java.lang.String source, java.lang.String name, java.util.Vector new_childList, float latitude, float longitude, float weight)
public GraphNode(java.lang.String source, java.lang.String name, GraphNode[] new_childList, float latitude, float longitude)
public GraphNode(java.lang.String source, java.lang.String name, GraphNode[] new_childList, float latitude, float longitude, float weight)
Method Detail |
public void setParent(java.lang.String source, GraphNode parent)
public void addChild(java.lang.String source, GraphNode new_child)
public void addChild(java.lang.String source, java.util.Vector new_children)
public void addChild(java.lang.String source, GraphNode[] new_children)
public boolean equals(java.lang.Object node)
public GraphNode getParent(java.lang.String source)
public java.util.Vector getChildren(java.lang.String source)
public java.lang.String getName()
public void setDepth(java.lang.String source, int depth)
public int getDepth(java.lang.String source)
public java.lang.String[] getAllSources()
public boolean isChildOf(java.lang.String source, GraphNode node)
public int calcMaxDepth()
public int calcMaxDepth(java.util.Vector sourceList, java.lang.String sourceName)
public void mergeChildren(java.lang.String source, GraphNode ref_node)
public void validateChildren(java.lang.String source, DirectedGraph graph)
public float getLat()
public void setLat(float lat)
public void setASNumber(int as_num)
public int getASNumber()
public void setCity(java.lang.String city)
public java.lang.String getCity()
public float getLong()
public void setLong(float lon)
public void incrementWeight(java.lang.String source, float num)
public void decrementWeight(java.lang.String source, float num)
public float getWeight(java.lang.String source)
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |