Enum Strength

    • Enum Constant Detail

      • VERY_LOW

        public static final Strength VERY_LOW
      • MIDDLE

        public static final Strength MIDDLE
      • HIGH

        public static final Strength HIGH
      • VERY_HIGH

        public static final Strength VERY_HIGH
    • Field Detail

      • level

        public final int level
      • representation

        public final String representation
    • Method Detail

      • values

        public static Strength[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Strength c : Strength.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Strength valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • fromString

        public static Strength fromString​(String value)
        Parse the Strength from the given String.
        Parameters:
        value - The strength value as String.
        Returns:
        The parsed Strength enum.
      • strengthToNetwork

        public float strengthToNetwork()
        Parse the Strength to the neural network input value.
        Returns:
        The Strength value as numerical input for the neural network.