Class Settings

java.lang.Object
edu.uky.cs.nil.tt.Settings

public class Settings extends Object
Constants and other project-wide settings.
Author:
Stephen G. Ware
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
    The amount of time in milliseconds an agent has to send an expected message before they will be disconnected for inactivity
    static final String
    The people who contributed significantly to this project
    static final int
    The default port the server will listen on, if one is not specified
    static final String
    The name of this project
    static final Set<Character>
    The characters that can be legally used in a name
    static final int
    The maximum number of characters allowed in a name
    static final int
    The number of passed turns in a row which causes a session to be automatically stopped
    static final int
    The number of characters that can be read from a client socket before an exception is thrown.
    static final long
    The amount of time in milliseconds between clock ticks.
    static final String
    A full title, including name, version number, and authors
    static final String
    The current version of this project
  • Method Summary

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NAME

      public static final String NAME
      The name of this project
      See Also:
    • VERSION

      public static final String VERSION
      The current version of this project
      See Also:
    • AUTHORS

      public static final String AUTHORS
      The people who contributed significantly to this project
      See Also:
    • TITLE

      public static final String TITLE
      A full title, including name, version number, and authors
      See Also:
    • NAME_MAX_LENGTH

      public static final int NAME_MAX_LENGTH
      The maximum number of characters allowed in a name
      See Also:
    • NAME_ALLOWED_CHARACTERS

      public static final Set<Character> NAME_ALLOWED_CHARACTERS
      The characters that can be legally used in a name
    • TICK_SPEED

      public static final long TICK_SPEED
      The amount of time in milliseconds between clock ticks.
      See Also:
    • AGENT_TIMEOUT

      public static final long AGENT_TIMEOUT
      The amount of time in milliseconds an agent has to send an expected message before they will be disconnected for inactivity
      See Also:
    • PASS_LIMIT

      public static final int PASS_LIMIT
      The number of passed turns in a row which causes a session to be automatically stopped
      See Also:
    • DEFAULT_PORT

      public static final int DEFAULT_PORT
      The default port the server will listen on, if one is not specified
      See Also:
    • READ_LIMIT

      public static final int READ_LIMIT
      The number of characters that can be read from a client socket before an exception is thrown. This limit is used to avoid Out of Memory Errors from malicious clients that send overly long inputs.
      See Also: