/** * Gets the network delay associated to the sent of a message from a given source to a given * destination. * * @param src source of the message * @param dst destination of the message * @return delay to send a message from src to dst * @pre src >= 0 * @pre dst >= 0 */ private double getNetworkDelay(int src, int dst) { if (NetworkTopology.isNetworkEnabled()) { return NetworkTopology.getDelay(src, dst); } return 0.0; }