|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbcds.phison.gm.GraphMetricBase<V,E>
bcds.phison.gm.Diameter<V,E>
bcds.phison.gm.AvgPathLength<V,E>
bcds.phison.gm.MaxNodeDegree<V,E>
public class MaxNodeDegree<V,E>
Returns the highest node degree of a topology as a
GraphMetric.
| Constructor Summary | |
|---|---|
MaxNodeDegree()
Default constructor. |
|
MaxNodeDegree(SimGraph<V,E> g,
Environ env)
Creates a new instance and calls setup to complete the initialization. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Returns a description of this metric. |
double |
getGraphMetric()
Returns the highest node degree of the topology. |
double |
getGraphMetricStdev()
Returns NaN (Not-a-Number) to avoid the getGraphMetricStdev()
of AvgPathLength. |
java.lang.String |
getLabel()
Returns "MaxNodeDegree". |
boolean |
isApplicableTo(MetricTarget m)
Returns true if m is MetricTarget.GRAPH. |
| Methods inherited from class bcds.phison.gm.Diameter |
|---|
getAvgShortestPath, getAvgShortestPathStdev, getEnvParams, getLongestPath, run, setup |
| Methods inherited from class bcds.phison.gm.GraphMetricBase |
|---|
dump, getEdgeMetric, getEnviron, getGraph, getName, getNodeMetric |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface bcds.phison.gm.GraphMetric |
|---|
dump, getEdgeMetric, getNodeMetric, run, setup |
| Methods inherited from interface bcds.phison.WithEnvParams |
|---|
getEnviron, getEnvParams, getName |
| Constructor Detail |
|---|
public MaxNodeDegree()
public MaxNodeDegree(SimGraph<V,E> g,
Environ env)
| Method Detail |
|---|
public boolean isApplicableTo(MetricTarget m)
m is MetricTarget.GRAPH.
isApplicableTo in interface GraphMetric<V,E>isApplicableTo in class Diameter<V,E>public double getGraphMetric()
getGraphMetric in interface GraphMetric<V,E>getGraphMetric in class AvgPathLength<V,E>public double getGraphMetricStdev()
getGraphMetricStdev()
of AvgPathLength.
getGraphMetricStdev in interface GraphMetric<V,E>getGraphMetricStdev in class AvgPathLength<V,E>public java.lang.String getLabel()
getLabel in interface GraphMetric<V,E>getLabel in class AvgPathLength<V,E>public java.lang.String getDescription()
AvgPathLength
getDescription in interface GraphMetric<V,E>getDescription in class AvgPathLength<V,E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||