/*
- * $Id$
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier
- * All rights reserved.
+ * Copyright 2006,2007,2010. The SimGrid Team. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package.
* which also contains such a launcher
*/
- public static void main(String[] args) throws JniException, NativeException {
+ public static void main(String[] args) throws NativeException {
/* initialize the MSG simulation. Must be done before anything else (even logging). */
Msg.init(args);
/*
- * $Id: CommTimeTask.java 3685 2007-07-08 21:02:03Z mquinson $
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier
- * All rights reserved.
+ * Copyright 2006,2007,2010. The SimGrid Team. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package.
import simgrid.msg.*;
-public class FinalizeTask extends Task {
-
- public FinalizeTask() throws JniException, NativeException{
+public class FinalizeTask extends Task {
+ public FinalizeTask() {
super("finalize",0,0);
}
}
/*
- * $Id$
- *
- * Copyright 2006,2007,2010 The SimGrid Team
- * All rights reserved.
+ * Copyright 2006,2007,2010. The SimGrid Team. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package.
public class Forwarder extends simgrid.msg.Process {
- public void main(String[] args) throws JniException, NativeException {
+ public void main(String[] args) throws NativeException {
if (args.length < 3) {
Msg.info("Forwarder needs 3 arguments (input mailbox, first output mailbox, last one)");
Msg.info("Got "+args.length+" instead");
import simgrid.msg.*;
public class Master extends simgrid.msg.Process {
- public void main(String[] args) throws JniException, NativeException {
+ public void main(String[] args) throws NativeException {
if (args.length < 4) {
Msg.info("Master needs 4 arguments");
System.exit(1);
/*
- * $Id$
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier
- * All rights reserved.
+ * Copyright 2006,2007,2010. The SimGrid Team. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package.
import simgrid.msg.*;
public class Slave extends simgrid.msg.Process {
- public void main(String[] args) throws JniException, NativeException {
+ public void main(String[] args) throws NativeException {
if (args.length < 1) {
Msg.info("Slave needs 1 argument (its number)");
System.exit(1);
/*
- * $Id$
- *
* Copyright 2006,2007,2010 The SimGrid Team. All right reserved.
*
* This program is free software; you can redistribute it and/or modify it
* which also contains such a launcher
*/
- public static void main(String[] args) throws JniException, NativeException {
+ public static void main(String[] args) throws NativeException {
/* initialize the MSG simulation. Must be done before anything else (even logging). */
Msg.init(args);
/*
- * $Id: CommTimeTask.java 3685 2007-07-08 21:02:03Z mquinson $
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier
- * All rights reserved.
+ * Copyright 2006,2007,2010. The SimGrid Team. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package.
import simgrid.msg.*;
-public class FinalizeTask extends Task {
-
- public FinalizeTask() throws JniException, NativeException{
+public class FinalizeTask extends Task {
+ public FinalizeTask() {
super("",0,0);
}
}
import simgrid.msg.*;
public class Master extends simgrid.msg.Process {
- public void main(String[] args) throws JniException, NativeException {
+ public void main(String[] args) throws NativeException {
if (args.length < 4) {
Msg.info("Master needs 4 arguments");
System.exit(1);
/*
- * $Id$
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier
- * All rights reserved.
+ * Copyright 2006,2007,2010. The SimGrid Team. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package.
import simgrid.msg.*;
public class Slave extends simgrid.msg.Process {
- public void main(String[] args) throws JniException, NativeException {
+ public void main(String[] args) throws NativeException {
if (args.length < 1) {
Msg.info("Slave needs 1 argument (its number)");
System.exit(1);
/*
- * $Id$
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier
- * All rights reserved.
+ * Copyright 2006,2007,2010. The SimGrid Team. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package.
private double timeVal;
- public PingPongTask() throws JniException, NativeException {
+ public PingPongTask() throws NativeException {
this.timeVal = 0;
}
- public PingPongTask(String name, double computeDuration, double messageSize) throws JniException, NativeException {
+ public PingPongTask(String name, double computeDuration, double messageSize) throws NativeException {
super(name,computeDuration,messageSize);
}
* which also contains such a launcher
*/
- public static void main(String[] args) throws JniException, NativeException {
+ public static void main(String[] args) throws NativeException {
/* initialize the MSG simulation. Must be done before anything else (even logging). */
Msg.init(args);
final double commSizeLat = 1;
final double commSizeBw = 100000000;
- public void main(String[] args) throws JniException, NativeException {
+ public void main(String[] args) throws NativeException {
Msg.info("hello!");
double communicationTime=0;
private final double commSizeLat = 1;
final double commSizeBw = 100000000;
- public void main(String[] args) throws JniException, NativeException {
+ public void main(String[] args) throws NativeException {
Msg.info("hello!");
public class DreamMaster extends simgrid.msg.Process {
- public void main(String[] args) throws JniException, NativeException {
+ public void main(String[] args) throws NativeException {
Msg.info("Hello !");
Msg.info("Let's create a lazy guy.");
/*
- * $Id$
- *
* Copyright 2006,2007,2010. The SimGrid Team. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
super();
}
- public LazyGuy(Host host,String name)
- throws NullPointerException, HostNotFoundException, JniException, NativeException
+ public LazyGuy(Host host,String name) throws HostNotFoundException, NativeException
{
super(host,name,null);
}
- public void main(String[] args) throws JniException, NativeException {
+ public void main(String[] args) throws NativeException {
Msg.info("Hello !");
Msg.info("Nobody's watching me ? Let's go to sleep.");
public class SuspendTest {
- public static void main(String[] args) throws JniException, NativeException {
+ public static void main(String[] args) throws NativeException {
/* initialize the MSG simulation. Must be done before anything else (even logging). */
Msg.init(args);