|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsim.field.network.stats.UnitEdgeMetric
public class UnitEdgeMetric
The UnitEdgeMetric counts each edge as having weight 1.
Field Summary | |
---|---|
static UnitEdgeMetric |
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 | |
---|---|
UnitEdgeMetric()
|
Method Summary | |
---|---|
double |
getWeight(Edge edge)
The weight of an edge is 1. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static UnitEdgeMetric defaultInstance
Constructor Detail |
---|
public UnitEdgeMetric()
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 |