X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7a8cd62135619ad52e05ae1c929ef07e166e4260..b558f9b18c938af6a35ebea66ac2323a60178202:/examples/java/chord/Common.java diff --git a/examples/java/chord/Common.java b/examples/java/chord/Common.java new file mode 100644 index 0000000000..03484602a6 --- /dev/null +++ b/examples/java/chord/Common.java @@ -0,0 +1,23 @@ +/* + * Copyright 2006-2012. 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. + */ +package chord; +/** + * Common constants used over the simulation + */ +public class Common { + public final static int COMM_SIZE = 10; + public final static int COMP_SIZE = 0; + + public final static int NB_BITS = 24; + public final static int NB_KEYS = 16777216; + public final static int TIMEOUT = 50; + public final static int MAX_SIMULATION_TIME = 1000; + public final static int PERIODIC_STABILIZE_DELAY = 20; + public final static int PERIODIC_FIX_FINGERS_DELAY = 120; + public final static int PERIODIC_CHECK_PREDECESSOR_DELAY = 120; + public final static int PERIODIC_LOOKUP_DELAY = 10; +}