@Test public void testGetMetric() throws Exception { edge = new Edge(id,src,dest,metric,bandwidth); Assert.assertEquals(0,edge.getMetric()); metric = 1; edge = new Edge(id,src,dest,metric,bandwidth); Assert.assertEquals(1,edge.getMetric()); }
public long getMetric() { return metric; }
Edge { public long getMetric() { return metric; } }
Edge { public long getMetric() { return metric; } Edge(String id, String src, String dest, long metric, long bandwidth);  Edge(VirtualLink virtualLink);  Edge(PhysicalLink physicalLink); }
Edge { public long getMetric() { return metric; } Edge(String id, String src, String dest, long metric, long bandwidth);  Edge(VirtualLink virtualLink);  Edge(PhysicalLink physicalLink); String getId(); String getSrc(); String getDest(); long getMetric(); long getBandwidth(); void setMetric(long metric); void setBandwidth(long bandwidth); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
Edge { public long getMetric() { return metric; } Edge(String id, String src, String dest, long metric, long bandwidth);  Edge(VirtualLink virtualLink);  Edge(PhysicalLink physicalLink); String getId(); String getSrc(); String getDest(); long getMetric(); long getBandwidth(); void setMetric(long metric); void setBandwidth(long bandwidth); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }