mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/comms/CommsMgrImpl.java
private CommType convertBaseTypeToCommType(final String baseType)
    {
        if (baseType.equals(TransportLayer.class.getSimpleName()))
        {
            return CommType.TransportLayer;
        }
        else if (baseType.equals(LinkLayer.class.getSimpleName()))
        {
            return CommType.Linklayer;
        }
        else if (baseType.equals(PhysicalLink.class.getSimpleName()))
        {
            return CommType.PhysicalLink;
        } 
        throw new IllegalArgumentException("Cannot convert " + baseType + " to a valid CommType."); 
    }
/**
     * Helper method for converting a given string base comm type
     * to an actual comm type object.
     * @param baseType
     *      string representation of a comm type
     * @return
     *      actual protobuf comm type
     */
Helper method for converting a given string base comm type
to an actual comm type object.
@param baseType
string representation of a comm type
@return
actual protobuf comm type
Helper method for converting a given string base comm type to an actual comm type object . @param baseType string representation of a comm type @return actual protobuf comm type
private CommType convertBaseTypeToCommType(final String baseType)
    {
        if (baseType.equals(TransportLayer.class.getSimpleName()))
        {
            return CommType.TransportLayer;
        }
        else if (baseType.equals(LinkLayer.class.getSimpleName()))
        {
            return CommType.Linklayer;
        }
        else if (baseType.equals(PhysicalLink.class.getSimpleName()))
        {
            return CommType.PhysicalLink;
        } 
        throw new IllegalArgumentException("Cannot convert " + baseType + " to a valid CommType."); 
    }
private CommType convertBaseTypeToCommType ( final String baseType ) { if ( baseType . equals ( TransportLayer . class . getSimpleName ( ) ) ) { return CommType . TransportLayer ; } else if ( baseType . equals ( LinkLayer . class . getSimpleName ( ) ) ) { return CommType . Linklayer ; } else if ( baseType . equals ( PhysicalLink . class . getSimpleName ( ) ) ) { return CommType . PhysicalLink ; } throw new IllegalArgumentException ( "Cannot convert " + baseType + " to a valid CommType." ) ; }
Helper method for converting a given string base comm type
 to an actual comm type object.
Helper method for converting a given string base comm type to an actual comm type object .