-/* Copyright (c) 2012-2014,2016. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2012-2017. 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. */
throw new IllegalAccessError("Utility class");
}
- public static void main(String[] args) throws MsgException {
+ public static void main(String[] args) {
int[] seed = { 12345, 12345, 12345, 12345, 12345, 12345 };
RngStream.setPackageSeed(seed);
public void start(){
super.start();
- try {
- daemon.start();
- } catch (HostNotFoundException e) {
- e.printStackTrace();
- }
+ daemon.start();
this.setLoad(0);
}
-/* Copyright (c) 2012-2014, 2016. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2012-2017. 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. */
throw new IllegalAccessError("Utility class");
}
- public static void main(String[] args) throws MsgException {
+ public static void main(String[] args) {
Msg.init(args);
if(args.length < 2) {
Msg.info("Usage : Kademlia platform_file deployment_file");
-/* Copyright (c) 2012-2014. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2012-2017. 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. */
protected int rank;
- public Node(Host host, int number) throws HostNotFoundException {
+ public Node(Host host, int number) {
super(host, Integer.toString(number), null);
this.rank = number;
}
-/* Copyright (c) 2012-2014. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2012-2017. 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 org.simgrid.msg.MsgException;
public class Client extends Process {
- public Client(Host host, int number) throws HostNotFoundException {
+ public Client(Host host, int number) {
super(host, Integer.toString(number), null);
}
/* JNI interface to C code for MSG. */
-/* Copyright (c) 2006-2014. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2006-2017. 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. */
* @param args
* @throws MsgException
*/
- public static void main(String[]args) throws MsgException {
+ public static void main(String[]args) {
/* initialize the MSG simulation. Must be done before anything else (even logging). */
Msg.init(args);
-/* Copyright (c) 2006-2014. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2006-2017. 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. */
* It is a noop if the process is already launched.
* @throws HostNotFoundException
*/
- public final void start() throws HostNotFoundException {
- if (bind == 0)
- create(host);
+ public final void start() {
+ if (bind == 0)
+ create(host);
}
/** This method runs the process. It calls the method function that you must overwrite. */