move params forward
This commit is contained in:
parent
f8e600e43d
commit
4bbd2d7bff
1 changed files with 9 additions and 0 deletions
|
@ -123,6 +123,15 @@ public final class RoutingContext
|
||||||
{
|
{
|
||||||
BExpressionContext expctxGlobal = expctxWay; // just one of them...
|
BExpressionContext expctxGlobal = expctxWay; // just one of them...
|
||||||
|
|
||||||
|
if (keyValues != null) {
|
||||||
|
// add parameter to context
|
||||||
|
for (Map.Entry<String, String> e : keyValues.entrySet()) {
|
||||||
|
float f = Float.parseFloat(e.getValue());
|
||||||
|
expctxWay.setVariableValue(e.getKey(), f, false );
|
||||||
|
expctxNode.setVariableValue(e.getKey(), f, false );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
setModel( expctxGlobal._modelClass );
|
setModel( expctxGlobal._modelClass );
|
||||||
|
|
||||||
downhillcostdiv = (int)expctxGlobal.getVariableValue( "downhillcost", 0.f );
|
downhillcostdiv = (int)expctxGlobal.getVariableValue( "downhillcost", 0.f );
|
||||||
|
|
Loading…
Reference in a new issue