statistical encoding
This commit is contained in:
parent
f8dee5b7d1
commit
ccf6641bad
41 changed files with 4543 additions and 1965 deletions
|
|
@ -17,6 +17,11 @@
|
|||
<artifactId>brouter-util</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.btools</groupId>
|
||||
<artifactId>brouter-codec</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
|
|
|
|||
|
|
@ -6,9 +6,11 @@
|
|||
|
||||
package btools.expressions;
|
||||
|
||||
import btools.codec.TagValueValidator;
|
||||
|
||||
|
||||
public final class BExpressionContextWay extends BExpressionContext
|
||||
|
||||
public final class BExpressionContextWay extends BExpressionContext implements TagValueValidator
|
||||
{
|
||||
private static String[] buildInVariables =
|
||||
{ "costfactor", "turncost", "uphillcostfactor", "downhillcostfactor", "initialcost", "nodeaccessgranted", "initialclassifier", "trafficsourcedensity", "istrafficbackbone" };
|
||||
|
|
@ -43,4 +45,15 @@ public final class BExpressionContextWay extends BExpressionContext
|
|||
{
|
||||
super( "way", hashSize, meta );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean accessAllowed( byte[] description )
|
||||
{
|
||||
evaluate( false, description, null );
|
||||
boolean ok = getCostfactor() < 10000.;
|
||||
evaluate( true, description, null );
|
||||
ok |= getCostfactor() < 10000.;
|
||||
return ok;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue