| | |
| | | if(file_node!=null){ |
| | | fparam.setConnResBad(Float.parseFloat(file_node.getTextTrim())); |
| | | } |
| | | |
| | | float battCap=fparam.getBattCap();//标称容量 |
| | | float battRes=fparam.getBattRes();//标称内阻 |
| | | //-----根据groupNum的值读取测试数据---------------------------// |
| | | Iterator nodes = rootnode.elementIterator("node_batt_num"); |
| | | BattgroupInfo battInfo=new BattgroupInfo(); |
| | |
| | | file_node=node.element("bv_1"); |
| | | battData.setBv(file_node.getTextTrim()); |
| | | file_node=node.element("br_1"); |
| | | battData.setBr(file_node.getTextTrim()); |
| | | String br=file_node.getTextTrim(); |
| | | battData.setBr(br); |
| | | battData.setEstimatedCap(Float.valueOf(br)/battRes*battCap); |
| | | battData.setBr(br); |
| | | file_node=node.element("bs_1"); |
| | | battData.setBs(file_node.getTextTrim()); |
| | | file_node=node.element("cr_1"); |
| | |
| | | |
| | | //-----根据groupNum的值读取测试数据---------------------------// |
| | | Iterator nodes = rootnode.elementIterator("node_group_num"); |
| | | |
| | | float battCap=fparam.getBattCap();//标称容量 |
| | | float battRes=fparam.getBattRes();//标称内阻 |
| | | |
| | | if(nodes!=null){ |
| | | while (nodes.hasNext()){ |
| | | node= (Element) nodes.next(); |
| | |
| | | batt_node=file_node.element("bv_1"); |
| | | battData.setBv(batt_node.getTextTrim()); |
| | | batt_node=file_node.element("br_1"); |
| | | battData.setBr(batt_node.getTextTrim()); |
| | | String br=batt_node.getTextTrim(); |
| | | battData.setBr(br); |
| | | battData.setEstimatedCap(Float.valueOf(br)/battRes*battCap); |
| | | batt_node=file_node.element("bs_1"); |
| | | battData.setBs(batt_node.getTextTrim()); |
| | | batt_node=file_node.element("cr_1"); |