View Javadoc

1   
2               /**
3               IMPORTANT !!!
4   
5               DO NOT EDIT THIS FILE. IT IS GENERATED FROM approriate xml file in xmlresources/gbcommands BY
6               THE JavaClassesGenerator.xslt. MODIFY THESE FILES INSTEAD OF THIS ONE.
7   
8               IMPORTANT END !!!
9               */
10              package
11              cz.cuni.amis.pogamut.udk.communication.messages.gbcommands;
12  	    		import java.util.*;
13      import javax.vecmath.*;
14      import cz.cuni.amis.pogamut.base.communication.messages.*;
15      import cz.cuni.amis.pogamut.base.communication.worldview.*;
16      import cz.cuni.amis.pogamut.base.communication.worldview.event.*;
17      import cz.cuni.amis.pogamut.base.communication.worldview.object.*;
18      import cz.cuni.amis.pogamut.base.communication.translator.event.*;
19      import cz.cuni.amis.pogamut.base3d.worldview.object.*;
20      import cz.cuni.amis.pogamut.base3d.worldview.object.event.*;
21      import cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId;
22      import cz.cuni.amis.pogamut.udk.communication.messages.*;
23      import cz.cuni.amis.pogamut.udk.communication.worldview.objects.*;
24      import cz.cuni.amis.pogamut.udk.communication.translator.itemdescriptor.*;
25      import cz.cuni.amis.pogamut.udk.communication.messages.ItemType.Category;
26      import cz.cuni.amis.utils.exception.*;
27      import cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult.Result;
28      import cz.cuni.amis.utils.SafeEquals;
29      import cz.cuni.amis.pogamut.multi.communication.worldview.object.*;
30      
31              
32              /**
33                
34  		Set whether you want to draw blue lines between supported locations in the game. You need
35  		to enable this in the HUD by pressing ALT + R. (Works in UnrealRuntime2 for now). The lines
36  		are drawn between neighbouring points. First is point 0.
37  	
38                            Corresponding GameBots command is
39                            SETROUTE.
40                        
41               */
42              
43              public class
44              SetRoute extends
45          CommandMessage
46  
47              {
48              
49              /**
50                Creates new instance of command SetRoute.
51                
52  		Set whether you want to draw blue lines between supported locations in the game. You need
53  		to enable this in the HUD by pressing ALT + R. (Works in UnrealRuntime2 for now). The lines
54  		are drawn between neighbouring points. First is point 0.
55  	Corresponding GameBots message for this command is
56                SETROUTE.
57                    @param Erase 
58  			If true will erase previously set points.
59  		
60                    @param Point0 
61  			Location point.
62  		
63                    @param Point1 
64  			Location point.
65  		
66                    @param Point2 
67  			Location point.
68  		
69                    @param Point3 
70  			Location point.
71  		
72                    @param Point4 
73  			Location point.
74  		
75                    @param Point5 
76  			Location point.
77  		
78                    @param Point6 
79  			Location point.
80  		
81                    @param Point7 
82  			Location point.
83  		
84                    @param Point8 
85  			Location point.
86  		
87                    @param Point9 
88  			Location point.
89  		
90                    @param Point10 
91  			Location point.
92  		
93                    @param Point11 
94  			Location point.
95  		
96                    @param Point12 
97  			Location point.
98  		
99                    @param Point13 
100 			Location point.
101 		
102                   @param Point14 
103 			Location point.
104 		
105                   @param Point15 
106 			Location point.
107 		
108                   @param Point16 
109 			Location point.
110 		
111                   @param Point17 
112 			Location point.
113 		
114                   @param Point18 
115 			Location point.
116 		
117                   @param Point19 
118 			Location point.
119 		
120                   @param Point20 
121 			Location point.
122 		
123                   @param Point21 
124 			Location point.
125 		
126                   @param Point22 
127 			Location point.
128 		
129                   @param Point23 
130 			Location point.
131 		
132                   @param Point24 
133 			Location point.
134 		
135                   @param Point25 
136 			Location point.
137 		
138                   @param Point26 
139 			Location point.
140 		
141                   @param Point27 
142 			Location point.
143 		
144                   @param Point28 
145 			Location point.
146 		
147                   @param Point29 
148 			Location point.
149 		
150                   @param Point30 
151 			Location point.
152 		
153                   @param Point31 
154 			Location point.
155 		
156               */
157              public SetRoute(
158                 boolean Erase,  Location Point0,  Location Point1,  Location Point2,  Location Point3,  Location Point4,  Location Point5,  Location Point6,  Location Point7,  Location Point8,  Location Point9,  Location Point10,  Location Point11,  Location Point12,  Location Point13,  Location Point14,  Location Point15,  Location Point16,  Location Point17,  Location Point18,  Location Point19,  Location Point20,  Location Point21,  Location Point22,  Location Point23,  Location Point24,  Location Point25,  Location Point26,  Location Point27,  Location Point28,  Location Point29,  Location Point30,  Location Point31) {
159                     
160                     this.Erase = Erase;
161                 
162                     this.Point0 = Point0;
163                 
164                     this.Point1 = Point1;
165                 
166                     this.Point2 = Point2;
167                 
168                     this.Point3 = Point3;
169                 
170                     this.Point4 = Point4;
171                 
172                     this.Point5 = Point5;
173                 
174                     this.Point6 = Point6;
175                 
176                     this.Point7 = Point7;
177                 
178                     this.Point8 = Point8;
179                 
180                     this.Point9 = Point9;
181                 
182                     this.Point10 = Point10;
183                 
184                     this.Point11 = Point11;
185                 
186                     this.Point12 = Point12;
187                 
188                     this.Point13 = Point13;
189                 
190                     this.Point14 = Point14;
191                 
192                     this.Point15 = Point15;
193                 
194                     this.Point16 = Point16;
195                 
196                     this.Point17 = Point17;
197                 
198                     this.Point18 = Point18;
199                 
200                     this.Point19 = Point19;
201                 
202                     this.Point20 = Point20;
203                 
204                     this.Point21 = Point21;
205                 
206                     this.Point22 = Point22;
207                 
208                     this.Point23 = Point23;
209                 
210                     this.Point24 = Point24;
211                 
212                     this.Point25 = Point25;
213                 
214                     this.Point26 = Point26;
215                 
216                     this.Point27 = Point27;
217                 
218                     this.Point28 = Point28;
219                 
220                     this.Point29 = Point29;
221                 
222                     this.Point30 = Point30;
223                 
224                     this.Point31 = Point31;
225                 
226                 }
227 
228             
229             		/**
230 		             Creates new instance of command SetRoute.
231 		             
232 		Set whether you want to draw blue lines between supported locations in the game. You need
233 		to enable this in the HUD by pressing ALT + R. (Works in UnrealRuntime2 for now). The lines
234 		are drawn between neighbouring points. First is point 0.
235 	Corresponding GameBots message for this command is
236 		             SETROUTE.
237 		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
238 		             */
239             		public  SetRoute() {
240             		}
241             	
242 
243             /////// Properties BEGIN
244             
245         /**
246         
247 			If true will erase previously set points.
248 		 */
249         protected
250          boolean Erase =
251         	false;
252 
253         
254         /**
255         
256 			If true will erase previously set points.
257 		 */
258         public
259         boolean isErase() {
260             return
261          Erase;
262         }
263         
264 
265         
266             /**
267         
268 			If true will erase previously set points.
269 		 */
270         public SetRoute setErase(boolean Erase) {
271             this.Erase = Erase;
272             return this;
273             }
274        
275         /**
276         
277 			Location point.
278 		 */
279         protected
280          Location Point0 =
281         	null;
282 
283         
284         /**
285         
286 			Location point.
287 		 */
288         public
289         Location getPoint0() {
290             return
291          Point0;
292         }
293         
294 
295         
296             /**
297         
298 			Location point.
299 		 */
300         public SetRoute setPoint0(Location Point0) {
301             this.Point0 = Point0;
302             return this;
303             }
304        
305         /**
306         
307 			Location point.
308 		 */
309         protected
310          Location Point1 =
311         	null;
312 
313         
314         /**
315         
316 			Location point.
317 		 */
318         public
319         Location getPoint1() {
320             return
321          Point1;
322         }
323         
324 
325         
326             /**
327         
328 			Location point.
329 		 */
330         public SetRoute setPoint1(Location Point1) {
331             this.Point1 = Point1;
332             return this;
333             }
334        
335         /**
336         
337 			Location point.
338 		 */
339         protected
340          Location Point2 =
341         	null;
342 
343         
344         /**
345         
346 			Location point.
347 		 */
348         public
349         Location getPoint2() {
350             return
351          Point2;
352         }
353         
354 
355         
356             /**
357         
358 			Location point.
359 		 */
360         public SetRoute setPoint2(Location Point2) {
361             this.Point2 = Point2;
362             return this;
363             }
364        
365         /**
366         
367 			Location point.
368 		 */
369         protected
370          Location Point3 =
371         	null;
372 
373         
374         /**
375         
376 			Location point.
377 		 */
378         public
379         Location getPoint3() {
380             return
381          Point3;
382         }
383         
384 
385         
386             /**
387         
388 			Location point.
389 		 */
390         public SetRoute setPoint3(Location Point3) {
391             this.Point3 = Point3;
392             return this;
393             }
394        
395         /**
396         
397 			Location point.
398 		 */
399         protected
400          Location Point4 =
401         	null;
402 
403         
404         /**
405         
406 			Location point.
407 		 */
408         public
409         Location getPoint4() {
410             return
411          Point4;
412         }
413         
414 
415         
416             /**
417         
418 			Location point.
419 		 */
420         public SetRoute setPoint4(Location Point4) {
421             this.Point4 = Point4;
422             return this;
423             }
424        
425         /**
426         
427 			Location point.
428 		 */
429         protected
430          Location Point5 =
431         	null;
432 
433         
434         /**
435         
436 			Location point.
437 		 */
438         public
439         Location getPoint5() {
440             return
441          Point5;
442         }
443         
444 
445         
446             /**
447         
448 			Location point.
449 		 */
450         public SetRoute setPoint5(Location Point5) {
451             this.Point5 = Point5;
452             return this;
453             }
454        
455         /**
456         
457 			Location point.
458 		 */
459         protected
460          Location Point6 =
461         	null;
462 
463         
464         /**
465         
466 			Location point.
467 		 */
468         public
469         Location getPoint6() {
470             return
471          Point6;
472         }
473         
474 
475         
476             /**
477         
478 			Location point.
479 		 */
480         public SetRoute setPoint6(Location Point6) {
481             this.Point6 = Point6;
482             return this;
483             }
484        
485         /**
486         
487 			Location point.
488 		 */
489         protected
490          Location Point7 =
491         	null;
492 
493         
494         /**
495         
496 			Location point.
497 		 */
498         public
499         Location getPoint7() {
500             return
501          Point7;
502         }
503         
504 
505         
506             /**
507         
508 			Location point.
509 		 */
510         public SetRoute setPoint7(Location Point7) {
511             this.Point7 = Point7;
512             return this;
513             }
514        
515         /**
516         
517 			Location point.
518 		 */
519         protected
520          Location Point8 =
521         	null;
522 
523         
524         /**
525         
526 			Location point.
527 		 */
528         public
529         Location getPoint8() {
530             return
531          Point8;
532         }
533         
534 
535         
536             /**
537         
538 			Location point.
539 		 */
540         public SetRoute setPoint8(Location Point8) {
541             this.Point8 = Point8;
542             return this;
543             }
544        
545         /**
546         
547 			Location point.
548 		 */
549         protected
550          Location Point9 =
551         	null;
552 
553         
554         /**
555         
556 			Location point.
557 		 */
558         public
559         Location getPoint9() {
560             return
561          Point9;
562         }
563         
564 
565         
566             /**
567         
568 			Location point.
569 		 */
570         public SetRoute setPoint9(Location Point9) {
571             this.Point9 = Point9;
572             return this;
573             }
574        
575         /**
576         
577 			Location point.
578 		 */
579         protected
580          Location Point10 =
581         	null;
582 
583         
584         /**
585         
586 			Location point.
587 		 */
588         public
589         Location getPoint10() {
590             return
591          Point10;
592         }
593         
594 
595         
596             /**
597         
598 			Location point.
599 		 */
600         public SetRoute setPoint10(Location Point10) {
601             this.Point10 = Point10;
602             return this;
603             }
604        
605         /**
606         
607 			Location point.
608 		 */
609         protected
610          Location Point11 =
611         	null;
612 
613         
614         /**
615         
616 			Location point.
617 		 */
618         public
619         Location getPoint11() {
620             return
621          Point11;
622         }
623         
624 
625         
626             /**
627         
628 			Location point.
629 		 */
630         public SetRoute setPoint11(Location Point11) {
631             this.Point11 = Point11;
632             return this;
633             }
634        
635         /**
636         
637 			Location point.
638 		 */
639         protected
640          Location Point12 =
641         	null;
642 
643         
644         /**
645         
646 			Location point.
647 		 */
648         public
649         Location getPoint12() {
650             return
651          Point12;
652         }
653         
654 
655         
656             /**
657         
658 			Location point.
659 		 */
660         public SetRoute setPoint12(Location Point12) {
661             this.Point12 = Point12;
662             return this;
663             }
664        
665         /**
666         
667 			Location point.
668 		 */
669         protected
670          Location Point13 =
671         	null;
672 
673         
674         /**
675         
676 			Location point.
677 		 */
678         public
679         Location getPoint13() {
680             return
681          Point13;
682         }
683         
684 
685         
686             /**
687         
688 			Location point.
689 		 */
690         public SetRoute setPoint13(Location Point13) {
691             this.Point13 = Point13;
692             return this;
693             }
694        
695         /**
696         
697 			Location point.
698 		 */
699         protected
700          Location Point14 =
701         	null;
702 
703         
704         /**
705         
706 			Location point.
707 		 */
708         public
709         Location getPoint14() {
710             return
711          Point14;
712         }
713         
714 
715         
716             /**
717         
718 			Location point.
719 		 */
720         public SetRoute setPoint14(Location Point14) {
721             this.Point14 = Point14;
722             return this;
723             }
724        
725         /**
726         
727 			Location point.
728 		 */
729         protected
730          Location Point15 =
731         	null;
732 
733         
734         /**
735         
736 			Location point.
737 		 */
738         public
739         Location getPoint15() {
740             return
741          Point15;
742         }
743         
744 
745         
746             /**
747         
748 			Location point.
749 		 */
750         public SetRoute setPoint15(Location Point15) {
751             this.Point15 = Point15;
752             return this;
753             }
754        
755         /**
756         
757 			Location point.
758 		 */
759         protected
760          Location Point16 =
761         	null;
762 
763         
764         /**
765         
766 			Location point.
767 		 */
768         public
769         Location getPoint16() {
770             return
771          Point16;
772         }
773         
774 
775         
776             /**
777         
778 			Location point.
779 		 */
780         public SetRoute setPoint16(Location Point16) {
781             this.Point16 = Point16;
782             return this;
783             }
784        
785         /**
786         
787 			Location point.
788 		 */
789         protected
790          Location Point17 =
791         	null;
792 
793         
794         /**
795         
796 			Location point.
797 		 */
798         public
799         Location getPoint17() {
800             return
801          Point17;
802         }
803         
804 
805         
806             /**
807         
808 			Location point.
809 		 */
810         public SetRoute setPoint17(Location Point17) {
811             this.Point17 = Point17;
812             return this;
813             }
814        
815         /**
816         
817 			Location point.
818 		 */
819         protected
820          Location Point18 =
821         	null;
822 
823         
824         /**
825         
826 			Location point.
827 		 */
828         public
829         Location getPoint18() {
830             return
831          Point18;
832         }
833         
834 
835         
836             /**
837         
838 			Location point.
839 		 */
840         public SetRoute setPoint18(Location Point18) {
841             this.Point18 = Point18;
842             return this;
843             }
844        
845         /**
846         
847 			Location point.
848 		 */
849         protected
850          Location Point19 =
851         	null;
852 
853         
854         /**
855         
856 			Location point.
857 		 */
858         public
859         Location getPoint19() {
860             return
861          Point19;
862         }
863         
864 
865         
866             /**
867         
868 			Location point.
869 		 */
870         public SetRoute setPoint19(Location Point19) {
871             this.Point19 = Point19;
872             return this;
873             }
874        
875         /**
876         
877 			Location point.
878 		 */
879         protected
880          Location Point20 =
881         	null;
882 
883         
884         /**
885         
886 			Location point.
887 		 */
888         public
889         Location getPoint20() {
890             return
891          Point20;
892         }
893         
894 
895         
896             /**
897         
898 			Location point.
899 		 */
900         public SetRoute setPoint20(Location Point20) {
901             this.Point20 = Point20;
902             return this;
903             }
904        
905         /**
906         
907 			Location point.
908 		 */
909         protected
910          Location Point21 =
911         	null;
912 
913         
914         /**
915         
916 			Location point.
917 		 */
918         public
919         Location getPoint21() {
920             return
921          Point21;
922         }
923         
924 
925         
926             /**
927         
928 			Location point.
929 		 */
930         public SetRoute setPoint21(Location Point21) {
931             this.Point21 = Point21;
932             return this;
933             }
934        
935         /**
936         
937 			Location point.
938 		 */
939         protected
940          Location Point22 =
941         	null;
942 
943         
944         /**
945         
946 			Location point.
947 		 */
948         public
949         Location getPoint22() {
950             return
951          Point22;
952         }
953         
954 
955         
956             /**
957         
958 			Location point.
959 		 */
960         public SetRoute setPoint22(Location Point22) {
961             this.Point22 = Point22;
962             return this;
963             }
964        
965         /**
966         
967 			Location point.
968 		 */
969         protected
970          Location Point23 =
971         	null;
972 
973         
974         /**
975         
976 			Location point.
977 		 */
978         public
979         Location getPoint23() {
980             return
981          Point23;
982         }
983         
984 
985         
986             /**
987         
988 			Location point.
989 		 */
990         public SetRoute setPoint23(Location Point23) {
991             this.Point23 = Point23;
992             return this;
993             }
994        
995         /**
996         
997 			Location point.
998 		 */
999         protected
1000          Location Point24 =
1001         	null;
1002 
1003         
1004         /**
1005         
1006 			Location point.
1007 		 */
1008         public
1009         Location getPoint24() {
1010             return
1011          Point24;
1012         }
1013         
1014 
1015         
1016             /**
1017         
1018 			Location point.
1019 		 */
1020         public SetRoute setPoint24(Location Point24) {
1021             this.Point24 = Point24;
1022             return this;
1023             }
1024        
1025         /**
1026         
1027 			Location point.
1028 		 */
1029         protected
1030          Location Point25 =
1031         	null;
1032 
1033         
1034         /**
1035         
1036 			Location point.
1037 		 */
1038         public
1039         Location getPoint25() {
1040             return
1041          Point25;
1042         }
1043         
1044 
1045         
1046             /**
1047         
1048 			Location point.
1049 		 */
1050         public SetRoute setPoint25(Location Point25) {
1051             this.Point25 = Point25;
1052             return this;
1053             }
1054        
1055         /**
1056         
1057 			Location point.
1058 		 */
1059         protected
1060          Location Point26 =
1061         	null;
1062 
1063         
1064         /**
1065         
1066 			Location point.
1067 		 */
1068         public
1069         Location getPoint26() {
1070             return
1071          Point26;
1072         }
1073         
1074 
1075         
1076             /**
1077         
1078 			Location point.
1079 		 */
1080         public SetRoute setPoint26(Location Point26) {
1081             this.Point26 = Point26;
1082             return this;
1083             }
1084        
1085         /**
1086         
1087 			Location point.
1088 		 */
1089         protected
1090          Location Point27 =
1091         	null;
1092 
1093         
1094         /**
1095         
1096 			Location point.
1097 		 */
1098         public
1099         Location getPoint27() {
1100             return
1101          Point27;
1102         }
1103         
1104 
1105         
1106             /**
1107         
1108 			Location point.
1109 		 */
1110         public SetRoute setPoint27(Location Point27) {
1111             this.Point27 = Point27;
1112             return this;
1113             }
1114        
1115         /**
1116         
1117 			Location point.
1118 		 */
1119         protected
1120          Location Point28 =
1121         	null;
1122 
1123         
1124         /**
1125         
1126 			Location point.
1127 		 */
1128         public
1129         Location getPoint28() {
1130             return
1131          Point28;
1132         }
1133         
1134 
1135         
1136             /**
1137         
1138 			Location point.
1139 		 */
1140         public SetRoute setPoint28(Location Point28) {
1141             this.Point28 = Point28;
1142             return this;
1143             }
1144        
1145         /**
1146         
1147 			Location point.
1148 		 */
1149         protected
1150          Location Point29 =
1151         	null;
1152 
1153         
1154         /**
1155         
1156 			Location point.
1157 		 */
1158         public
1159         Location getPoint29() {
1160             return
1161          Point29;
1162         }
1163         
1164 
1165         
1166             /**
1167         
1168 			Location point.
1169 		 */
1170         public SetRoute setPoint29(Location Point29) {
1171             this.Point29 = Point29;
1172             return this;
1173             }
1174        
1175         /**
1176         
1177 			Location point.
1178 		 */
1179         protected
1180          Location Point30 =
1181         	null;
1182 
1183         
1184         /**
1185         
1186 			Location point.
1187 		 */
1188         public
1189         Location getPoint30() {
1190             return
1191          Point30;
1192         }
1193         
1194 
1195         
1196             /**
1197         
1198 			Location point.
1199 		 */
1200         public SetRoute setPoint30(Location Point30) {
1201             this.Point30 = Point30;
1202             return this;
1203             }
1204        
1205         /**
1206         
1207 			Location point.
1208 		 */
1209         protected
1210          Location Point31 =
1211         	null;
1212 
1213         
1214         /**
1215         
1216 			Location point.
1217 		 */
1218         public
1219         Location getPoint31() {
1220             return
1221          Point31;
1222         }
1223         
1224 
1225         
1226             /**
1227         
1228 			Location point.
1229 		 */
1230         public SetRoute setPoint31(Location Point31) {
1231             this.Point31 = Point31;
1232             return this;
1233             }
1234        
1235             /////// Properties END
1236 
1237             /////// Extra Java code BEGIN
1238 
1239             	/////// Additional code from xslt BEGIN
1240             		
1241 
1242 
1243             	/////// Additional code from xslt END
1244 
1245 	            /////// Extra Java from XML BEGIN
1246             		
1247       		public SetRoute setRoute(List<? extends ILocated> route) {
1248       			if (route.size() == 0) return this;
1249       			setPoint0(route.get(0).getLocation());
1250       			if (route.size() == 1) return this;
1251       			setPoint1(route.get(1).getLocation());
1252       			if (route.size() == 2) return this;
1253       			setPoint2(route.get(2).getLocation());
1254       			if (route.size() == 3) return this;
1255       			setPoint3(route.get(3).getLocation());
1256       			if (route.size() == 4) return this;
1257       			setPoint4(route.get(4).getLocation());
1258       			if (route.size() == 5) return this;
1259       			setPoint5(route.get(5).getLocation());
1260       			if (route.size() == 6) return this;
1261       			setPoint6(route.get(6).getLocation());
1262       			if (route.size() == 7) return this;
1263       			setPoint7(route.get(7).getLocation());
1264       			if (route.size() == 8) return this;
1265       			setPoint8(route.get(8).getLocation());
1266       			if (route.size() == 9) return this;
1267       			setPoint9(route.get(9).getLocation());
1268       			if (route.size() == 10) return this;
1269       			setPoint10(route.get(10).getLocation());
1270       			if (route.size() == 11) return this;
1271       			setPoint11(route.get(11).getLocation());
1272       			if (route.size() == 12) return this;
1273       			setPoint12(route.get(12).getLocation());
1274       			if (route.size() == 13) return this;
1275       			setPoint13(route.get(13).getLocation());
1276       			if (route.size() == 14) return this;
1277       			setPoint14(route.get(14).getLocation());
1278       			if (route.size() == 15) return this;
1279       			setPoint15(route.get(15).getLocation());
1280       			if (route.size() == 16) return this;
1281       			setPoint16(route.get(16).getLocation());
1282       			if (route.size() == 17) return this;
1283       			setPoint17(route.get(17).getLocation());
1284       			if (route.size() == 18) return this;
1285       			setPoint18(route.get(18).getLocation());
1286       			if (route.size() == 19) return this;
1287       			setPoint19(route.get(19).getLocation());
1288       			if (route.size() == 20) return this;
1289       			setPoint20(route.get(20).getLocation());
1290       			if (route.size() == 21) return this;
1291       			setPoint21(route.get(21).getLocation());
1292       			if (route.size() == 22) return this;
1293       			setPoint22(route.get(22).getLocation());
1294       			if (route.size() == 23) return this;
1295       			setPoint23(route.get(23).getLocation());
1296       			if (route.size() == 24) return this;
1297       			setPoint24(route.get(24).getLocation());
1298       			if (route.size() == 25) return this;
1299       			setPoint25(route.get(25).getLocation());
1300       			if (route.size() == 26) return this;
1301       			setPoint26(route.get(26).getLocation());
1302       			if (route.size() == 27) return this;
1303       			setPoint27(route.get(27).getLocation());
1304       			if (route.size() == 28) return this;
1305       			setPoint28(route.get(28).getLocation());
1306       			if (route.size() == 29) return this;
1307       			setPoint29(route.get(29).getLocation());
1308       			if (route.size() == 30) return this;
1309       			setPoint30(route.get(30).getLocation());
1310       			if (route.size() == 31) return this;
1311       			setPoint31(route.get(31).getLocation());
1312       			return this;
1313       		}
1314       	
1315             	/////// Extra Java from XML END
1316 
1317             /////// Extra Java code END
1318 
1319             
1320 
1321             /**
1322               * Cloning constructor.
1323               */
1324              public SetRoute(SetRoute original) {
1325                 
1326                      this.Erase=original.Erase;
1327                 
1328                      this.Point0=original.Point0;
1329                 
1330                      this.Point1=original.Point1;
1331                 
1332                      this.Point2=original.Point2;
1333                 
1334                      this.Point3=original.Point3;
1335                 
1336                      this.Point4=original.Point4;
1337                 
1338                      this.Point5=original.Point5;
1339                 
1340                      this.Point6=original.Point6;
1341                 
1342                      this.Point7=original.Point7;
1343                 
1344                      this.Point8=original.Point8;
1345                 
1346                      this.Point9=original.Point9;
1347                 
1348                      this.Point10=original.Point10;
1349                 
1350                      this.Point11=original.Point11;
1351                 
1352                      this.Point12=original.Point12;
1353                 
1354                      this.Point13=original.Point13;
1355                 
1356                      this.Point14=original.Point14;
1357                 
1358                      this.Point15=original.Point15;
1359                 
1360                      this.Point16=original.Point16;
1361                 
1362                      this.Point17=original.Point17;
1363                 
1364                      this.Point18=original.Point18;
1365                 
1366                      this.Point19=original.Point19;
1367                 
1368                      this.Point20=original.Point20;
1369                 
1370                      this.Point21=original.Point21;
1371                 
1372                      this.Point22=original.Point22;
1373                 
1374                      this.Point23=original.Point23;
1375                 
1376                      this.Point24=original.Point24;
1377                 
1378                      this.Point25=original.Point25;
1379                 
1380                      this.Point26=original.Point26;
1381                 
1382                      this.Point27=original.Point27;
1383                 
1384                      this.Point28=original.Point28;
1385                 
1386                      this.Point29=original.Point29;
1387                 
1388                      this.Point30=original.Point30;
1389                 
1390                      this.Point31=original.Point31;
1391                 
1392              }
1393 
1394              
1395 
1396                  
1397             public String toString() {
1398                 return
1399                 
1400                     	toMessage();
1401                     
1402              }
1403 
1404              public String toHtmlString() {
1405                 return super.toString() +
1406             
1407             "<b>Erase</b> : " +
1408             String.valueOf(Erase) +
1409             " <br/> " +
1410             
1411             "<b>Point0</b> : " +
1412             String.valueOf(Point0) +
1413             " <br/> " +
1414             
1415             "<b>Point1</b> : " +
1416             String.valueOf(Point1) +
1417             " <br/> " +
1418             
1419             "<b>Point2</b> : " +
1420             String.valueOf(Point2) +
1421             " <br/> " +
1422             
1423             "<b>Point3</b> : " +
1424             String.valueOf(Point3) +
1425             " <br/> " +
1426             
1427             "<b>Point4</b> : " +
1428             String.valueOf(Point4) +
1429             " <br/> " +
1430             
1431             "<b>Point5</b> : " +
1432             String.valueOf(Point5) +
1433             " <br/> " +
1434             
1435             "<b>Point6</b> : " +
1436             String.valueOf(Point6) +
1437             " <br/> " +
1438             
1439             "<b>Point7</b> : " +
1440             String.valueOf(Point7) +
1441             " <br/> " +
1442             
1443             "<b>Point8</b> : " +
1444             String.valueOf(Point8) +
1445             " <br/> " +
1446             
1447             "<b>Point9</b> : " +
1448             String.valueOf(Point9) +
1449             " <br/> " +
1450             
1451             "<b>Point10</b> : " +
1452             String.valueOf(Point10) +
1453             " <br/> " +
1454             
1455             "<b>Point11</b> : " +
1456             String.valueOf(Point11) +
1457             " <br/> " +
1458             
1459             "<b>Point12</b> : " +
1460             String.valueOf(Point12) +
1461             " <br/> " +
1462             
1463             "<b>Point13</b> : " +
1464             String.valueOf(Point13) +
1465             " <br/> " +
1466             
1467             "<b>Point14</b> : " +
1468             String.valueOf(Point14) +
1469             " <br/> " +
1470             
1471             "<b>Point15</b> : " +
1472             String.valueOf(Point15) +
1473             " <br/> " +
1474             
1475             "<b>Point16</b> : " +
1476             String.valueOf(Point16) +
1477             " <br/> " +
1478             
1479             "<b>Point17</b> : " +
1480             String.valueOf(Point17) +
1481             " <br/> " +
1482             
1483             "<b>Point18</b> : " +
1484             String.valueOf(Point18) +
1485             " <br/> " +
1486             
1487             "<b>Point19</b> : " +
1488             String.valueOf(Point19) +
1489             " <br/> " +
1490             
1491             "<b>Point20</b> : " +
1492             String.valueOf(Point20) +
1493             " <br/> " +
1494             
1495             "<b>Point21</b> : " +
1496             String.valueOf(Point21) +
1497             " <br/> " +
1498             
1499             "<b>Point22</b> : " +
1500             String.valueOf(Point22) +
1501             " <br/> " +
1502             
1503             "<b>Point23</b> : " +
1504             String.valueOf(Point23) +
1505             " <br/> " +
1506             
1507             "<b>Point24</b> : " +
1508             String.valueOf(Point24) +
1509             " <br/> " +
1510             
1511             "<b>Point25</b> : " +
1512             String.valueOf(Point25) +
1513             " <br/> " +
1514             
1515             "<b>Point26</b> : " +
1516             String.valueOf(Point26) +
1517             " <br/> " +
1518             
1519             "<b>Point27</b> : " +
1520             String.valueOf(Point27) +
1521             " <br/> " +
1522             
1523             "<b>Point28</b> : " +
1524             String.valueOf(Point28) +
1525             " <br/> " +
1526             
1527             "<b>Point29</b> : " +
1528             String.valueOf(Point29) +
1529             " <br/> " +
1530             
1531             "<b>Point30</b> : " +
1532             String.valueOf(Point30) +
1533             " <br/> " +
1534             
1535             "<b>Point31</b> : " +
1536             String.valueOf(Point31) +
1537             " <br/> " +
1538              "";
1539              }
1540 
1541              
1542              
1543              	 public String toMessage() {
1544               		StringBuffer buf = new StringBuffer();
1545               		buf.append("SETROUTE");
1546               		
1547 		    					buf.append(" {Erase " + Erase + "}");
1548 		    				
1549                                 if (Point0 != null) {
1550                                     buf.append(" {Point0 " +
1551                                         Point0.getX() + "," +
1552                                         Point0.getY() + "," +
1553                                         Point0.getZ() + "}");
1554                                 }
1555                             
1556                                 if (Point1 != null) {
1557                                     buf.append(" {Point1 " +
1558                                         Point1.getX() + "," +
1559                                         Point1.getY() + "," +
1560                                         Point1.getZ() + "}");
1561                                 }
1562                             
1563                                 if (Point2 != null) {
1564                                     buf.append(" {Point2 " +
1565                                         Point2.getX() + "," +
1566                                         Point2.getY() + "," +
1567                                         Point2.getZ() + "}");
1568                                 }
1569                             
1570                                 if (Point3 != null) {
1571                                     buf.append(" {Point3 " +
1572                                         Point3.getX() + "," +
1573                                         Point3.getY() + "," +
1574                                         Point3.getZ() + "}");
1575                                 }
1576                             
1577                                 if (Point4 != null) {
1578                                     buf.append(" {Point4 " +
1579                                         Point4.getX() + "," +
1580                                         Point4.getY() + "," +
1581                                         Point4.getZ() + "}");
1582                                 }
1583                             
1584                                 if (Point5 != null) {
1585                                     buf.append(" {Point5 " +
1586                                         Point5.getX() + "," +
1587                                         Point5.getY() + "," +
1588                                         Point5.getZ() + "}");
1589                                 }
1590                             
1591                                 if (Point6 != null) {
1592                                     buf.append(" {Point6 " +
1593                                         Point6.getX() + "," +
1594                                         Point6.getY() + "," +
1595                                         Point6.getZ() + "}");
1596                                 }
1597                             
1598                                 if (Point7 != null) {
1599                                     buf.append(" {Point7 " +
1600                                         Point7.getX() + "," +
1601                                         Point7.getY() + "," +
1602                                         Point7.getZ() + "}");
1603                                 }
1604                             
1605                                 if (Point8 != null) {
1606                                     buf.append(" {Point8 " +
1607                                         Point8.getX() + "," +
1608                                         Point8.getY() + "," +
1609                                         Point8.getZ() + "}");
1610                                 }
1611                             
1612                                 if (Point9 != null) {
1613                                     buf.append(" {Point9 " +
1614                                         Point9.getX() + "," +
1615                                         Point9.getY() + "," +
1616                                         Point9.getZ() + "}");
1617                                 }
1618                             
1619                                 if (Point10 != null) {
1620                                     buf.append(" {Point10 " +
1621                                         Point10.getX() + "," +
1622                                         Point10.getY() + "," +
1623                                         Point10.getZ() + "}");
1624                                 }
1625                             
1626                                 if (Point11 != null) {
1627                                     buf.append(" {Point11 " +
1628                                         Point11.getX() + "," +
1629                                         Point11.getY() + "," +
1630                                         Point11.getZ() + "}");
1631                                 }
1632                             
1633                                 if (Point12 != null) {
1634                                     buf.append(" {Point12 " +
1635                                         Point12.getX() + "," +
1636                                         Point12.getY() + "," +
1637                                         Point12.getZ() + "}");
1638                                 }
1639                             
1640                                 if (Point13 != null) {
1641                                     buf.append(" {Point13 " +
1642                                         Point13.getX() + "," +
1643                                         Point13.getY() + "," +
1644                                         Point13.getZ() + "}");
1645                                 }
1646                             
1647                                 if (Point14 != null) {
1648                                     buf.append(" {Point14 " +
1649                                         Point14.getX() + "," +
1650                                         Point14.getY() + "," +
1651                                         Point14.getZ() + "}");
1652                                 }
1653                             
1654                                 if (Point15 != null) {
1655                                     buf.append(" {Point15 " +
1656                                         Point15.getX() + "," +
1657                                         Point15.getY() + "," +
1658                                         Point15.getZ() + "}");
1659                                 }
1660                             
1661                                 if (Point16 != null) {
1662                                     buf.append(" {Point16 " +
1663                                         Point16.getX() + "," +
1664                                         Point16.getY() + "," +
1665                                         Point16.getZ() + "}");
1666                                 }
1667                             
1668                                 if (Point17 != null) {
1669                                     buf.append(" {Point17 " +
1670                                         Point17.getX() + "," +
1671                                         Point17.getY() + "," +
1672                                         Point17.getZ() + "}");
1673                                 }
1674                             
1675                                 if (Point18 != null) {
1676                                     buf.append(" {Point18 " +
1677                                         Point18.getX() + "," +
1678                                         Point18.getY() + "," +
1679                                         Point18.getZ() + "}");
1680                                 }
1681                             
1682                                 if (Point19 != null) {
1683                                     buf.append(" {Point19 " +
1684                                         Point19.getX() + "," +
1685                                         Point19.getY() + "," +
1686                                         Point19.getZ() + "}");
1687                                 }
1688                             
1689                                 if (Point20 != null) {
1690                                     buf.append(" {Point20 " +
1691                                         Point20.getX() + "," +
1692                                         Point20.getY() + "," +
1693                                         Point20.getZ() + "}");
1694                                 }
1695                             
1696                                 if (Point21 != null) {
1697                                     buf.append(" {Point21 " +
1698                                         Point21.getX() + "," +
1699                                         Point21.getY() + "," +
1700                                         Point21.getZ() + "}");
1701                                 }
1702                             
1703                                 if (Point22 != null) {
1704                                     buf.append(" {Point22 " +
1705                                         Point22.getX() + "," +
1706                                         Point22.getY() + "," +
1707                                         Point22.getZ() + "}");
1708                                 }
1709                             
1710                                 if (Point23 != null) {
1711                                     buf.append(" {Point23 " +
1712                                         Point23.getX() + "," +
1713                                         Point23.getY() + "," +
1714                                         Point23.getZ() + "}");
1715                                 }
1716                             
1717                                 if (Point24 != null) {
1718                                     buf.append(" {Point24 " +
1719                                         Point24.getX() + "," +
1720                                         Point24.getY() + "," +
1721                                         Point24.getZ() + "}");
1722                                 }
1723                             
1724                                 if (Point25 != null) {
1725                                     buf.append(" {Point25 " +
1726                                         Point25.getX() + "," +
1727                                         Point25.getY() + "," +
1728                                         Point25.getZ() + "}");
1729                                 }
1730                             
1731                                 if (Point26 != null) {
1732                                     buf.append(" {Point26 " +
1733                                         Point26.getX() + "," +
1734                                         Point26.getY() + "," +
1735                                         Point26.getZ() + "}");
1736                                 }
1737                             
1738                                 if (Point27 != null) {
1739                                     buf.append(" {Point27 " +
1740                                         Point27.getX() + "," +
1741                                         Point27.getY() + "," +
1742                                         Point27.getZ() + "}");
1743                                 }
1744                             
1745                                 if (Point28 != null) {
1746                                     buf.append(" {Point28 " +
1747                                         Point28.getX() + "," +
1748                                         Point28.getY() + "," +
1749                                         Point28.getZ() + "}");
1750                                 }
1751                             
1752                                 if (Point29 != null) {
1753                                     buf.append(" {Point29 " +
1754                                         Point29.getX() + "," +
1755                                         Point29.getY() + "," +
1756                                         Point29.getZ() + "}");
1757                                 }
1758                             
1759                                 if (Point30 != null) {
1760                                     buf.append(" {Point30 " +
1761                                         Point30.getX() + "," +
1762                                         Point30.getY() + "," +
1763                                         Point30.getZ() + "}");
1764                                 }
1765                             
1766                                 if (Point31 != null) {
1767                                     buf.append(" {Point31 " +
1768                                         Point31.getX() + "," +
1769                                         Point31.getY() + "," +
1770                                         Point31.getZ() + "}");
1771                                 }
1772                             
1773             		return buf.toString();
1774             }
1775              
1776              }
1777 
1778