1
2
3
4
5
6
7
8
9
10
11
12 package cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands;import java.util.*;import javax.vecmath.*;import cz.cuni.amis.pogamut.base.communication.messages.*;import cz.cuni.amis.pogamut.base.communication.worldview.*;import cz.cuni.amis.pogamut.base.communication.worldview.event.*;import cz.cuni.amis.pogamut.base.communication.worldview.object.*;import cz.cuni.amis.pogamut.multi.communication.worldview.object.*;import cz.cuni.amis.pogamut.base.communication.translator.event.*;import cz.cuni.amis.pogamut.multi.communication.translator.event.*;import cz.cuni.amis.pogamut.base3d.worldview.object.*;import cz.cuni.amis.pogamut.base3d.worldview.object.event.*;import cz.cuni.amis.pogamut.ut2004.communication.messages.*;import cz.cuni.amis.pogamut.ut2004.communication.worldview.objects.*;import cz.cuni.amis.pogamut.ut2004multi.communication.worldview.objects.*;import cz.cuni.amis.pogamut.ut2004.communication.translator.itemdescriptor.*;import cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category;import cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId;import cz.cuni.amis.utils.exception.*;import cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult.Result;import cz.cuni.amis.utils.SafeEquals;import cz.cuni.amis.pogamut.base.agent.*;import cz.cuni.amis.pogamut.multi.agent.*;import cz.cuni.amis.pogamut.multi.communication.worldview.property.*;import cz.cuni.amis.pogamut.ut2004multi.communication.worldview.property.*;import cz.cuni.amis.utils.token.*;import cz.cuni.amis.utils.*;
13
14
15
16
17
18
19
20
21
22 public class SetRoute
23 extends CommandMessage
24 {
25
26
27
28 public static final String PROTOTYPE =
29 " {Erase False} {P0 0,0,0} {P1 0,0,0} {P2 0,0,0} {P3 0,0,0} {P4 0,0,0} {P5 0,0,0} {P6 0,0,0} {P7 0,0,0} {P8 0,0,0} {P9 0,0,0} {P10 0,0,0} {P11 0,0,0} {P12 0,0,0} {P13 0,0,0} {P14 0,0,0} {P15 0,0,0} {P16 0,0,0} {P17 0,0,0} {P18 0,0,0} {P19 0,0,0} {P20 0,0,0} {P21 0,0,0} {P22 0,0,0} {P23 0,0,0} {P24 0,0,0} {P25 0,0,0} {P26 0,0,0} {P27 0,0,0} {P28 0,0,0} {P29 0,0,0} {P30 0,0,0} {P31 0,0,0} ";
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142 public SetRoute(
143 Boolean Erase, Location P0, Location P1, Location P2, Location P3, Location P4, Location P5, Location P6, Location P7, Location P8, Location P9, Location P10, Location P11, Location P12, Location P13, Location P14, Location P15, Location P16, Location P17, Location P18, Location P19, Location P20, Location P21, Location P22, Location P23, Location P24, Location P25, Location P26, Location P27, Location P28, Location P29, Location P30, Location P31
144 ) {
145
146 this.Erase = Erase;
147
148 this.P0 = P0;
149
150 this.P1 = P1;
151
152 this.P2 = P2;
153
154 this.P3 = P3;
155
156 this.P4 = P4;
157
158 this.P5 = P5;
159
160 this.P6 = P6;
161
162 this.P7 = P7;
163
164 this.P8 = P8;
165
166 this.P9 = P9;
167
168 this.P10 = P10;
169
170 this.P11 = P11;
171
172 this.P12 = P12;
173
174 this.P13 = P13;
175
176 this.P14 = P14;
177
178 this.P15 = P15;
179
180 this.P16 = P16;
181
182 this.P17 = P17;
183
184 this.P18 = P18;
185
186 this.P19 = P19;
187
188 this.P20 = P20;
189
190 this.P21 = P21;
191
192 this.P22 = P22;
193
194 this.P23 = P23;
195
196 this.P24 = P24;
197
198 this.P25 = P25;
199
200 this.P26 = P26;
201
202 this.P27 = P27;
203
204 this.P28 = P28;
205
206 this.P29 = P29;
207
208 this.P30 = P30;
209
210 this.P31 = P31;
211
212 }
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227 public SetRoute() {
228 }
229
230
231
232
233
234
235
236 public SetRoute(SetRoute original) {
237
238 this.Erase = original.Erase;
239
240 this.P0 = original.P0;
241
242 this.P1 = original.P1;
243
244 this.P2 = original.P2;
245
246 this.P3 = original.P3;
247
248 this.P4 = original.P4;
249
250 this.P5 = original.P5;
251
252 this.P6 = original.P6;
253
254 this.P7 = original.P7;
255
256 this.P8 = original.P8;
257
258 this.P9 = original.P9;
259
260 this.P10 = original.P10;
261
262 this.P11 = original.P11;
263
264 this.P12 = original.P12;
265
266 this.P13 = original.P13;
267
268 this.P14 = original.P14;
269
270 this.P15 = original.P15;
271
272 this.P16 = original.P16;
273
274 this.P17 = original.P17;
275
276 this.P18 = original.P18;
277
278 this.P19 = original.P19;
279
280 this.P20 = original.P20;
281
282 this.P21 = original.P21;
283
284 this.P22 = original.P22;
285
286 this.P23 = original.P23;
287
288 this.P24 = original.P24;
289
290 this.P25 = original.P25;
291
292 this.P26 = original.P26;
293
294 this.P27 = original.P27;
295
296 this.P28 = original.P28;
297
298 this.P29 = original.P29;
299
300 this.P30 = original.P30;
301
302 this.P31 = original.P31;
303
304 }
305
306
307
308
309
310
311 protected
312 Boolean Erase =
313
314 null
315 ;
316
317
318
319
320
321
322
323
324 public Boolean isErase()
325
326 {
327 return
328 Erase;
329 }
330
331
332
333
334
335
336
337
338
339 public SetRoute
340 setErase(Boolean Erase)
341
342 {
343 this.Erase = Erase;
344 return this;
345 }
346
347
348
349
350
351
352 protected
353 Location P0 =
354
355 null
356 ;
357
358
359
360
361
362
363
364
365 public Location getP0()
366
367 {
368 return
369 P0;
370 }
371
372
373
374
375
376
377
378
379
380 public SetRoute
381 setP0(Location P0)
382
383 {
384 this.P0 = P0;
385 return this;
386 }
387
388
389
390
391
392
393 protected
394 Location P1 =
395
396 null
397 ;
398
399
400
401
402
403
404
405
406 public Location getP1()
407
408 {
409 return
410 P1;
411 }
412
413
414
415
416
417
418
419
420
421 public SetRoute
422 setP1(Location P1)
423
424 {
425 this.P1 = P1;
426 return this;
427 }
428
429
430
431
432
433
434 protected
435 Location P2 =
436
437 null
438 ;
439
440
441
442
443
444
445
446
447 public Location getP2()
448
449 {
450 return
451 P2;
452 }
453
454
455
456
457
458
459
460
461
462 public SetRoute
463 setP2(Location P2)
464
465 {
466 this.P2 = P2;
467 return this;
468 }
469
470
471
472
473
474
475 protected
476 Location P3 =
477
478 null
479 ;
480
481
482
483
484
485
486
487
488 public Location getP3()
489
490 {
491 return
492 P3;
493 }
494
495
496
497
498
499
500
501
502
503 public SetRoute
504 setP3(Location P3)
505
506 {
507 this.P3 = P3;
508 return this;
509 }
510
511
512
513
514
515
516 protected
517 Location P4 =
518
519 null
520 ;
521
522
523
524
525
526
527
528
529 public Location getP4()
530
531 {
532 return
533 P4;
534 }
535
536
537
538
539
540
541
542
543
544 public SetRoute
545 setP4(Location P4)
546
547 {
548 this.P4 = P4;
549 return this;
550 }
551
552
553
554
555
556
557 protected
558 Location P5 =
559
560 null
561 ;
562
563
564
565
566
567
568
569
570 public Location getP5()
571
572 {
573 return
574 P5;
575 }
576
577
578
579
580
581
582
583
584
585 public SetRoute
586 setP5(Location P5)
587
588 {
589 this.P5 = P5;
590 return this;
591 }
592
593
594
595
596
597
598 protected
599 Location P6 =
600
601 null
602 ;
603
604
605
606
607
608
609
610
611 public Location getP6()
612
613 {
614 return
615 P6;
616 }
617
618
619
620
621
622
623
624
625
626 public SetRoute
627 setP6(Location P6)
628
629 {
630 this.P6 = P6;
631 return this;
632 }
633
634
635
636
637
638
639 protected
640 Location P7 =
641
642 null
643 ;
644
645
646
647
648
649
650
651
652 public Location getP7()
653
654 {
655 return
656 P7;
657 }
658
659
660
661
662
663
664
665
666
667 public SetRoute
668 setP7(Location P7)
669
670 {
671 this.P7 = P7;
672 return this;
673 }
674
675
676
677
678
679
680 protected
681 Location P8 =
682
683 null
684 ;
685
686
687
688
689
690
691
692
693 public Location getP8()
694
695 {
696 return
697 P8;
698 }
699
700
701
702
703
704
705
706
707
708 public SetRoute
709 setP8(Location P8)
710
711 {
712 this.P8 = P8;
713 return this;
714 }
715
716
717
718
719
720
721 protected
722 Location P9 =
723
724 null
725 ;
726
727
728
729
730
731
732
733
734 public Location getP9()
735
736 {
737 return
738 P9;
739 }
740
741
742
743
744
745
746
747
748
749 public SetRoute
750 setP9(Location P9)
751
752 {
753 this.P9 = P9;
754 return this;
755 }
756
757
758
759
760
761
762 protected
763 Location P10 =
764
765 null
766 ;
767
768
769
770
771
772
773
774
775 public Location getP10()
776
777 {
778 return
779 P10;
780 }
781
782
783
784
785
786
787
788
789
790 public SetRoute
791 setP10(Location P10)
792
793 {
794 this.P10 = P10;
795 return this;
796 }
797
798
799
800
801
802
803 protected
804 Location P11 =
805
806 null
807 ;
808
809
810
811
812
813
814
815
816 public Location getP11()
817
818 {
819 return
820 P11;
821 }
822
823
824
825
826
827
828
829
830
831 public SetRoute
832 setP11(Location P11)
833
834 {
835 this.P11 = P11;
836 return this;
837 }
838
839
840
841
842
843
844 protected
845 Location P12 =
846
847 null
848 ;
849
850
851
852
853
854
855
856
857 public Location getP12()
858
859 {
860 return
861 P12;
862 }
863
864
865
866
867
868
869
870
871
872 public SetRoute
873 setP12(Location P12)
874
875 {
876 this.P12 = P12;
877 return this;
878 }
879
880
881
882
883
884
885 protected
886 Location P13 =
887
888 null
889 ;
890
891
892
893
894
895
896
897
898 public Location getP13()
899
900 {
901 return
902 P13;
903 }
904
905
906
907
908
909
910
911
912
913 public SetRoute
914 setP13(Location P13)
915
916 {
917 this.P13 = P13;
918 return this;
919 }
920
921
922
923
924
925
926 protected
927 Location P14 =
928
929 null
930 ;
931
932
933
934
935
936
937
938
939 public Location getP14()
940
941 {
942 return
943 P14;
944 }
945
946
947
948
949
950
951
952
953
954 public SetRoute
955 setP14(Location P14)
956
957 {
958 this.P14 = P14;
959 return this;
960 }
961
962
963
964
965
966
967 protected
968 Location P15 =
969
970 null
971 ;
972
973
974
975
976
977
978
979
980 public Location getP15()
981
982 {
983 return
984 P15;
985 }
986
987
988
989
990
991
992
993
994
995 public SetRoute
996 setP15(Location P15)
997
998 {
999 this.P15 = P15;
1000 return this;
1001 }
1002
1003
1004
1005
1006
1007
1008 protected
1009 Location P16 =
1010
1011 null
1012 ;
1013
1014
1015
1016
1017
1018
1019
1020
1021 public Location getP16()
1022
1023 {
1024 return
1025 P16;
1026 }
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036 public SetRoute
1037 setP16(Location P16)
1038
1039 {
1040 this.P16 = P16;
1041 return this;
1042 }
1043
1044
1045
1046
1047
1048
1049 protected
1050 Location P17 =
1051
1052 null
1053 ;
1054
1055
1056
1057
1058
1059
1060
1061
1062 public Location getP17()
1063
1064 {
1065 return
1066 P17;
1067 }
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077 public SetRoute
1078 setP17(Location P17)
1079
1080 {
1081 this.P17 = P17;
1082 return this;
1083 }
1084
1085
1086
1087
1088
1089
1090 protected
1091 Location P18 =
1092
1093 null
1094 ;
1095
1096
1097
1098
1099
1100
1101
1102
1103 public Location getP18()
1104
1105 {
1106 return
1107 P18;
1108 }
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118 public SetRoute
1119 setP18(Location P18)
1120
1121 {
1122 this.P18 = P18;
1123 return this;
1124 }
1125
1126
1127
1128
1129
1130
1131 protected
1132 Location P19 =
1133
1134 null
1135 ;
1136
1137
1138
1139
1140
1141
1142
1143
1144 public Location getP19()
1145
1146 {
1147 return
1148 P19;
1149 }
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159 public SetRoute
1160 setP19(Location P19)
1161
1162 {
1163 this.P19 = P19;
1164 return this;
1165 }
1166
1167
1168
1169
1170
1171
1172 protected
1173 Location P20 =
1174
1175 null
1176 ;
1177
1178
1179
1180
1181
1182
1183
1184
1185 public Location getP20()
1186
1187 {
1188 return
1189 P20;
1190 }
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200 public SetRoute
1201 setP20(Location P20)
1202
1203 {
1204 this.P20 = P20;
1205 return this;
1206 }
1207
1208
1209
1210
1211
1212
1213 protected
1214 Location P21 =
1215
1216 null
1217 ;
1218
1219
1220
1221
1222
1223
1224
1225
1226 public Location getP21()
1227
1228 {
1229 return
1230 P21;
1231 }
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241 public SetRoute
1242 setP21(Location P21)
1243
1244 {
1245 this.P21 = P21;
1246 return this;
1247 }
1248
1249
1250
1251
1252
1253
1254 protected
1255 Location P22 =
1256
1257 null
1258 ;
1259
1260
1261
1262
1263
1264
1265
1266
1267 public Location getP22()
1268
1269 {
1270 return
1271 P22;
1272 }
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282 public SetRoute
1283 setP22(Location P22)
1284
1285 {
1286 this.P22 = P22;
1287 return this;
1288 }
1289
1290
1291
1292
1293
1294
1295 protected
1296 Location P23 =
1297
1298 null
1299 ;
1300
1301
1302
1303
1304
1305
1306
1307
1308 public Location getP23()
1309
1310 {
1311 return
1312 P23;
1313 }
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323 public SetRoute
1324 setP23(Location P23)
1325
1326 {
1327 this.P23 = P23;
1328 return this;
1329 }
1330
1331
1332
1333
1334
1335
1336 protected
1337 Location P24 =
1338
1339 null
1340 ;
1341
1342
1343
1344
1345
1346
1347
1348
1349 public Location getP24()
1350
1351 {
1352 return
1353 P24;
1354 }
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364 public SetRoute
1365 setP24(Location P24)
1366
1367 {
1368 this.P24 = P24;
1369 return this;
1370 }
1371
1372
1373
1374
1375
1376
1377 protected
1378 Location P25 =
1379
1380 null
1381 ;
1382
1383
1384
1385
1386
1387
1388
1389
1390 public Location getP25()
1391
1392 {
1393 return
1394 P25;
1395 }
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405 public SetRoute
1406 setP25(Location P25)
1407
1408 {
1409 this.P25 = P25;
1410 return this;
1411 }
1412
1413
1414
1415
1416
1417
1418 protected
1419 Location P26 =
1420
1421 null
1422 ;
1423
1424
1425
1426
1427
1428
1429
1430
1431 public Location getP26()
1432
1433 {
1434 return
1435 P26;
1436 }
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446 public SetRoute
1447 setP26(Location P26)
1448
1449 {
1450 this.P26 = P26;
1451 return this;
1452 }
1453
1454
1455
1456
1457
1458
1459 protected
1460 Location P27 =
1461
1462 null
1463 ;
1464
1465
1466
1467
1468
1469
1470
1471
1472 public Location getP27()
1473
1474 {
1475 return
1476 P27;
1477 }
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487 public SetRoute
1488 setP27(Location P27)
1489
1490 {
1491 this.P27 = P27;
1492 return this;
1493 }
1494
1495
1496
1497
1498
1499
1500 protected
1501 Location P28 =
1502
1503 null
1504 ;
1505
1506
1507
1508
1509
1510
1511
1512
1513 public Location getP28()
1514
1515 {
1516 return
1517 P28;
1518 }
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528 public SetRoute
1529 setP28(Location P28)
1530
1531 {
1532 this.P28 = P28;
1533 return this;
1534 }
1535
1536
1537
1538
1539
1540
1541 protected
1542 Location P29 =
1543
1544 null
1545 ;
1546
1547
1548
1549
1550
1551
1552
1553
1554 public Location getP29()
1555
1556 {
1557 return
1558 P29;
1559 }
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569 public SetRoute
1570 setP29(Location P29)
1571
1572 {
1573 this.P29 = P29;
1574 return this;
1575 }
1576
1577
1578
1579
1580
1581
1582 protected
1583 Location P30 =
1584
1585 null
1586 ;
1587
1588
1589
1590
1591
1592
1593
1594
1595 public Location getP30()
1596
1597 {
1598 return
1599 P30;
1600 }
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610 public SetRoute
1611 setP30(Location P30)
1612
1613 {
1614 this.P30 = P30;
1615 return this;
1616 }
1617
1618
1619
1620
1621
1622
1623 protected
1624 Location P31 =
1625
1626 null
1627 ;
1628
1629
1630
1631
1632
1633
1634
1635
1636 public Location getP31()
1637
1638 {
1639 return
1640 P31;
1641 }
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651 public SetRoute
1652 setP31(Location P31)
1653
1654 {
1655 this.P31 = P31;
1656 return this;
1657 }
1658
1659 public String toString() {
1660 return toMessage();
1661 }
1662
1663 public String toHtmlString() {
1664 return super.toString() + "[<br/>" +
1665
1666 "<b>Erase</b> = " +
1667 String.valueOf(isErase()
1668 ) +
1669 " <br/> " +
1670
1671 "<b>P0</b> = " +
1672 String.valueOf(getP0()
1673 ) +
1674 " <br/> " +
1675
1676 "<b>P1</b> = " +
1677 String.valueOf(getP1()
1678 ) +
1679 " <br/> " +
1680
1681 "<b>P2</b> = " +
1682 String.valueOf(getP2()
1683 ) +
1684 " <br/> " +
1685
1686 "<b>P3</b> = " +
1687 String.valueOf(getP3()
1688 ) +
1689 " <br/> " +
1690
1691 "<b>P4</b> = " +
1692 String.valueOf(getP4()
1693 ) +
1694 " <br/> " +
1695
1696 "<b>P5</b> = " +
1697 String.valueOf(getP5()
1698 ) +
1699 " <br/> " +
1700
1701 "<b>P6</b> = " +
1702 String.valueOf(getP6()
1703 ) +
1704 " <br/> " +
1705
1706 "<b>P7</b> = " +
1707 String.valueOf(getP7()
1708 ) +
1709 " <br/> " +
1710
1711 "<b>P8</b> = " +
1712 String.valueOf(getP8()
1713 ) +
1714 " <br/> " +
1715
1716 "<b>P9</b> = " +
1717 String.valueOf(getP9()
1718 ) +
1719 " <br/> " +
1720
1721 "<b>P10</b> = " +
1722 String.valueOf(getP10()
1723 ) +
1724 " <br/> " +
1725
1726 "<b>P11</b> = " +
1727 String.valueOf(getP11()
1728 ) +
1729 " <br/> " +
1730
1731 "<b>P12</b> = " +
1732 String.valueOf(getP12()
1733 ) +
1734 " <br/> " +
1735
1736 "<b>P13</b> = " +
1737 String.valueOf(getP13()
1738 ) +
1739 " <br/> " +
1740
1741 "<b>P14</b> = " +
1742 String.valueOf(getP14()
1743 ) +
1744 " <br/> " +
1745
1746 "<b>P15</b> = " +
1747 String.valueOf(getP15()
1748 ) +
1749 " <br/> " +
1750
1751 "<b>P16</b> = " +
1752 String.valueOf(getP16()
1753 ) +
1754 " <br/> " +
1755
1756 "<b>P17</b> = " +
1757 String.valueOf(getP17()
1758 ) +
1759 " <br/> " +
1760
1761 "<b>P18</b> = " +
1762 String.valueOf(getP18()
1763 ) +
1764 " <br/> " +
1765
1766 "<b>P19</b> = " +
1767 String.valueOf(getP19()
1768 ) +
1769 " <br/> " +
1770
1771 "<b>P20</b> = " +
1772 String.valueOf(getP20()
1773 ) +
1774 " <br/> " +
1775
1776 "<b>P21</b> = " +
1777 String.valueOf(getP21()
1778 ) +
1779 " <br/> " +
1780
1781 "<b>P22</b> = " +
1782 String.valueOf(getP22()
1783 ) +
1784 " <br/> " +
1785
1786 "<b>P23</b> = " +
1787 String.valueOf(getP23()
1788 ) +
1789 " <br/> " +
1790
1791 "<b>P24</b> = " +
1792 String.valueOf(getP24()
1793 ) +
1794 " <br/> " +
1795
1796 "<b>P25</b> = " +
1797 String.valueOf(getP25()
1798 ) +
1799 " <br/> " +
1800
1801 "<b>P26</b> = " +
1802 String.valueOf(getP26()
1803 ) +
1804 " <br/> " +
1805
1806 "<b>P27</b> = " +
1807 String.valueOf(getP27()
1808 ) +
1809 " <br/> " +
1810
1811 "<b>P28</b> = " +
1812 String.valueOf(getP28()
1813 ) +
1814 " <br/> " +
1815
1816 "<b>P29</b> = " +
1817 String.valueOf(getP29()
1818 ) +
1819 " <br/> " +
1820
1821 "<b>P30</b> = " +
1822 String.valueOf(getP30()
1823 ) +
1824 " <br/> " +
1825
1826 "<b>P31</b> = " +
1827 String.valueOf(getP31()
1828 ) +
1829 " <br/> " +
1830
1831 "<br/>]"
1832 ;
1833 }
1834
1835 public String toMessage() {
1836 StringBuffer buf = new StringBuffer();
1837 buf.append("SETROUTE");
1838
1839 if (Erase != null) {
1840 buf.append(" {Erase " + Erase + "}");
1841 }
1842
1843 if (P0 != null) {
1844 buf.append(" {P0 " +
1845 P0.getX() + "," +
1846 P0.getY() + "," +
1847 P0.getZ() + "}");
1848 }
1849
1850 if (P1 != null) {
1851 buf.append(" {P1 " +
1852 P1.getX() + "," +
1853 P1.getY() + "," +
1854 P1.getZ() + "}");
1855 }
1856
1857 if (P2 != null) {
1858 buf.append(" {P2 " +
1859 P2.getX() + "," +
1860 P2.getY() + "," +
1861 P2.getZ() + "}");
1862 }
1863
1864 if (P3 != null) {
1865 buf.append(" {P3 " +
1866 P3.getX() + "," +
1867 P3.getY() + "," +
1868 P3.getZ() + "}");
1869 }
1870
1871 if (P4 != null) {
1872 buf.append(" {P4 " +
1873 P4.getX() + "," +
1874 P4.getY() + "," +
1875 P4.getZ() + "}");
1876 }
1877
1878 if (P5 != null) {
1879 buf.append(" {P5 " +
1880 P5.getX() + "," +
1881 P5.getY() + "," +
1882 P5.getZ() + "}");
1883 }
1884
1885 if (P6 != null) {
1886 buf.append(" {P6 " +
1887 P6.getX() + "," +
1888 P6.getY() + "," +
1889 P6.getZ() + "}");
1890 }
1891
1892 if (P7 != null) {
1893 buf.append(" {P7 " +
1894 P7.getX() + "," +
1895 P7.getY() + "," +
1896 P7.getZ() + "}");
1897 }
1898
1899 if (P8 != null) {
1900 buf.append(" {P8 " +
1901 P8.getX() + "," +
1902 P8.getY() + "," +
1903 P8.getZ() + "}");
1904 }
1905
1906 if (P9 != null) {
1907 buf.append(" {P9 " +
1908 P9.getX() + "," +
1909 P9.getY() + "," +
1910 P9.getZ() + "}");
1911 }
1912
1913 if (P10 != null) {
1914 buf.append(" {P10 " +
1915 P10.getX() + "," +
1916 P10.getY() + "," +
1917 P10.getZ() + "}");
1918 }
1919
1920 if (P11 != null) {
1921 buf.append(" {P11 " +
1922 P11.getX() + "," +
1923 P11.getY() + "," +
1924 P11.getZ() + "}");
1925 }
1926
1927 if (P12 != null) {
1928 buf.append(" {P12 " +
1929 P12.getX() + "," +
1930 P12.getY() + "," +
1931 P12.getZ() + "}");
1932 }
1933
1934 if (P13 != null) {
1935 buf.append(" {P13 " +
1936 P13.getX() + "," +
1937 P13.getY() + "," +
1938 P13.getZ() + "}");
1939 }
1940
1941 if (P14 != null) {
1942 buf.append(" {P14 " +
1943 P14.getX() + "," +
1944 P14.getY() + "," +
1945 P14.getZ() + "}");
1946 }
1947
1948 if (P15 != null) {
1949 buf.append(" {P15 " +
1950 P15.getX() + "," +
1951 P15.getY() + "," +
1952 P15.getZ() + "}");
1953 }
1954
1955 if (P16 != null) {
1956 buf.append(" {P16 " +
1957 P16.getX() + "," +
1958 P16.getY() + "," +
1959 P16.getZ() + "}");
1960 }
1961
1962 if (P17 != null) {
1963 buf.append(" {P17 " +
1964 P17.getX() + "," +
1965 P17.getY() + "," +
1966 P17.getZ() + "}");
1967 }
1968
1969 if (P18 != null) {
1970 buf.append(" {P18 " +
1971 P18.getX() + "," +
1972 P18.getY() + "," +
1973 P18.getZ() + "}");
1974 }
1975
1976 if (P19 != null) {
1977 buf.append(" {P19 " +
1978 P19.getX() + "," +
1979 P19.getY() + "," +
1980 P19.getZ() + "}");
1981 }
1982
1983 if (P20 != null) {
1984 buf.append(" {P20 " +
1985 P20.getX() + "," +
1986 P20.getY() + "," +
1987 P20.getZ() + "}");
1988 }
1989
1990 if (P21 != null) {
1991 buf.append(" {P21 " +
1992 P21.getX() + "," +
1993 P21.getY() + "," +
1994 P21.getZ() + "}");
1995 }
1996
1997 if (P22 != null) {
1998 buf.append(" {P22 " +
1999 P22.getX() + "," +
2000 P22.getY() + "," +
2001 P22.getZ() + "}");
2002 }
2003
2004 if (P23 != null) {
2005 buf.append(" {P23 " +
2006 P23.getX() + "," +
2007 P23.getY() + "," +
2008 P23.getZ() + "}");
2009 }
2010
2011 if (P24 != null) {
2012 buf.append(" {P24 " +
2013 P24.getX() + "," +
2014 P24.getY() + "," +
2015 P24.getZ() + "}");
2016 }
2017
2018 if (P25 != null) {
2019 buf.append(" {P25 " +
2020 P25.getX() + "," +
2021 P25.getY() + "," +
2022 P25.getZ() + "}");
2023 }
2024
2025 if (P26 != null) {
2026 buf.append(" {P26 " +
2027 P26.getX() + "," +
2028 P26.getY() + "," +
2029 P26.getZ() + "}");
2030 }
2031
2032 if (P27 != null) {
2033 buf.append(" {P27 " +
2034 P27.getX() + "," +
2035 P27.getY() + "," +
2036 P27.getZ() + "}");
2037 }
2038
2039 if (P28 != null) {
2040 buf.append(" {P28 " +
2041 P28.getX() + "," +
2042 P28.getY() + "," +
2043 P28.getZ() + "}");
2044 }
2045
2046 if (P29 != null) {
2047 buf.append(" {P29 " +
2048 P29.getX() + "," +
2049 P29.getY() + "," +
2050 P29.getZ() + "}");
2051 }
2052
2053 if (P30 != null) {
2054 buf.append(" {P30 " +
2055 P30.getX() + "," +
2056 P30.getY() + "," +
2057 P30.getZ() + "}");
2058 }
2059
2060 if (P31 != null) {
2061 buf.append(" {P31 " +
2062 P31.getX() + "," +
2063 P31.getY() + "," +
2064 P31.getZ() + "}");
2065 }
2066
2067 return buf.toString();
2068 }
2069
2070
2071
2072 public SetRoute setRoute(List<? extends ILocated> route) {
2073 if (route.size() == 0) return this;
2074 setP0(route.get(0).getLocation());
2075 if (route.size() == 1) return this;
2076 setP1(route.get(1).getLocation());
2077 if (route.size() == 2) return this;
2078 setP2(route.get(2).getLocation());
2079 if (route.size() == 3) return this;
2080 setP3(route.get(3).getLocation());
2081 if (route.size() == 4) return this;
2082 setP4(route.get(4).getLocation());
2083 if (route.size() == 5) return this;
2084 setP5(route.get(5).getLocation());
2085 if (route.size() == 6) return this;
2086 setP6(route.get(6).getLocation());
2087 if (route.size() == 7) return this;
2088 setP7(route.get(7).getLocation());
2089 if (route.size() == 8) return this;
2090 setP8(route.get(8).getLocation());
2091 if (route.size() == 9) return this;
2092 setP9(route.get(9).getLocation());
2093 if (route.size() == 10) return this;
2094 setP10(route.get(10).getLocation());
2095 if (route.size() == 11) return this;
2096 setP11(route.get(11).getLocation());
2097 if (route.size() == 12) return this;
2098 setP12(route.get(12).getLocation());
2099 if (route.size() == 13) return this;
2100 setP13(route.get(13).getLocation());
2101 if (route.size() == 14) return this;
2102 setP14(route.get(14).getLocation());
2103 if (route.size() == 15) return this;
2104 setP15(route.get(15).getLocation());
2105 if (route.size() == 16) return this;
2106 setP16(route.get(16).getLocation());
2107 if (route.size() == 17) return this;
2108 setP17(route.get(17).getLocation());
2109 if (route.size() == 18) return this;
2110 setP18(route.get(18).getLocation());
2111 if (route.size() == 19) return this;
2112 setP19(route.get(19).getLocation());
2113 if (route.size() == 20) return this;
2114 setP20(route.get(20).getLocation());
2115 if (route.size() == 21) return this;
2116 setP21(route.get(21).getLocation());
2117 if (route.size() == 22) return this;
2118 setP22(route.get(22).getLocation());
2119 if (route.size() == 23) return this;
2120 setP23(route.get(23).getLocation());
2121 if (route.size() == 24) return this;
2122 setP24(route.get(24).getLocation());
2123 if (route.size() == 25) return this;
2124 setP25(route.get(25).getLocation());
2125 if (route.size() == 26) return this;
2126 setP26(route.get(26).getLocation());
2127 if (route.size() == 27) return this;
2128 setP27(route.get(27).getLocation());
2129 if (route.size() == 28) return this;
2130 setP28(route.get(28).getLocation());
2131 if (route.size() == 29) return this;
2132 setP29(route.get(29).getLocation());
2133 if (route.size() == 30) return this;
2134 setP30(route.get(30).getLocation());
2135 if (route.size() == 31) return this;
2136 setP31(route.get(31).getLocation());
2137 return this;
2138 }
2139
2140
2141
2142 }
2143