be.ac.ulg.montefiore.run.totem.topgen.traffic.model
Class DistanceFrictionFactor

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.topgen.traffic.model.DistanceFrictionFactor
All Implemented Interfaces:
FrictionFactor

public class DistanceFrictionFactor
extends java.lang.Object
implements FrictionFactor

This class implements the FrictionFactor interface using the euclidean distance between the nodes.

Creation date: 2004

Author:
Jean Lepropre (lepropre@run.montefiore.ulg.ac.be)

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

DistanceFrictionFactor

public DistanceFrictionFactor()
Method Detail

generate

public double generate(Node origin,
                       Node destination)
This method generates a friction factor between origin and destination using the euclidean distance between them. origin and destination must be different from null and must contain a localization element.

Specified by:
generate in interface FrictionFactor


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.