assert queue.size () <= maxSize;
assert wgqueue_obj.size () <= maxSize;
    void setChannelSize (int size)    {        assert size > 0;        maxSize = size;        if (type == Integer.TYPE) {            wgqueue_int.setBufferSize(size);        } else if (type == Float.TYPE) {            wgqueue_float.setBufferSize(size);        } else if (type == Double.TYPE) {            wgqueue_double.setBufferSize(size);        } else if (type == Boolean.TYPE) {            wgqueue_boolean.setBufferSize(size);        } else if (type == Short.TYPE) {            wgqueue_short.setBufferSize(size);        } else if (type == Character.TYPE) {            wgqueue_char.setBufferSize(size);        } else if (type == Bit.TYPE) {            wgqueue_bit.setBufferSize(size);        } else {            assert queue.size () <= maxSize;        }    }