DK11 for Java | tatukgis.jdk.TGIS_ShortestPath.CostModifiers | Constructors | Fields | Methods | Properties | Events
Cost modifier.
// Java public double getCostModifiers( int _idx ); public void setCostModifiers( int _idx, double _value );
// Oxygene public property CostModifiers[ _idx : Integer ] : Double read write;
Name | Type | Description |
---|---|---|
_idx | int Integer | index of the modifier |
Type |
---|
double Double |
An array 1..255. Each value describes how much the cost of a link of the selected type must be multiplied.
The CostModifier allows a dynamic modifying cost base on a link type. For example, main roads can be set to be more attractive by reducing a “virtual” traversing cost to avoid traveling on regular roads.