@Test public void testToString() { assertNotNull(device2identity.toString()); }
@Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("\n\nEcmpThenValiantSwitch<switchThreshold=" + switchThresholdBytes + ", id=" + getIdentifier() + ", connected=" + connectedTo + ",\nrouting:\n"); for (int i = 0; i < destinationToNextSwitch.size(); i++) { builder.append("\tfor " + i + " next hops are " + destinationToNextSwitch.get(i) + "\n"); } builder.append(",\ninclusive valiant range: [" + lowBoundValiantRangeIncl + ", " + highBoundValiantRangeIncl + "]\n"); builder.append(">\n\n"); return builder.toString(); }
EcmpThenValiantSwitch extends RangeValiantSwitch { @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("\n\nEcmpThenValiantSwitch<switchThreshold=" + switchThresholdBytes + ", id=" + getIdentifier() + ", connected=" + connectedTo + ",\nrouting:\n"); for (int i = 0; i < destinationToNextSwitch.size(); i++) { builder.append("\tfor " + i + " next hops are " + destinationToNextSwitch.get(i) + "\n"); } builder.append(",\ninclusive valiant range: [" + lowBoundValiantRangeIncl + ", " + highBoundValiantRangeIncl + "]\n"); builder.append(">\n\n"); return builder.toString(); } }
EcmpThenValiantSwitch extends RangeValiantSwitch { @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("\n\nEcmpThenValiantSwitch<switchThreshold=" + switchThresholdBytes + ", id=" + getIdentifier() + ", connected=" + connectedTo + ",\nrouting:\n"); for (int i = 0; i < destinationToNextSwitch.size(); i++) { builder.append("\tfor " + i + " next hops are " + destinationToNextSwitch.get(i) + "\n"); } builder.append(",\ninclusive valiant range: [" + lowBoundValiantRangeIncl + ", " + highBoundValiantRangeIncl + "]\n"); builder.append(">\n\n"); return builder.toString(); } EcmpThenValiantSwitch(int identifier, TransportLayer transportLayer, int n, Intermediary intermediary, int lowBoundValiantRangeIncl, int highBoundValiantRangeIncl, long switchThresholdBytes); }
EcmpThenValiantSwitch extends RangeValiantSwitch { @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("\n\nEcmpThenValiantSwitch<switchThreshold=" + switchThresholdBytes + ", id=" + getIdentifier() + ", connected=" + connectedTo + ",\nrouting:\n"); for (int i = 0; i < destinationToNextSwitch.size(); i++) { builder.append("\tfor " + i + " next hops are " + destinationToNextSwitch.get(i) + "\n"); } builder.append(",\ninclusive valiant range: [" + lowBoundValiantRangeIncl + ", " + highBoundValiantRangeIncl + "]\n"); builder.append(">\n\n"); return builder.toString(); } EcmpThenValiantSwitch(int identifier, TransportLayer transportLayer, int n, Intermediary intermediary, int lowBoundValiantRangeIncl, int highBoundValiantRangeIncl, long switchThresholdBytes); @Override String toString(); }
EcmpThenValiantSwitch extends RangeValiantSwitch { @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("\n\nEcmpThenValiantSwitch<switchThreshold=" + switchThresholdBytes + ", id=" + getIdentifier() + ", connected=" + connectedTo + ",\nrouting:\n"); for (int i = 0; i < destinationToNextSwitch.size(); i++) { builder.append("\tfor " + i + " next hops are " + destinationToNextSwitch.get(i) + "\n"); } builder.append(",\ninclusive valiant range: [" + lowBoundValiantRangeIncl + ", " + highBoundValiantRangeIncl + "]\n"); builder.append(">\n\n"); return builder.toString(); } EcmpThenValiantSwitch(int identifier, TransportLayer transportLayer, int n, Intermediary intermediary, int lowBoundValiantRangeIncl, int highBoundValiantRangeIncl, long switchThresholdBytes); @Override String toString();  }