private void fromJSONRobotConfiguration(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); RobotConfigurationJSON convert_classy = RobotConfigurationJSON.from_json(json_value, ignore_extras, true); setRobotConfiguration(convert_classy); }
public void setRobotConfiguration(RobotConfigurationJSON new_value) { if (flagHasRobotConfiguration) { } flagHasRobotConfiguration = true; storeRobotConfiguration = new_value; }
protected override void finish() { RobotConfigurationJSON result = new RobotConfigurationJSON(); Debug.Assert(result != null); finish(result); int extra_count = unknownFieldGenerator.field_names.Count; Debug.Assert(extra_count == unknownFieldGenerator.field_values.Count); for (int extra_num = 0; extra_num < extra_count; ++extra_num) { result.extraRobotConfigurationAppendPair(unknownFieldGenerator.field_names[extra_num], unknownFieldGenerator.field_values[extra_num]); } unknownFieldGenerator.field_names.Clear(); unknownFieldGenerator.field_values.Clear(); unknownFieldGenerator.index = new Dictionary <string, JSONValue>(); handle_result(result); }
protected void finish(RobotConfigurationJSON result) { if (fieldGeneratorArmCount.have_value) { result.setArmCount(fieldGeneratorArmCount.value); fieldGeneratorArmCount.have_value = false; } if (fieldGeneratorLegCount.have_value) { result.setLegCount(fieldGeneratorLegCount.value); fieldGeneratorLegCount.have_value = false; } if (fieldGeneratorIsMobile.have_value) { result.setIsMobile(fieldGeneratorIsMobile.value); fieldGeneratorIsMobile.have_value = false; } if (fieldGeneratorSensors.have_value) { result.setSensors(fieldGeneratorSensors.value); fieldGeneratorSensors.have_value = false; } }
protected override void handle_result(RobotConfigurationJSON result) { top.value.Add(result); }
protected override void handle_result(RobotConfigurationJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(RobotConfigurationJSON new_result);