X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ab1a94e98438ed2d29533aca9e613d667237c3d0..3f2a2c5f72781e2d5393ffaf64ab3d69d5e41fc0:/examples/java/trace/pingpong/Receiver.java diff --git a/examples/java/trace/pingpong/Receiver.java b/examples/java/trace/pingpong/Receiver.java index 54f24df00f..a74ebba634 100644 --- a/examples/java/trace/pingpong/Receiver.java +++ b/examples/java/trace/pingpong/Receiver.java @@ -14,10 +14,10 @@ import org.simgrid.msg.Process; import org.simgrid.trace.Trace; public class Receiver extends Process { - private static final double commSizeLat = 1; - private static final double commSizeBw = 100000000; + private static final double COMM_SIZE_LAT = 1; + private static final double COMM_SIZE_BW = 100000000; - public Receiver(String hostname, String name, String[]args) throws HostNotFoundException, NativeException{ + public Receiver(String hostname, String name, String[]args) throws HostNotFoundException, NativeException { super(hostname,name,args); } @@ -39,12 +39,12 @@ public class Receiver extends Process { double communicationTime=timeGot - time; Msg.info("Communication time : " + communicationTime); - Msg.info(" --- bw "+ commSizeBw/communicationTime + " ----"); + Msg.info(" --- bw "+ COMM_SIZE_BW/communicationTime + " ----"); /* Send the pong */ Trace.hostPushState (getHost().getName(), "PM_STATE", "sendingPong"); double computeDuration = 0; - PingPongTask pong = new PingPongTask("no name",computeDuration,commSizeLat); + PingPongTask pong = new PingPongTask("no name",computeDuration,COMM_SIZE_LAT); pong.setTime(time); pong.send(ping.getSource().getName());