|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.totem.topgen.traffic.model.DistanceFrictionFactor
public class DistanceFrictionFactor
This class implements the FrictionFactor
interface using
the euclidean distance between the nodes.
Creation date: 2004
Constructor Summary | |
---|---|
DistanceFrictionFactor()
|
Method Summary | |
---|---|
double |
generate(Node origin,
Node destination)
This method generates a friction factor between origin and
destination using the euclidean distance between them. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DistanceFrictionFactor()
Method Detail |
---|
public double generate(Node origin, Node destination)
origin
and
destination
using the euclidean distance between them.
origin
and destination
must be different from
null
and must contain a localization
element.
generate
in interface FrictionFactor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |