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
Update copyright lines with new year.
[simgrid.git]
/
examples
/
java
/
energy
/
consumption
/
Main.java
diff --git
a/examples/java/energy/consumption/Main.java
b/examples/java/energy/consumption/Main.java
index
1297b9a
..
3077654
100644
(file)
--- a/
examples/java/energy/consumption/Main.java
+++ b/
examples/java/energy/consumption/Main.java
@@
-1,4
+1,4
@@
-/* Copyright (c) 2012-201
4
. The SimGrid Team.
+/* Copyright (c) 2012-201
9
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-7,13
+7,12
@@
package energy.consumption;
import org.simgrid.msg.Msg;
package energy.consumption;
import org.simgrid.msg.Msg;
-import org.simgrid.msg.Host;
import org.simgrid.msg.MsgException;
public class Main {
import org.simgrid.msg.MsgException;
public class Main {
- p
ublic static final double task_comp_size = 10;
-
public static final double task_comm_size = 10
;
- public static final int hostNB = 2 ;
+ p
rivate Main() {
+
throw new IllegalAccessError("Utility class")
;
+ }
public static void main(String[] args) throws MsgException {
Msg.energyInit();
public static void main(String[] args) throws MsgException {
Msg.energyInit();
@@
-26,10
+25,9
@@
public class Main {
}
/* Construct the platform */
Msg.createEnvironment(args[0]);
}
/* Construct the platform */
Msg.createEnvironment(args[0]);
- /* Instan
c
iate a process */
+ /* Instan
t
iate a process */
new EnergyConsumer("MyHost1","energyConsumer").start();
/* Execute the simulation */
Msg.run();
new EnergyConsumer("MyHost1","energyConsumer").start();
/* Execute the simulation */
Msg.run();
- Msg.info("Total simulation time: "+ Msg.getClock());
}
}
}
}