Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move Java examples to examples/java/.
[simgrid.git] / examples / java / chord / Common.java
diff --git a/examples/java/chord/Common.java b/examples/java/chord/Common.java
new file mode 100644 (file)
index 0000000..0348460
--- /dev/null
@@ -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;
+}