|
mwalk Platform 0.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mwalk.util.DegreeCount
A class used by the degree count visitor to track the degree data.
Field Summary | |
java.lang.Object |
data
Optional data to be passed back with count |
boolean |
fromReceiver
Whether this count comes from a receiver |
int |
interior
Number of active links to routers |
int |
leaf
Number of active links to receivers |
int |
links
Number of active links |
int |
receivers
Number of receivers downstream |
Constructor Summary | |
DegreeCount()
Default constructor. |
|
DegreeCount(boolean active)
Constructor. |
|
DegreeCount(boolean active,
java.lang.Object data)
Constructor. |
|
DegreeCount(int receivers,
int links,
int leaves,
java.lang.Object data)
Constructor. |
|
DegreeCount(java.lang.Object data)
Constructor. |
Method Summary | |
void |
add(DegreeCount count)
Add a degree count to a running total. |
void |
addReceivers(DegreeCount count)
Add just the number of downstream receivers to a running total. |
java.lang.String |
toString()
Print a count as a tab-separated string. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public boolean fromReceiver
public int receivers
public int links
public int leaf
public int interior
public java.lang.Object data
Constructor Detail |
public DegreeCount()
public DegreeCount(java.lang.Object data)
Object
- optional data to pass along with countpublic DegreeCount(boolean active)
boolean
- whether receiver is activepublic DegreeCount(boolean active, java.lang.Object data)
boolean
- whether receiver is activeObject
- optional data to pass along with countpublic DegreeCount(int receivers, int links, int leaves, java.lang.Object data)
int
- number of downstream receiversint
- total number of linksint
- number of links connected to receiversObject
- optional data to pass along with countMethod Detail |
public void add(DegreeCount count)
DegreeCount
- count from downstream neighborpublic void addReceivers(DegreeCount count)
DegreeCount
- count from downstream neighborpublic java.lang.String toString()
|
mwalk Platform 0.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |