CliBuilder implements AutoCloseable { public Boolean isFullMeshTopology(List<List<ConfigElementForConnection>> peersList){ List<PhysicalNodeId> beUsedPEs = new ArrayList<PhysicalNodeId>(); for(List<ConfigElementForConnection> peers:peersList){ ConfigElementForConnection configElementOnePE = (ConfigElementForConnection)peers.get(0); ConfigElementForConnection configElementAnother = (ConfigElementForConnection)peers.get(1); if(!beUsedPEs.contains(configElementOnePE.getPhysicalNodeId())){ beUsedPEs.add(configElementOnePE.getPhysicalNodeId()); } if(!beUsedPEs.contains(configElementAnother.getPhysicalNodeId())){ beUsedPEs.add(configElementAnother.getPhysicalNodeId()); } } for(int i =0; i<beUsedPEs.size(); i++){ PhysicalNodeId oneNode = (PhysicalNodeId)beUsedPEs.get(i); for(int j= i+1; j<beUsedPEs.size(); j++){ PhysicalNodeId anotherNode = (PhysicalNodeId)beUsedPEs.get(j); if(isInPeersList(oneNode, anotherNode, peersList)== Boolean.FALSE){ return Boolean.FALSE; } } } System.out.println("isFullMeshTopology() = Boolean.TRUE"); return Boolean.TRUE; } CliBuilder(DataBroker dataProvider); void init(List<PhysicalNode> physicalNodes); Boolean isFullMeshTopology(List<List<ConfigElementForConnection>> peersList); void updateCliExecutionSequence(User user,
                                           VirtualNetwork virtualNetwork,
                                           UserIntentVnMapping userIntentVnMapping,
                                           UserVnPnMapping userVnPnMapping,
                                           PhysicalNetwork physicalNetwork); @Override void close();  }
@Test public void testIsFullMeshTopology() throws Exception { }