cdx.scorebot.scoring
Enum ThresholdType

java.lang.Object
  extended by java.lang.Enum<ThresholdType>
      extended by cdx.scorebot.scoring.ThresholdType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ThresholdType>

public enum ThresholdType
extends java.lang.Enum<ThresholdType>
implements java.io.Serializable

an enumeration which specifies what kind of threshold is being applied

Author:
David Underhill

Enum Constant Summary
MAX_NTP_SCORE_CUMULATIVE
          a threshold resulting from the cumulative maximum NTP score permitted
MAX_RULE_BONUS_CUMULATIVE
          a threshold resulting from the cumulative maximum bonus permitted of a scoring rule
MAX_RULE_BONUS_TIME
          a threshold resulting from the time-related bonus restriction of a scoring rule
MAX_RULE_PENALTY_CUMULATIVE
          a threshold resulting from the cumulative maximum penalty permitted of a scoring rule
MAX_RULE_PENALTY_TIME
          a threshold resulting from the time-related penalty restriction of a scoring rule
MAX_SUITE_SCORE_CUMULATIVE
          a threshold resulting from the cumulative maximum suite score permitted
MIN_NTP_SCORE_CUMULATIVE
          a threshold resulting from the cumulative minimum NTP score permitted
MIN_SUITE_SCORE_CUMULATIVE
          a threshold resulting from the cumulative minimum suite score permitted
NOT_THRESHOLDED
          no threshold
 
Method Summary
 java.lang.String toString()
          returns the string representation of these enumerated values
static ThresholdType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ThresholdType[] 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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MAX_RULE_PENALTY_TIME

public static final ThresholdType MAX_RULE_PENALTY_TIME
a threshold resulting from the time-related penalty restriction of a scoring rule


MAX_RULE_BONUS_TIME

public static final ThresholdType MAX_RULE_BONUS_TIME
a threshold resulting from the time-related bonus restriction of a scoring rule


MAX_RULE_PENALTY_CUMULATIVE

public static final ThresholdType MAX_RULE_PENALTY_CUMULATIVE
a threshold resulting from the cumulative maximum penalty permitted of a scoring rule


MAX_RULE_BONUS_CUMULATIVE

public static final ThresholdType MAX_RULE_BONUS_CUMULATIVE
a threshold resulting from the cumulative maximum bonus permitted of a scoring rule


MIN_SUITE_SCORE_CUMULATIVE

public static final ThresholdType MIN_SUITE_SCORE_CUMULATIVE
a threshold resulting from the cumulative minimum suite score permitted


MAX_SUITE_SCORE_CUMULATIVE

public static final ThresholdType MAX_SUITE_SCORE_CUMULATIVE
a threshold resulting from the cumulative maximum suite score permitted


MIN_NTP_SCORE_CUMULATIVE

public static final ThresholdType MIN_NTP_SCORE_CUMULATIVE
a threshold resulting from the cumulative minimum NTP score permitted


MAX_NTP_SCORE_CUMULATIVE

public static final ThresholdType MAX_NTP_SCORE_CUMULATIVE
a threshold resulting from the cumulative maximum NTP score permitted


NOT_THRESHOLDED

public static final ThresholdType NOT_THRESHOLDED
no threshold

Method Detail

values

public static ThresholdType[] 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 (ThresholdType c : ThresholdType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ThresholdType 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

toString

public java.lang.String toString()
returns the string representation of these enumerated values

Overrides:
toString in class java.lang.Enum<ThresholdType>