- Add ConnectionParam.java to extract the connection parameters under ConnectedAP tag in the CID/SCD file while parsing it.

- Add the ConnectionParam to the ServerModel.java to be retrieved after parsing the CID/SCD file.
- Enhance the SclParser.java to parse the ConnectionParam under the ConnectedAP tag.
- Optimize imports in the SclParser.java
- Remove the unnecessary .toStrings in the SclParser.java
- Replace the If-else with switch case in the SclParser.java
pull/32/head
Abdelaziz Said 4 years ago
parent c8f49bdc47
commit 38e93a1b6d

@ -38,7 +38,6 @@ public class SclParser {
private final List<ServerModel> serverModels = new ArrayList<>();
private boolean useResvTmsAttributes = false;
private String iedConnectedAP;
ConnectionParam connectionParm;
private final Map<String, ConnectionParam> iedConnectionMap = new HashMap<>();
@ -85,7 +84,7 @@ public class SclParser {
for (int zz = 0; zz < connectedAPs.getLength(); zz++) {
Node connectedAP = connectedAPs.item(zz);
Node attributeName = connectedAP.getAttributes().getNamedItem("iedName");
iedConnectedAP = attributeName.getNodeValue();
String iedConnectedAP = attributeName.getNodeValue();
connectionParm = new ConnectionParam();
if ((iedConnectedAP == null) || (iedConnectedAP.length() == 0)) {
throw new SclParseException("ConnectedAP must has a name");

Loading…
Cancel
Save