sim.field.network.stats
Class WeightedEdgeMetric

java.lang.Object
  extended by sim.field.network.stats.WeightedEdgeMetric
All Implemented Interfaces:
EdgeMetric

public class WeightedEdgeMetric
extends java.lang.Object
implements EdgeMetric

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

defaultInstance

public 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 Detail

WeightedEdgeMetric

public WeightedEdgeMetric()
Method Detail

getWeight

public double getWeight(Edge edge)
Call the getWeight method of the edge to compute the weight of the edge.

Specified by:
getWeight in interface EdgeMetric