Interface LinkWeight


  • public interface LinkWeight
    Interface to determine a link weight.

    Copyright (c) 2013-2022 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 Detail

      • LENGTH

        static final LinkWeight LENGTH
        Default link weight using link length.
      • LENGTH_NO_CONNECTORS

        static final LinkWeight LENGTH_NO_CONNECTORS
        Link weight with very high penalty for Connectors.
    • Method Detail

      • getWeight

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