|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.iu.iv.modeling.p2p.can.CanNetwork
This class implements the CAN network modelling algorithm
| Constructor Summary | |
CanNetwork(int networkSize)
Constructor for CanNetwork. |
|
| Method Summary | |
boolean |
buildCanNetwork()
This method builds the network based on CAN topology |
float |
getAvgDegree()
Get average degree of the network |
java.lang.String |
getFailReason()
Get the reason because of which modelig failed |
edu.uci.ics.jung.graph.Graph |
getGraph()
This method returns the Graph object built on CAN network |
int |
getMaxDegree()
Get max degree of the network |
int |
getMinDegree()
Get min degree of the network |
void |
printNetwork()
Print the network graph |
void |
writeGraph(java.lang.String filename)
Write the graph to a file |
void |
writePajekFile(java.lang.String filename)
Create a Pajek file |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CanNetwork(int networkSize)
networkSize - | Method Detail |
public edu.uci.ics.jung.graph.Graph getGraph()
public boolean buildCanNetwork()
public void printNetwork()
public void writePajekFile(java.lang.String filename)
public void writeGraph(java.lang.String filename)
public float getAvgDegree()
public int getMaxDegree()
public int getMinDegree()
public java.lang.String getFailReason()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||