code: public static TransmissionLayout segmentToLayout(int segment)
      {
          TransmissionLayout layout = XMIT_LAYOUT_UNKNOWN;
          switch (segment)
          {
              case 0x00:
                  layout = XMIT_LAYOUT_UNKNOWN;
                  break;
              case JFapChannelConstants.SEGMENT_HEARTBEAT:
              case JFapChannelConstants.SEGMENT_HEARTBEAT_RESPONSE:
              case JFapChannelConstants.SEGMENT_PHYSICAL_CLOSE:
                  layout = XMIT_PRIMARY_ONLY;
                  break;
              case JFapChannelConstants.SEGMENT_SEGMENTED_FLOW_START:
                  layout = XMIT_SEGMENT_START;
                  break;
              case JFapChannelConstants.SEGMENT_SEGMENTED_FLOW_MIDDLE:
                  layout = XMIT_SEGMENT_MIDDLE;
                  break;
              case JFapChannelConstants.SEGMENT_SEGMENTED_FLOW_END:
                  layout = XMIT_SEGMENT_END;
                  break;
              default:
                  // Assume a conversation layout by default.
                  layout = XMIT_CONVERSATION;
                  break;
          }
          return layout;
      }
docs: Converts from a segment ID to a layout for the transmission.
  
  @param segment
  @return Returns the layout for the segment.