}
public void updateBandwidthRoute(String src, String dst, double bandwidth){
- NetworkLink[] route = Surf.getRoute(src, dst);
+ Link[] route = Surf.getRoute(src, dst);
for (int i =0; i<route.length; i++){
Msg.info("Trace: bandwidth of "+route[i].getName()+" before "+route[i].getBandwidth());
route[i].updateBandwidth(bandwidth);//getName();
}
}
+ @Override
public void networkCommunicateCallback(NetworkAction action, RoutingEdge src, RoutingEdge dst, double size, double rate){
if (src.getName().equals(this.src) && dst.getName().equals(this.dst)) {
action.setBound(this.bandwidth);
}
Msg.info("Trace: Communicate message of size "+size+" with rate "+rate+" and bound "+action.getBound()+" from "+src.getName()+" to "+dst.getName());
}
-
}