Enum Class NegotiationState

java.lang.Object
java.lang.Enum<NegotiationState>
com.tnsai.coordination.negotiation.NegotiationState
All Implemented Interfaces:
Serializable, Comparable<NegotiationState>, Constable

public enum NegotiationState extends Enum<NegotiationState>
Lifecycle states for a negotiation session.
Since:
0.0.2
  • Enum Constant Details

    • INITIAL

      public static final NegotiationState INITIAL
      Negotiation initialized but not started.
    • PROPOSING

      public static final NegotiationState PROPOSING
      Active party is making an offer.
    • COUNTER_OFFERING

      public static final NegotiationState COUNTER_OFFERING
      Counter-offer is being formulated.
    • EVALUATING

      public static final NegotiationState EVALUATING
      Offers are being evaluated.
    • AGREED

      public static final NegotiationState AGREED
      Parties reached agreement.
    • FAILED

      public static final NegotiationState FAILED
      Negotiation failed without agreement.
    • TIMED_OUT

      public static final NegotiationState TIMED_OUT
      Negotiation exceeded time limit.
  • Method Details

    • values

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

      public static NegotiationState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null