Forráskód Böngészése

港口测试底图栅格json

huangchunxi 1 hónapja
szülő
commit
7f3f28a6f6

+ 4 - 4
src/main/java/com/ecnu/platform/test/TestPortGrid.groovy

@@ -54,7 +54,7 @@ class TestPortGrid {
 
                 double xNext = xJobLane + k * gridInterval
                 if (k < numJob-1){
-                    for (int j = 0;j < 5; j++){
+                    for (int j = 0; j < 5; j++){
                         coordinateJobGrid += xNext + xUnitList.get(j) * gridInterval + ","
                         coordinateJobGrid += yNext + yUnitList.get(j) * heightJobLane
                         if (j != 4){
@@ -65,7 +65,7 @@ class TestPortGrid {
                     jobGridList.add(algBaseMapArea)
                     k = k + 1
                 }else {
-                    for (int j = 0;j < 5; j++){
+                    for (int j = 0; j < 5; j++){
                         coordinateJobGrid += xNext + xUnitList.get(j) * (widthJobLane - xNext) + ","
                         coordinateJobGrid += yNext + yUnitList.get(j) * heightJobLane
                         if (j != 4){
@@ -104,7 +104,7 @@ class TestPortGrid {
 
                 double xNext = xTrafficLane + k * gridInterval
                 if (k < numTraffic-1){
-                    for (int j = 0;j < 5; j++){
+                    for (int j = 0; j < 5; j++){
                         coordinateTrafficGrid += xNext + xUnitList.get(j) * gridInterval + ","
                         coordinateTrafficGrid += yNext + yUnitList.get(j) * heightTrafficLane
                         if (j != 4){
@@ -115,7 +115,7 @@ class TestPortGrid {
                     trafficGridList.add(algBaseMapArea)
                     k = k + 1
                 }else {
-                    for (int j = 0;j < 5; j++){
+                    for (int j = 0; j < 5; j++){
                         coordinateTrafficGrid += xNext + xUnitList.get(j) * (widthTrafficLane - xNext) + ","
                         coordinateTrafficGrid += yNext + yUnitList.get(j) * heightTrafficLane
                         if (j != 4){