Enum ProboProblem.SubProblem

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ProboProblem.SubProblem>, java.lang.constant.Constable
    Enclosing class:
    ProboProblem

    public static enum ProboProblem.SubProblem
    extends java.lang.Enum<ProboProblem.SubProblem>
    The actual computational sub-problem.
    Author:
    Matthias Thimm
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Enum

        java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DC  
      DE  
      DL  
      DN  
      DS  
      DX  
      EC  
      EE  
      EL  
      ES  
      SE  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String abbreviation
      The abbreviation of the sub-problem.
      private java.lang.String description
      The description of the sub-problem.
      private boolean justification  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SubProblem​(java.lang.String description, java.lang.String abbreviation, boolean just)
      Creates a new sub-problem
    • Method Summary

      Modifier and Type Method Description
      java.lang.String abbreviation()
      Returns the abbreviation of the sub-problem.
      java.lang.String description()
      Returns the description of the sub-problem.
      boolean isJustificationProblem()  
      static ProboProblem.SubProblem valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ProboProblem.SubProblem[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • description

        private java.lang.String description
        The description of the sub-problem.
      • abbreviation

        private java.lang.String abbreviation
        The abbreviation of the sub-problem.
      • justification

        private boolean justification
    • Constructor Detail

      • SubProblem

        private SubProblem​(java.lang.String description,
                           java.lang.String abbreviation,
                           boolean just)
        Creates a new sub-problem
        Parameters:
        description - some description.
        abbreviation - the abbreviation of the sub-problem.
        just - whether justification is needed
    • Method Detail

      • values

        public static ProboProblem.SubProblem[] values()
        Returns an array containing the constants of this enum type, in the order they are declared.
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ProboProblem.SubProblem valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • description

        public java.lang.String description()
        Returns the description of the sub-problem.
        Returns:
        the description of the sub-problem.
      • abbreviation

        public java.lang.String abbreviation()
        Returns the abbreviation of the sub-problem.
        Returns:
        the abbreviation of the sub-problem.
      • isJustificationProblem

        public boolean isJustificationProblem()