Interface LinkWeight


public interface LinkWeight
Interface to determine a link weight.

Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Version:
$Revision$, $LastChangedDate$, by $Author$, initial version 20 aug. 2018
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static LinkWeight LENGTH
    Default link weight using link length.
  • Method Summary

    Modifier and Type Method Description
    double getWeight​(Link link)
    Returns the link weight.
  • Field Details

    • LENGTH

      static final LinkWeight LENGTH
      Default link weight using link length.
  • Method Details

    • getWeight

      double getWeight​(Link link)
      Returns the link weight.
      Parameters:
      link - Link; link
      Returns:
      double; link weight