| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| NegotiationStatus |
|
| 0.0;0 |
| 1 | package org.jscsi.target.settings; | |
| 2 | ||
| 3 | ||
| 4 | import org.jscsi.target.settings.entry.Entry; | |
| 5 | ||
| 6 | ||
| 7 | /** | |
| 8 | * {@link NegotiationStatus} objects specifies the necessity, progress, and outcome of the parameter negotiation managed | |
| 9 | * by {@link Entry} instances. | |
| 10 | * <p> | |
| 11 | * The only legal transitions of an {@link Entry} object's {@link NegotiationStatus} are from {@link #NOT_NEGOTIATED} or | |
| 12 | * {@link #DEFAULT} to {@link #ACCEPTED} or {@link #REJECTED}. A status of {@link #IRRELEVANT} must never change. | |
| 13 | * | |
| 14 | * @author Andreas Ergenzinger | |
| 15 | */ | |
| 16 | 0 | public enum NegotiationStatus { |
| 17 | /** | |
| 18 | * The parameter has not been negotiated/declared, yet. | |
| 19 | */ | |
| 20 | 0 | NOT_NEGOTIATED, |
| 21 | /** | |
| 22 | * The parameter has not been negotiated/exchanged, yet. This exchange is optional. | |
| 23 | */ | |
| 24 | 0 | DEFAULT, |
| 25 | /** | |
| 26 | * The parameter has been declared or negotiated and accepted by both sides. | |
| 27 | */ | |
| 28 | 0 | ACCEPTED, |
| 29 | /** | |
| 30 | * Attempts to negotiate the parameter have failed. | |
| 31 | */ | |
| 32 | 0 | REJECTED, |
| 33 | /** | |
| 34 | * The parameter is irrelevant. | |
| 35 | */ | |
| 36 | 0 | IRRELEVANT; |
| 37 | } |