A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Further cleanups of the Java bindings:
[simgrid.git]
/
examples
/
java
/
ping_pong
/
Receiver.java
diff --git
a/examples/java/ping_pong/Receiver.java
b/examples/java/ping_pong/Receiver.java
index
cb5c808
..
a35426d
100644
(file)
--- a/
examples/java/ping_pong/Receiver.java
+++ b/
examples/java/ping_pong/Receiver.java
@@
-21,11
+21,10
@@
public class Receiver extends simgrid.msg.Process {
double communicationTime=0;
double time = Msg.getClock();
double communicationTime=0;
double time = Msg.getClock();
- Channel channel = new Channel(0);
Msg.info("try to get a task");
Msg.info("try to get a task");
- PingPongTask task = (PingPongTask)
channel.get(
);
+ PingPongTask task = (PingPongTask)
Task.get(0
);
double timeGot = Msg.getClock();
double timeSent = task.getTime();
double timeGot = Msg.getClock();
double timeSent = task.getTime();