anchorB.setY(anchorA.getY());
netTopologyB.addAnchor(anchorB);
}
for (Switch switchA : netTopologyA.getSwitchs()) {
Switch switchB = new Switch();
switchB.setName(switchA.getName());
switchB.setX(switchA.getX());
switchB.setY(switchA.getY());
switchB.setState(switchA.getState());
netTopologyB.addSwitch(switchB);
}
for (Connection connectionA : netTopologyA.getConnections()) {
Connection connectionB = new Connection();