| | |
| | | } |
| | | //-----根据groupNum的值读取测试数据---------------------------// |
| | | Iterator nodes = rootnode.elementIterator("node_batt_num"); |
| | | BattgroupInfo battInfo=new BattgroupInfo(); |
| | | List<BattgroupData> battDataList=new ArrayList(); |
| | | |
| | | while (nodes.hasNext()){ |
| | | node= (Element) nodes.next(); |
| | | BattgroupInfo battInfo=new BattgroupInfo(); |
| | | List<BattgroupData> battDataList=new ArrayList(); |
| | | BattgroupData battData=new BattgroupData(); |
| | | battData.setMonNum(Integer.parseInt(node.attributeValue("batt_num"))); |
| | | file_node=node.element("bv_1"); |
| | |
| | | file_node=node.element("cr_1"); |
| | | battData.setCr(file_node.getTextTrim()); |
| | | battDataList.add(battData); |
| | | battInfo.setBattDataList(battDataList); |
| | | fileInfo.getBattInfoList().add(battInfo); |
| | | } |
| | | battInfo.setBattDataList(battDataList); |
| | | fileInfo.getBattInfoList().add(battInfo); |
| | | fileInfo.setFileParam(fparam); |
| | | fiso.close(); |
| | | } catch (NullPointerException | NumberFormatException | DocumentException | ParseException | FileNotFoundException e) { |