|
|
|
@ -17,8 +17,9 @@ public class MarkRoundingSequence {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* For each leg, mark rounding information.
|
|
|
|
* For each leg, mark rounding information.
|
|
|
|
|
|
|
|
* Maps between leg number and rounding data.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private Map<Leg, MarkRoundingData> roundingPoints;
|
|
|
|
private Map<Integer, MarkRoundingData> roundingPoints;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -34,7 +35,7 @@ public class MarkRoundingSequence {
|
|
|
|
* @return Rounding points for leg.
|
|
|
|
* @return Rounding points for leg.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public MarkRoundingData getRoundingData(Leg leg) {
|
|
|
|
public MarkRoundingData getRoundingData(Leg leg) {
|
|
|
|
return roundingPoints.get(leg);
|
|
|
|
return roundingPoints.get(leg.getLegNumber());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -139,7 +140,7 @@ public class MarkRoundingSequence {
|
|
|
|
roundingData.setRoundCheck2Halfway(roundCheck2Halfway);
|
|
|
|
roundingData.setRoundCheck2Halfway(roundCheck2Halfway);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.roundingPoints.put(currentLeg, roundingData);
|
|
|
|
this.roundingPoints.put(currentLeg.getLegNumber(), roundingData);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Rounding points:
|
|
|
|
//Rounding points:
|
|
|
|
|