|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.caida.otter.PathSet
Store a collection of Paths and their associated statistics
Method Summary | |
void |
addPath(java.util.Vector newPath,
float weight,
boolean orientation)
Add a path to the path list (no calculcations yet) |
int |
calcMaxDepth()
Calculate the max depth over the entire graph. |
int |
countPathsContainingNode(java.lang.String nodeName)
Count all the times that a node is referenced in any path and return that count |
int |
countTotalPathsContainingLink(java.lang.String nodeName1,
java.lang.String nodeName2)
count all the times that a node is referenced in any path and return that count. |
int |
countUniquePathsContainingLink(java.lang.String nodeName1,
java.lang.String nodeName2)
Count all the times that a node is referenced in any path and return that count. |
java.util.Vector |
getAllBottom()
Get all nodes that are at the bottom of the graph as indicated by that path's orientation. |
java.util.Vector |
getAllDestinations()
Originally meant for backwards compatibility, its convenient to figure out the names of all the paths that were oriented in a certain direction. |
java.lang.String[] |
getAllNodes()
Return an array that is a complete list of all nodes in the graph without duplicates. |
java.util.Vector |
getAllSources()
Originally meant for backwards compatibility, its convenient to figure out the names of all the paths that were oriented in a certain direction. |
java.util.Vector |
getAllTop()
Get all nodes that are at the top of the graph as indicated by that path's orientation. |
java.lang.String |
getASName(java.lang.String nodeName)
retrieve AS Name data |
int |
getASNumber(java.lang.String nodeName)
retrieve AS data |
java.lang.String |
getAttributeName(java.lang.String nodeName)
retrieve Attribute Name data |
java.util.Vector |
getChildren(java.lang.String nodeName)
return the children of a node from across all paths |
java.util.Vector |
getChildren(java.lang.String nodeName,
java.lang.String source)
return the children of a node from a specific source |
java.lang.String |
getCity(java.lang.String nodeName)
retrieve city data |
int |
getDepth(java.lang.String nodeName)
Find the depth of a node in the graph |
float |
getDestLinkWeight(java.lang.String fromNodeName,
java.lang.String toNodeName,
java.lang.String destination)
look up all paths the link is in, sum path weights (according to destination) |
float |
getLat(java.lang.String nodeName)
retrieve lat data |
java.util.Vector |
getLinkDestinations(java.lang.String fromNodeName,
java.lang.String toNodeName)
look up node in list, return non-redundant list of sources that it appears in. |
java.util.Vector |
getLinkSources(java.lang.String fromNodeName,
java.lang.String toNodeName)
|
float |
getLong(java.lang.String nodeName)
retrieve long data |
int |
getMaxDepth()
Return the max depth of the graph. |
java.util.Vector |
getNodeNeighbors(java.lang.String nodeName)
Get the neighbors of a node (their string names that is) |
java.util.Vector |
getNodeSources(java.lang.String nodeName)
look up node in list, return non-redundant list of sources that it appears in. |
float |
getNodeWeight(java.lang.String nodeName,
java.lang.String source)
look up all paths the node is in, sum path weights |
float |
getPairLinkWeight(java.lang.String fromNodeName,
java.lang.String toNodeName,
java.lang.String source,
java.lang.String destination)
look up all paths the link is in, sum path weights (according to source) |
float |
getSourceAndDestLinkWeight(java.lang.String fromNodeName,
java.lang.String toNodeName,
java.lang.String source_dest)
Get inbound and outbound in a single measurement |
float |
getSourceLinkWeight(java.lang.String fromNodeName,
java.lang.String toNodeName,
java.lang.String source)
look up all paths the link is in, sum path weights (according to source) |
void |
setASName(java.lang.String nodeName,
java.lang.String ASName)
Store AS name associated with a node |
void |
setASNumber(java.lang.String nodeName,
int as_num)
Store AS Number associated with a node |
void |
setAttributeName(java.lang.String nodeName,
java.lang.String AttributeName)
Store Attribute name that will be used to sort columns |
void |
setCity(java.lang.String nodeName,
java.lang.String city_name)
Store City associated with a node |
void |
setLat(java.lang.String nodeName,
float lat)
Store Latitude associated with a node |
void |
setLong(java.lang.String nodeName,
float longitude)
Store Longitude associated with a node |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public void addPath(java.util.Vector newPath, float weight, boolean orientation)
newPath
- Vector of Strings, each one representing a single
node in the path.weight
- A path weight associated with the path.orientation
- The orientation of the new path.public int calcMaxDepth()
public int getDepth(java.lang.String nodeName)
nodeName
- The node to look up the max depth ofpublic java.util.Vector getAllDestinations()
public java.util.Vector getAllSources()
public java.util.Vector getAllTop()
public java.util.Vector getAllBottom()
public float getPairLinkWeight(java.lang.String fromNodeName, java.lang.String toNodeName, java.lang.String source, java.lang.String destination)
fromNodeName
- The "from" node in the pairwise link being looked at.toNodeName
- The "to" node in the pairwise link being looked at.source
- The name of the source node in the path. This would be the
first node in the path we want to look at.destination
- The name of the destination node in the path. This
would be the last node in the path we want to look at.public float getSourceAndDestLinkWeight(java.lang.String fromNodeName, java.lang.String toNodeName, java.lang.String source_dest)
fromNodeName
- The "from" node in the link we want to look at.toNodeName
- The "to" node in the link we want to look at.source_dest
- The name of the node that we're treating as our source
and destination. We're just looking for all paths involving this
node as either of the two.public float getDestLinkWeight(java.lang.String fromNodeName, java.lang.String toNodeName, java.lang.String destination)
fromNodeName
- The "from" node in the link we want to look at.toNodeName
- The "to" node in the link we want to look at.destination
- The destination of the paths we want to look at.public float getSourceLinkWeight(java.lang.String fromNodeName, java.lang.String toNodeName, java.lang.String source)
fromNodeName
- The "from" node in the selected linktoNodeName
- The "to" node in the selected linksource
- The source that we want to select all paths involving.public float getNodeWeight(java.lang.String nodeName, java.lang.String source)
nodeName
- The node we're looking upsource
- The source we're interested in that will supply the paths
we extract data from.public java.util.Vector getLinkDestinations(java.lang.String fromNodeName, java.lang.String toNodeName)
fromNodeName
- The "from" node of the specified linktoNodeName
- The "to" node of the specified linkpublic java.util.Vector getLinkSources(java.lang.String fromNodeName, java.lang.String toNodeName)
public java.util.Vector getNodeSources(java.lang.String nodeName)
nodeName
- The name of the specified nodepublic int countPathsContainingNode(java.lang.String nodeName)
nodeName
- The node to find in the path listpublic int countUniquePathsContainingLink(java.lang.String nodeName1, java.lang.String nodeName2)
nodeName1
- The "from" node in the link.nodeName2
- The "to" node in the link.public int countTotalPathsContainingLink(java.lang.String nodeName1, java.lang.String nodeName2)
nodeName1
- The "from" node in the specified link.nodeName2
- The "to" node in the specified link.public java.lang.String[] getAllNodes()
public void setLat(java.lang.String nodeName, float lat)
nodeName
- The node to set the latitude for.lat
- The latitude to set that node to.public void setLong(java.lang.String nodeName, float longitude)
nodeName
- The node to set the longitude for.longitude
- The longitude to set that node to.public void setCity(java.lang.String nodeName, java.lang.String city_name)
nodeName
- The node to set the city name for.city_name
- The city name to assign to that node.public void setASName(java.lang.String nodeName, java.lang.String ASName)
nodeName
- The node to set the AS name for.ASName
- The AS name to assign to that node.public void setASNumber(java.lang.String nodeName, int as_num)
nodeName
- The node to set the AS for.as_num
- The AS to assign to that node.public void setAttributeName(java.lang.String nodeName, java.lang.String AttributeName)
nodeName
- The node to set the Attribute name for.AttributeName
- The Attribute name to assign to that node.public java.lang.String getAttributeName(java.lang.String nodeName)
nodeName
- The name of the node to retrieve the Attribute name forpublic float getLat(java.lang.String nodeName)
nodeName
- The name of the node to retrieve latitude info for.public float getLong(java.lang.String nodeName)
nodeName
- The name of the node to retrieve longitude info for.public int getASNumber(java.lang.String nodeName)
nodeName
- The name of the node to retrieve the AS num for.public java.lang.String getCity(java.lang.String nodeName)
nodeName
- The name of the node to retrieve the city name for.public java.lang.String getASName(java.lang.String nodeName)
nodeName
- The name of the node to retrieve the city name for.public java.util.Vector getChildren(java.lang.String nodeName, java.lang.String source)
nodeName
- The node to look for children for.source
- The source of paths we will look for children in.public java.util.Vector getChildren(java.lang.String nodeName)
nodeName
- The node we want to retrieve children for.public int getMaxDepth()
public java.util.Vector getNodeNeighbors(java.lang.String nodeName)
nodeName
- node to find neighbors of
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |