X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e0188e2a2598ce57a4d21a3d7eb5f303aecaf0dd..1bdbe2db10271b1d1948e1ee0382abcfe622a991:/examples/java/kademlia/Common.java diff --git a/examples/java/kademlia/Common.java b/examples/java/kademlia/Common.java index 739e18b1ce..0c3d425263 100644 --- a/examples/java/kademlia/Common.java +++ b/examples/java/kademlia/Common.java @@ -1,45 +1,32 @@ -/* Copyright (c) 2012. The SimGrid Team. +/* Copyright (c) 2012-2014, 2016. 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 kademlia; -/** - * Common constants used all over the simulation - */ + public class Common { - public final static int COMM_SIZE = 1; - public final static int COMP_SIZE = 0; - - public final static int RANDOM_LOOKUP_INTERVAL = 100; - - public final static int alpha = 3; - /** - * Size of the nodes identifier - */ - public final static int IDENTIFIER_SIZE = 32; - /** - * Maximum size of the buckets - */ - public final static int BUCKET_SIZE = 20; - /** - * Maximum number of trial for the "JOIN" request - */ - public final static int MAX_JOIN_TRIALS = 4; - /** - * Timeout for a "FIND_NODE" request to a node - */ - public final static int FIND_NODE_TIMEOUT = 10; - /** - * Global timeout for a FIND_NODE. - */ - public final static int FIND_NODE_GLOBAL_TIMEOUT = 50; - /** - * Timeout for a "PING" request - */ - public final static int PING_TIMEOUT = 35; - - public final static int MAX_STEPS = 10; + /* Common constants used all over the simulation */ + public final static int COMM_SIZE = 1; + public final static int COMP_SIZE = 0; + + public final static int RANDOM_LOOKUP_INTERVAL = 100; + + public final static int alpha = 3; + + public final static int IDENTIFIER_SIZE = 32; + /* Maximum size of the buckets */ + public final static int BUCKET_SIZE = 20; + /* Maximum number of trials for the "JOIN" request */ + public final static int MAX_JOIN_TRIALS = 4; + /* Timeout for a "FIND_NODE" request to a node */ + public final static int FIND_NODE_TIMEOUT = 10; + /* Global timeout for a FIND_NODE request */ + public final static int FIND_NODE_GLOBAL_TIMEOUT = 50; + /* Timeout for a "PING" request */ + public final static int PING_TIMEOUT = 35; - public final static int JOIN_BUCKETS_QUERIES = 1; + public final static int MAX_STEPS = 10; + public final static int JOIN_BUCKETS_QUERIES = 1; }