Class ParametersServer

java.lang.Object
it.polimi.ingsw.am13.ParametersServer

public class ParametersServer extends Object
Class storing all the major parameters the server classes use, both for game and technical aspects. The non-final values are parametric and could be chosen via command line, the value here are the default ones
  • Field Details

    • timeout

      public static Long timeout
      Constant storing the timeout used to detect the disconnection of a client (in ms)
    • sleepTime

      public static Long sleepTime
      Constant storing the sleep time in ms of the threads managing connections (i.e. how often they repeat the checks)
    • timeToWaitReconnection

      public static Long timeToWaitReconnection
      How much time (in ms) the controller waits for a client to reconnect when only 1 player or fewer are connected
    • alonePlayerWin

      public static boolean alonePlayerWin
      Flag indication if a player who remained alone must be declared winner Debug purposes only
    • checkPings

      public static boolean checkPings
      Flag indicating if the server must check the pings of the clients. Debug purposes only
    • SERVER_IP

      public static String SERVER_IP
      IP Addressed of the server
    • SOCKET_PORT

      public static int SOCKET_PORT
      Socket port number
    • RMI_PORT

      public static int RMI_PORT
      RMI port number
    • LOBBY_RMI_NAME

      public static String LOBBY_RMI_NAME
      RMI name for bind of remote interface LobbyRMIIF
    • POINTS_FOR_FINAL_PHASE

      public static int POINTS_FOR_FINAL_PHASE
      Number of points that, when first reached by a player, triggers the final phase
    • CHECK_REQUIREMENTS

      public static boolean CHECK_REQUIREMENTS
      If true (default) the requirements for gold cards are checked. Otherwise, the card can always be placed in field
  • Constructor Details

    • ParametersServer

      public ParametersServer()