added getRouteSelected method
This commit is contained in:
parent
3cfdcacfd6
commit
8448de04e3
1 changed files with 7 additions and 1 deletions
|
@ -39,8 +39,14 @@ public class Route {
|
|||
routeSelected = userSelection;
|
||||
}
|
||||
|
||||
public void estimateTolls(double[][] route) {
|
||||
public int getRouteSelected() {return routeSelected;}
|
||||
|
||||
public float estimateTolls(double[][] route) {
|
||||
float runningTolls = 0;
|
||||
for (int i = 0; i <= route.length; i++) {
|
||||
runningTolls += route[i][3];
|
||||
}
|
||||
return runningTolls;
|
||||
}
|
||||
|
||||
public double estimateTime(double[][] route) {
|
||||
|
|
Loading…
Reference in a new issue