|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ASN
ASN constructors.
Field Summary | |
static int |
INFINITE_ASN
|
static int |
INFINITELY_FAR
|
static int |
MAX_ASN
|
Constructor Summary | |
ASN(int asNum)
Creates new Autonomous System Number Object |
|
ASN(int asNum,
java.lang.String name,
int longitude)
|
|
ASN(int asNum,
java.lang.String name,
int latitude,
int longitude)
|
Method Summary | |
void |
addByteHops(long bh)
|
boolean |
addNeighbor(ASN newNeighbor)
|
void |
addRange(IPRange ipRange)
|
void |
adopt(ASN aDaughter)
|
ASN |
ancestor()
|
java.lang.String |
ancestry()
|
java.lang.String |
ancestry(java.lang.String delimiter)
|
ASN |
bestUphillNeighbor()
|
int |
compareTo(java.lang.Object otherASN)
|
int |
computeDownstreamSize()
|
long |
computeGlobalDemand()
|
int |
connectionsToBB()
returns the number of backbone nodes |
int |
coveringNeighbor(ASN otherASN,
int tolerance)
returns distance to the neighbor whose neighbor set least covers (overhangs) this object. |
int |
daughterCount()
|
int |
deepestChild()
|
boolean |
dominates(ASN otherASN)
|
boolean |
equals(java.lang.Object otherASN)
|
int |
getASN()
|
long |
getByteHops()
|
java.util.ArrayList |
getDaughters()
|
long |
getDemand()
|
int |
getDescendentCount()
|
int |
getHopsToBackbone()
|
long |
getIPCount()
|
int |
getLatitude()
|
int |
getLongitude()
|
java.lang.String |
getName()
|
java.lang.String |
getNeighborString()
|
int |
getOutDegree()
|
ASN |
getParent()
|
java.util.ArrayList |
getRanges()
|
int |
hammingDistance(ASN otherASN)
|
boolean |
hasCache()
|
boolean |
isOrphan()
|
ASN |
leastCoveringNeighbor(double toleranceD)
|
int |
neighborCount()
|
int |
overhang(ASN otherASN)
overhang(ASN otherASN) computes the number of neighbors he has that are NOT in my list of neighbors |
void |
putByteHops(long dh)
|
void |
putCache(boolean cached)
|
void |
putDemand(long demand)
|
void |
resetHopsToBackbone()
forces hopsToBackbone to be infinity. |
void |
setChildBBHops()
|
void |
setHopsToBackbone(int hops)
sets the number of hops to the backbone if it is not already a better value. |
void |
setLongitude(int longitude)
|
void |
setName(java.lang.String name)
|
void |
setNeighborBBHops()
|
void |
setOutDegree(int i)
|
void |
setParent(ASN mom)
|
int |
sharedNeighbors(ASN otherASN)
counts the number of nodes that are neighbors of both me and otherASN. |
void |
showDescendents(java.lang.String prefix)
|
void |
sortNeighbors()
|
java.lang.String |
toString()
|
int |
treeDepth(int depthSoFar)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int INFINITELY_FAR
public static final int INFINITE_ASN
public static final int MAX_ASN
Constructor Detail |
public ASN(int asNum)
public ASN(int asNum, java.lang.String name, int longitude)
public ASN(int asNum, java.lang.String name, int latitude, int longitude)
Method Detail |
public void addRange(IPRange ipRange)
public boolean addNeighbor(ASN newNeighbor)
public int hammingDistance(ASN otherASN)
public int coveringNeighbor(ASN otherASN, int tolerance)
public int sharedNeighbors(ASN otherASN)
public int overhang(ASN otherASN)
public boolean dominates(ASN otherASN)
public int neighborCount()
public int daughterCount()
public ASN bestUphillNeighbor()
public ASN leastCoveringNeighbor(double toleranceD)
public void setOutDegree(int i)
public int getOutDegree()
public void sortNeighbors()
public void adopt(ASN aDaughter)
public ASN getParent()
public void setParent(ASN mom)
public void setName(java.lang.String name)
public java.lang.String getName()
public void setLongitude(int longitude)
public int getLongitude()
public int getLatitude()
public boolean isOrphan()
public void showDescendents(java.lang.String prefix)
public int getDescendentCount()
public java.lang.String ancestry()
public java.lang.String ancestry(java.lang.String delimiter)
public ASN ancestor()
public long getIPCount()
public java.util.ArrayList getRanges()
public java.util.ArrayList getDaughters()
public java.lang.String getNeighborString()
public int getASN()
public int getHopsToBackbone()
public void setHopsToBackbone(int hops)
public void resetHopsToBackbone()
public int connectionsToBB()
public void setNeighborBBHops()
public void setChildBBHops()
public void putDemand(long demand)
public long getDemand()
public int computeDownstreamSize()
public long computeGlobalDemand()
public void addByteHops(long bh)
public void putByteHops(long dh)
public long getByteHops()
public int treeDepth(int depthSoFar)
public int deepestChild()
public void putCache(boolean cached)
public boolean hasCache()
public int compareTo(java.lang.Object otherASN)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object otherASN)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |