| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Association |
|
| 1.0;1 |
| 1 | package org.jscsi.target.scsi.inquiry; | |
| 2 | ||
| 3 | /** | |
| 4 | * The ASSOCIATION field is part of DEVICE IDENTIFICATION VPD PAGEs and IDENTIFICATION DESCRIPTORs. It indicates the | |
| 5 | * entity with which the IDENTIFIER field is associated, as described in the following table. | |
| 6 | * | |
| 7 | * <table border="1"> | |
| 8 | * <tr> | |
| 9 | * <th>Code</th> | |
| 10 | * <th>Description</th> | |
| 11 | * </tr> | |
| 12 | * <tr> | |
| 13 | * <td>00b</td> | |
| 14 | * <td>The IDENTIFIER field is associated with the addressed logical unit.</td> | |
| 15 | * <tr> | |
| 16 | * <tr> | |
| 17 | * <td>01b</td> | |
| 18 | * <td>The IDENTIFIER field is associated with the target port that<br> | |
| 19 | * received the request.</td> | |
| 20 | * <tr> | |
| 21 | * <tr> | |
| 22 | * <td>10b</td> | |
| 23 | * <td>The IDENTIFIER field is associated with the SCSI target device<br> | |
| 24 | * that contains the addressed logical unit.</td> | |
| 25 | * <tr> | |
| 26 | * <tr> | |
| 27 | * <td>11b</td> | |
| 28 | * <td>Reserved</td> | |
| 29 | * <tr> | |
| 30 | * </table> | |
| 31 | * | |
| 32 | * The ASSOCIATION field has a length of 2 bits. | |
| 33 | * | |
| 34 | * @see IdentificationDescriptor | |
| 35 | * @see DeviceIdentificationVpdPage | |
| 36 | * @author Andreas Ergenzinger | |
| 37 | */ | |
| 38 | 0 | public enum Association { |
| 39 | ||
| 40 | 0 | LOGICAL_UNIT((byte) 0), TARGET_PORT((byte) 1), SCSI_TARGET_DEVICE((byte) 2), RESERVED((byte) 3); |
| 41 | ||
| 42 | /** | |
| 43 | * The serialized value of this object. | |
| 44 | */ | |
| 45 | private final byte value; | |
| 46 | ||
| 47 | 0 | private Association (final byte value) { |
| 48 | 0 | this.value = value; |
| 49 | 0 | } |
| 50 | ||
| 51 | public final byte getValue () { | |
| 52 | 0 | return value; |
| 53 | } | |
| 54 | } |