<commit_before>/* 
 * Java libusb wrapper
 * Copyright (c) 2005-2006 <NAME> <spandi at users.sourceforge.net>
 *
 * http://libusbjava.sourceforge.net
 * This library is covered by the LGPL, read LGPL.txt for details.
 */
package ch.ntb.usb.demo;


public abstract class AbstractDeviceInfo {

	private short idVendor;

	private short idProduct;

	private String filename = null;

	private String busName = null;

	private int timeout;

	private int configuration;

	private int interface_;

	private int altinterface;

	private int outEPBulk = -1;

	private int inEPBulk = -1;

	private int outEPInt = -1;

	private int inEPInt = -1;

	private int sleepTimeout;

	private int maxDataSize;

	private TransferMode mode;

	private boolean compareData = true;

	private String manufacturer = null;

	private String product = null;

	private String serialVersion = null;

	public static enum TransferMode {
		Bulk, Interrupt
	}

	public AbstractDeviceInfo() {
		initValues();
	}

	abstract public void initValues();

	public int getAltinterface() {
		return altinterface;
	}

	public int getConfiguration() {
		return configuration;
	}

	public short getIdProduct() {
		return idProduct;
	}

	public short getIdVendor() {
		return idVendor;
	}

	public int getInEPBulk() {<commit_msg>Added support for interface class, subclass and protocol. just only one for now.<commit_after>/* 
 * Java libusb wrapper
 * Copyright (c) 2005-2006 <NAME> <spandi at users.sourceforge.net>
 *
 * http://libusbjava.sourceforge.net
 * This library is covered by the LGPL, read LGPL.txt for details.
 */
package ch.ntb.usb.demo;


public abstract class AbstractDeviceInfo {

	private short idVendor;

	private short idProduct;

	private String filename = null;

	private String busName = null;

	private int timeout;

	private int configuration;

	private int interface_;

	private int altinterface;

	private int outEPBulk = -1;

	private int inEPBulk = -1;

	private int outEPInt = -1;

	private int inEPInt = -1;

	private int sleepTimeout;

	private int maxDataSize;

	private TransferMode mode;

	private boolean compareData = true;

	private String manufacturer = null;

	private String product = null;

	private String serialVersion = null;

        private byte interfaceClass;

        private byte interfaceSubClass;

        private byte interfaceProtocol;

    /**
     * @return the interfaceClass
     */
    public byte getInterfaceClass() {
        return interfaceClass;
    }

    /**
     * @param interfaceClass the interfaceClass to set
     */
    public void setInterfaceClass(byte interfaceClass) {
        this.interfaceClass = interfaceClass;
    }

    /**
     * @return the interfaceSubClass
     */
    public byte getInterfaceSubClass() {
        return interfaceSubClass;
    }

    /**
     * @param interfaceSubClass the interfaceSubClass to set
     */
    public void setInterfaceSubClass(byte interfaceSubClass) {
        this.interfaceSubClass = interfaceSubClass;
    }

    /**
     * @return the interfaceProtocol
     */
    public byte getInterfaceProtocol() {
        return interfaceProtocol;
    }

    /**
     * @param interfaceProtocol the interfaceProtocol to set
     */
    public void setInterfaceProtocol(byte interfaceProtocol) {
        this.interfaceProtocol = interfaceProtocol;
    }

	public static enum TransferMode {
		Bulk, Interrupt
	}

	public AbstractDeviceInfo() {
		initValues();
	}

	abstract public void initValues();

	public int getAltinterface() {
		return altinterface;
	}

	public int getConfiguration() {
		return configuration;
	}

	public short getIdProduct() {
		return idProduct;
	}

	public short getIdVendor() {
		return idVendor;
	}

	public int getInEPBulk() {
{'fraction_non_alphanumeric': 0.07799892415277031, 'fraction_numerical': 0.006455083378160301, 'mean_word_length': 3.299421965317919, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6539778', 'n_tokens_mistral': 1128, 'n_tokens_neox': 1025, 'n_words': 345}