@@ -25,21 +25,18 @@ public class SetRobotResponse extends BaseResponse {
25
25
protected boolean markerSim ;
26
26
protected boolean markerSimDefined = false ;
27
27
protected boolean nn ;
28
- protected JSONArray nnActivations ;
29
28
protected boolean nnDefined = false ;
29
+ protected JSONArray nnActivations ;
30
30
protected boolean webotsSim ;
31
31
protected boolean webotsSimDefined = false ;
32
32
protected String webotsUrl ;
33
- protected String connection ;
34
33
protected String vendor ;
35
34
protected boolean configurationUsed ;
36
35
protected boolean configurationUsedDefined = false ;
37
36
protected String commandLine ;
38
37
protected String signature ;
39
38
protected String sourceCodeFileExtension ;
40
39
protected String binaryFileExtension ;
41
- protected boolean hasWlan ;
42
- protected boolean hasWlanDefined = false ;
43
40
protected String firmwareDefault ;
44
41
45
42
/**
@@ -92,14 +89,12 @@ public static SetRobotResponse makeFromProperties(
92
89
JSONArray nnActivations ,
93
90
boolean webotsSim ,
94
91
String webotsUrl ,
95
- String connection ,
96
92
String vendor ,
97
93
boolean configurationUsed ,
98
94
String commandLine ,
99
95
String signature ,
100
96
String sourceCodeFileExtension ,
101
97
String binaryFileExtension ,
102
- boolean hasWlan ,
103
98
String firmwareDefault ) {
104
99
SetRobotResponse entity = new SetRobotResponse ();
105
100
entity .setCmd (cmd );
@@ -129,14 +124,12 @@ public static SetRobotResponse makeFromProperties(
129
124
entity .setNnActivations (nnActivations );
130
125
entity .setWebotsSim (webotsSim );
131
126
entity .setWebotsUrl (webotsUrl );
132
- entity .setConnection (connection );
133
127
entity .setVendor (vendor );
134
128
entity .setConfigurationUsed (configurationUsed );
135
129
entity .setCommandLine (commandLine );
136
130
entity .setSignature (signature );
137
131
entity .setSourceCodeFileExtension (sourceCodeFileExtension );
138
132
entity .setBinaryFileExtension (binaryFileExtension );
139
- entity .setHasWlan (hasWlan );
140
133
entity .setFirmwareDefault (firmwareDefault );
141
134
entity .immutable ();
142
135
return entity ;
@@ -206,14 +199,12 @@ public SetRobotResponse merge(JSONObject jsonO) {
206
199
setMarkerSim (jsonO .getBoolean (key ));
207
200
} else if ( "nn" .equals (key ) ) {
208
201
setNn (jsonO .getBoolean (key ));
209
- } else if ( "nn.activations " .equals (key ) ) {
202
+ } else if ( "nnActivations " .equals (key ) ) {
210
203
setNnActivations (jsonO .getJSONArray (key ));
211
204
} else if ( "webotsSim" .equals (key ) ) {
212
205
setWebotsSim (jsonO .getBoolean (key ));
213
206
} else if ( "webotsUrl" .equals (key ) ) {
214
207
setWebotsUrl (jsonO .optString (key ));
215
- } else if ( "connection" .equals (key ) ) {
216
- setConnection (jsonO .getString (key ));
217
208
} else if ( "vendor" .equals (key ) ) {
218
209
setVendor (jsonO .getString (key ));
219
210
} else if ( "configurationUsed" .equals (key ) ) {
@@ -226,8 +217,6 @@ public SetRobotResponse merge(JSONObject jsonO) {
226
217
setSourceCodeFileExtension (jsonO .getString (key ));
227
218
} else if ( "binaryFileExtension" .equals (key ) ) {
228
219
setBinaryFileExtension (jsonO .getString (key ));
229
- } else if ( "hasWlan" .equals (key ) ) {
230
- setHasWlan (jsonO .getBoolean (key ));
231
220
} else if ( "firmwareDefault" .equals (key ) ) {
232
221
setFirmwareDefault (jsonO .optString (key ));
233
222
} else {
@@ -296,14 +285,11 @@ private SetRobotResponse validate() {
296
285
_message = "required property nn of SetRobotResponse-object is not set: " + toString ();
297
286
}
298
287
if ( nnActivations == null ) {
299
- _message = "required property nn.activations of SetRobotResponse-object is not set: " + toString ();
288
+ _message = "required property nnActivations of SetRobotResponse-object is not set: " + toString ();
300
289
}
301
290
if ( !webotsSimDefined ) {
302
291
_message = "required property webotsSim of SetRobotResponse-object is not set: " + toString ();
303
292
}
304
- if ( connection == null ) {
305
- _message = "required property connection of SetRobotResponse-object is not set: " + toString ();
306
- }
307
293
if ( vendor == null ) {
308
294
_message = "required property vendor of SetRobotResponse-object is not set: " + toString ();
309
295
}
@@ -316,9 +302,6 @@ private SetRobotResponse validate() {
316
302
if ( binaryFileExtension == null ) {
317
303
_message = "required property binaryFileExtension of SetRobotResponse-object is not set: " + toString ();
318
304
}
319
- if ( !hasWlanDefined ) {
320
- _message = "required property hasWlan of SetRobotResponse-object is not set: " + toString ();
321
- }
322
305
if ( _message != null ) {
323
306
this .immutable = false ;
324
307
throw new RuntimeException (_message );
@@ -478,21 +461,21 @@ public SetRobotResponse setNn(boolean nn) {
478
461
}
479
462
480
463
/**
481
- * GET NN activations . Object must be immutable. Never return null or an undefined/default value.
464
+ * GET nnActivations . Object must be immutable. Never return null or an undefined/default value.
482
465
*/
483
466
public JSONArray getNnActivations () {
484
467
if ( !this .immutable ) {
485
- throw new RuntimeException ("no NN activations from an object under construction: " + toString ());
468
+ throw new RuntimeException ("no nnActivations from an object under construction: " + toString ());
486
469
}
487
470
return this .nnActivations ;
488
471
}
489
472
490
473
/**
491
- * SET NN activations for the robot . Object must be mutable.
474
+ * SET nnActivations . Object must be mutable.
492
475
*/
493
476
public SetRobotResponse setNnActivations (JSONArray nnActivations ) {
494
477
if ( this .immutable ) {
495
- throw new RuntimeException ("nn activations assigned to an immutable object: " + toString ());
478
+ throw new RuntimeException ("nnActivations assigned to an immutable object: " + toString ());
496
479
}
497
480
this .nnActivations = nnActivations ;
498
481
return this ;
@@ -550,27 +533,6 @@ public SetRobotResponse setWebotsUrl(String webotsUrl) {
550
533
return this ;
551
534
}
552
535
553
- /**
554
- * GET connection. Object must be immutable. Never return null or an undefined/default value.
555
- */
556
- public String getConnection () {
557
- if ( !this .immutable ) {
558
- throw new RuntimeException ("no connection from an object under construction: " + toString ());
559
- }
560
- return this .connection ;
561
- }
562
-
563
- /**
564
- * SET connection. Object must be mutable.
565
- */
566
- public SetRobotResponse setConnection (String connection ) {
567
- if ( this .immutable ) {
568
- throw new RuntimeException ("connection assigned to an immutable object: " + toString ());
569
- }
570
- this .connection = connection ;
571
- return this ;
572
- }
573
-
574
536
/**
575
537
* GET vendor. Object must be immutable. Never return null or an undefined/default value.
576
538
*/
@@ -716,28 +678,6 @@ public SetRobotResponse setBinaryFileExtension(String binaryFileExtension) {
716
678
return this ;
717
679
}
718
680
719
- /**
720
- * GET hasWlan. Object must be immutable. Never return null or an undefined/default value.
721
- */
722
- public boolean getHasWlan () {
723
- if ( !this .immutable ) {
724
- throw new RuntimeException ("no hasWlan from an object under construction: " + toString ());
725
- }
726
- return this .hasWlan ;
727
- }
728
-
729
- /**
730
- * SET hasWlan. Object must be mutable.
731
- */
732
- public SetRobotResponse setHasWlan (boolean hasWlan ) {
733
- if ( this .immutable ) {
734
- throw new RuntimeException ("hasWlan assigned to an immutable object: " + toString ());
735
- }
736
- this .hasWlan = hasWlan ;
737
- this .hasWlanDefined = true ;
738
- return this ;
739
- }
740
-
741
681
/**
742
682
* GET firmwareDefault. Object must be immutable. Never return null or an undefined/default value.
743
683
*/
@@ -834,7 +774,6 @@ public JSONObject toJson() {
834
774
if ( this .webotsUrl != null ) {
835
775
jsonO .put ("webotsUrl" , this .webotsUrl );
836
776
}
837
- jsonO .put ("connection" , this .connection );
838
777
jsonO .put ("vendor" , this .vendor );
839
778
jsonO .put ("configurationUsed" , this .configurationUsed );
840
779
if ( this .commandLine != null ) {
@@ -845,7 +784,6 @@ public JSONObject toJson() {
845
784
}
846
785
jsonO .put ("sourceCodeFileExtension" , this .sourceCodeFileExtension );
847
786
jsonO .put ("binaryFileExtension" , this .binaryFileExtension );
848
- jsonO .put ("hasWlan" , this .hasWlan );
849
787
if ( this .firmwareDefault != null ) {
850
788
jsonO .put ("firmwareDefault" , this .firmwareDefault );
851
789
}
@@ -857,7 +795,7 @@ public JSONObject toJson() {
857
795
858
796
@ Override
859
797
public String toString () {
860
- return "SetRobotResponse [immutable=" + this .immutable + ", cmd=" + this .cmd + ", rc=" + this .rc + ", message=" + this .message + ", cause=" + this .cause + ", parameters=" + this .parameters + ", initToken=" + this .initToken + ", serverTime=" + this .serverTime + ", serverVersion=" + this .serverVersion + ", robotWait=" + this .robotWait + ", robotBattery=" + this .robotBattery + ", robotName=" + this .robotName + ", robotVersion=" + this .robotVersion + ", robotFirmwareName=" + this .robotFirmwareName + ", robotSensorvalues=" + this .robotSensorvalues + ", robotNepoexitvalue=" + this .robotNepoexitvalue + ", robotState=" + this .robotState + ", notificationsAvailable=" + this .notificationsAvailable + ", robot=" + this .robot + ", program=" + this .program + ", configuration=" + this .configuration + ", sim=" + this .sim + ", multipleSim=" + this .multipleSim + ", markerSim=" + this .markerSim + ", nn=" + this .nn + ", nnActivations=" + this .nnActivations + ", webotsSim=" + this .webotsSim + ", webotsUrl=" + this .webotsUrl + ", connection=" + this .connection + ", vendor=" + this .vendor + ", configurationUsed=" + this .configurationUsed + ", commandLine=" + this .commandLine + ", signature=" + this .signature + ", sourceCodeFileExtension=" + this .sourceCodeFileExtension + ", binaryFileExtension=" + this .binaryFileExtension + ", hasWlan=" + this .hasWlan + ", firmwareDefault=" + this .firmwareDefault + " ]" ;
798
+ return "SetRobotResponse [immutable=" + this .immutable + ", cmd=" + this .cmd + ", rc=" + this .rc + ", message=" + this .message + ", cause=" + this .cause + ", parameters=" + this .parameters + ", initToken=" + this .initToken + ", serverTime=" + this .serverTime + ", serverVersion=" + this .serverVersion + ", robotWait=" + this .robotWait + ", robotBattery=" + this .robotBattery + ", robotName=" + this .robotName + ", robotVersion=" + this .robotVersion + ", robotFirmwareName=" + this .robotFirmwareName + ", robotSensorvalues=" + this .robotSensorvalues + ", robotNepoexitvalue=" + this .robotNepoexitvalue + ", robotState=" + this .robotState + ", notificationsAvailable=" + this .notificationsAvailable + ", robot=" + this .robot + ", program=" + this .program + ", configuration=" + this .configuration + ", sim=" + this .sim + ", multipleSim=" + this .multipleSim + ", markerSim=" + this .markerSim + ", nn=" + this .nn + ", nnActivations=" + this .nnActivations + ", webotsSim=" + this .webotsSim + ", webotsUrl=" + this .webotsUrl + ", vendor=" + this .vendor + ", configurationUsed=" + this .configurationUsed + ", commandLine=" + this .commandLine + ", signature=" + this .signature + ", sourceCodeFileExtension=" + this .sourceCodeFileExtension + ", binaryFileExtension=" + this .binaryFileExtension + ", firmwareDefault=" + this .firmwareDefault + " ]" ;
861
799
}
862
800
863
801
@ Override
0 commit comments