added method getSelectedRouteSteps
This commit is contained in:
parent
027991097c
commit
b2de985d6d
1 changed files with 5 additions and 2 deletions
|
@ -45,7 +45,9 @@ public class Route {
|
|||
routeSelected = userSelection;
|
||||
}
|
||||
|
||||
public int getRouteSelected() {return routeSelected;}
|
||||
public Vector<String[]> getSelectedRouteSteps() {
|
||||
return routeSequences.get(routeSelected);
|
||||
}
|
||||
|
||||
public double estimateTolls(Vector<String[]> route) {
|
||||
double runningTolls = 0;
|
||||
|
@ -70,4 +72,5 @@ public class Route {
|
|||
public void setTollsFlag(boolean flag) {tollsFlag = flag;}
|
||||
public boolean getHwyFlag() {return hwyFlag;}
|
||||
public boolean getTollsFlag() {return tollsFlag;}
|
||||
public int getRouteSelected() {return routeSelected;}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue