Package org.opentrafficsim.core.network
Interface LinkWeight
-
public interface LinkWeightInterface 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetWeight(Link link)Returns the link weight.
-
-
-
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
-
-