package app.bittorrent;
/* Common constants for use in the simulation */
-public class Common {
+class Common {
public static final String TRACKER_MAILBOX = "tracker_mailbox";
public static final int FILE_SIZE = 5120;
public static final int FILE_PIECE_SIZE = 512;
public static final int MAX_UNCHOKED_PEERS = 4; /* Number of peers that can be unchocked at a given time */
public static final int UPDATE_CHOKED_INTERVAL = 30; /* Interval between each update of the choked peers */
public static final int MAX_PIECES = 1; /* Number of pieces the peer asks for simultaneously */
+ private Common() {
+ throw new IllegalAccessError("Utility class");
+ }
}