// $Id: ConstAlg.java,v 1.1 2007/11/06 08:11:14 zahorjan Exp $ /** * Symbolic constants that represent tuning parameters of the * underlying algorithm (which is a kind of distance vector in * the base code). */ public class ConstAlg { //---------------------------------------------------------- // These are (logically) parameters of the software implementation. // You can tune them for best performance. //---------------------------------------------------------- /** * This value determines how many slots have to pass without * hearing from a neighbor before a node decides that neighbor * is down. */ public static final int FAILED_TIMEOUT = 3; /** * A really big number looks like INFINITY from where we sit. * (The -1 is so that we can add one without overflow, for * code robustness.) */ public static final int INFINITY = Integer.MAX_VALUE - 1; }