public class RoadCongestion extends Modification
Modifier and Type | Field and Description |
---|---|
double |
defaultScaling
The default value by which to scale when no polygon is found.
|
String |
nameAttribute
The name of the attribute (text) within the polygon layer that contains the polygon names.
|
String |
polygonLayer
The identifier of the polygon layer containing the speed data.
|
String |
priorityAttribute
The name of the attribute (numeric) within the polygon layer that contains the polygon priority.
|
String |
scalingAttribute
The name of the attribute (floating-point) within the polygon layer that contains the speed scaling factor.
|
activeInVariants, comment, errors, warnings
Constructor and Description |
---|
RoadCongestion() |
Modifier and Type | Method and Description |
---|---|
boolean |
affectsStreetLayer()
See Scenario::affectsStreetLayer
|
boolean |
affectsTransitLayer()
See Scenario::affectsTransitLayer
|
boolean |
apply(TransportNetwork network)
Apply this single modification to a TransportNetwork.
|
int |
getSortOrder()
This determines the sequence in which modifications will be applied.
|
boolean |
resolve(TransportNetwork network)
Implementations of this function on concrete Modification classes should do three things:
1.
|
checkIds, findOrCreateStops
public String polygonLayer
public String scalingAttribute
public String priorityAttribute
public String nameAttribute
public double defaultScaling
public boolean resolve(TransportNetwork network)
Modification
resolve
in class Modification
public boolean apply(TransportNetwork network)
Modification
apply
in class Modification
public int getSortOrder()
Modification
getSortOrder
in class Modification
public boolean affectsStreetLayer()
Modification
affectsStreetLayer
in class Modification
public boolean affectsTransitLayer()
Modification
affectsTransitLayer
in class Modification
Copyright © 2019. All rights reserved.