private String znodeId = "";
private PceConstraints pceHardConstraints;
-// private PceConstraints pceSoftConstraints;
///////////// Intermediate data/////////////////
private List<PceLink> addLinks = new ArrayList<PceLink>();
this.returnStructure = rc;
this.pceHardConstraints = pceHardConstraints;
-// this.pceSoftConstraints = pceSoftConstraints;
parseInput();
}
}
printNodesInfo(allPceNodes);
- // printLinksInfo(allPceLinks);
returnStructure.setRC(ResponseCodes.RESPONSE_OK);
return;
LOG.debug("validateLink: DROP-LINK saved {}", pcelink.toString());
break;
case XPONDERINPUT :
- azSrgs.add(sourceId); // store separately all SRG links directly
+ // store separately all SRG links directly
+ azSrgs.add(sourceId);
// connected to A/Z
if (!dest.checkTP(pcelink.getDestTP().toString())) {
LOG.debug("validateLink: XPONDER-INPUT is rejected as NW port is busy - {} ", pcelink.toString());
source.addOutgoingLink(pcelink);
LOG.debug("validateLink: XPONDER-INPUT link added to allPceLinks {}", pcelink.toString());
break;
- case XPONDEROUTPUT : // does it mean XPONDER==>>SRG ?
- azSrgs.add(destId); // store separately all SRG links directly
+ // does it mean XPONDER==>>SRG ?
+ case XPONDEROUTPUT :
+ // store separately all SRG links directly
+ azSrgs.add(destId);
// connected to A/Z
if (!source.checkTP(pcelink.getSourceTP().toString())) {
LOG.debug("validateLink: XPONDER-OUTPUT is rejected as NW port is busy - {} ", pcelink.toString());
break;
}
- if (pceNode.getSupNodeIdPceNode().equals(anodeId)) {
- if (endPceNode(nodeType,pceNode.getNodeId(), pceNode)) {
- this.aendPceNode = pceNode;
- }
+ if ((pceNode.getSupNodeIdPceNode().equals(anodeId)) && (endPceNode(nodeType,pceNode.getNodeId(), pceNode))) {
+ this.aendPceNode = pceNode;
}
- if (pceNode.getSupNodeIdPceNode().equals(znodeId)) {
- if (endPceNode(nodeType,pceNode.getNodeId(), pceNode)) {
- this.zendPceNode = pceNode;
- }
+ if ((pceNode.getSupNodeIdPceNode().equals(znodeId)) && (endPceNode(nodeType,pceNode.getNodeId(), pceNode))) {
+ this.zendPceNode = pceNode;
}
allPceNodes.put(pceNode.getNodeId(), pceNode);
}
}
- private static void printLinksInfo(Map<LinkId, PceLink> allpcelinks) {
+ /*private static void printLinksInfo(Map<LinkId, PceLink> allpcelinks) {
Iterator<Map.Entry<LinkId, PceLink>> links = allpcelinks.entrySet().iterator();
while (links.hasNext()) {
LOG.info("In printLinksInfo link {} : ", links.next().getValue().toString());
}
- }
+ }*/
}