Package org.opentrafficsim.core.network
Interface LinkWeight
public interface LinkWeight
Interface to determine a link weight.
Copyright (c) 2013-2020 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 LinkWeightLENGTHDefault link weight using link length.static LinkWeightLENGTH_NO_CONNECTORSLink weight with very high penalty for Connectors. -
Method Summary
-
Field Details
-
LENGTH
Default link weight using link length. -
LENGTH_NO_CONNECTORS
Link weight with very high penalty for Connectors.
-
-
Method Details
-
getWeight
Returns the link weight.- Parameters:
link- Link; link- Returns:
- double; link weight
-