package trace.pingpong;
import org.simgrid.msg.Msg;
-import org.simgrid.trace.Trace;
import org.simgrid.msg.MsgException;
-import org.simgrid.msg.NativeException;
+import org.simgrid.trace.Trace;
public class Main {
- public static void main(String[] args) throws MsgException, NativeException {
+ private Main() {
+ throw new IllegalAccessError("Utility class");
+ }
+
+ public static void main(String[] args) throws MsgException {
Msg.init(args);
if(args.length < 1) {
Msg.info("Usage : Main platform_file");
/* 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 ("Marcel", "Receiver", null).start();
+ new Receiver ("Tremblay", "Receiver", null).start();
/* Initialize some state for the hosts */
Trace.hostStateDeclare ("PM_STATE");