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
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git]
/
examples
/
java
/
trace
/
pingpong
/
Main.java
diff --git
a/examples/java/trace/pingpong/Main.java
b/examples/java/trace/pingpong/Main.java
index
1e82ea8
..
ed126d8
100644
(file)
--- a/
examples/java/trace/pingpong/Main.java
+++ b/
examples/java/trace/pingpong/Main.java
@@
-11,19
+11,23
@@
import org.simgrid.msg.MsgException;
import org.simgrid.msg.NativeException;
public class Main {
import org.simgrid.msg.NativeException;
public class Main {
+ private Main() {
+ throw new IllegalAccessError("Utility class");
+ }
+
public static void main(String[] args) throws MsgException, NativeException {
Msg.init(args);
if(args.length < 1) {
public static void main(String[] args) throws MsgException, NativeException {
Msg.init(args);
if(args.length < 1) {
- Msg.info("Usage :
TracingTest
platform_file");
- Msg.info("example :
TracingTest
../platforms/platform.xml");
+ Msg.info("Usage :
Main
platform_file");
+ Msg.info("example :
Main
../platforms/platform.xml");
System.exit(1);
}
/* construct the platform and deploy the application */
Msg.createEnvironment(args[0]);
System.exit(1);
}
/* construct the platform and deploy the application */
Msg.createEnvironment(args[0]);
- new Sender("Jacquelin", "Sender", new String[] {"Boivin", "
Marcel
"}).start();
+ new Sender("Jacquelin", "Sender", new String[] {"Boivin", "
Tremblay
"}).start();
new Receiver ("Boivin", "Receiver", null).start();
new Receiver ("Boivin", "Receiver", null).start();
- new Receiver ("
Marcel
", "Receiver", null).start();
+ new Receiver ("
Tremblay
", "Receiver", null).start();
/* Initialize some state for the hosts */
Trace.hostStateDeclare ("PM_STATE");
/* Initialize some state for the hosts */
Trace.hostStateDeclare ("PM_STATE");