|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsim.field.network.stats.WeightedEdgeMetric
public class WeightedEdgeMetric
The WeightedEdgeMetric is a simple class that implements the WeightComputer
interface for computing the weight of an edge.
Field Summary | |
---|---|
static WeightedEdgeMetric |
defaultInstance
A static member to be used by whomever wants to quickly send one of these as a parameter to a statistic function. |
Constructor Summary | |
---|---|
WeightedEdgeMetric()
|
Method Summary | |
---|---|
double |
getWeight(Edge edge)
Call the getWeight method of the edge to compute the weight of the edge. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static WeightedEdgeMetric defaultInstance
Constructor Detail |
---|
public WeightedEdgeMetric()
Method Detail |
---|
public double getWeight(Edge edge)
getWeight
in interface EdgeMetric
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |