All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bidib.wizard.api.LookupService Maven / Gradle / Ivy

There is a newer version: 2.0.29
Show newest version
package org.bidib.wizard.api;

import java.util.Optional;
import java.util.Set;

import org.bidib.jbidibc.core.schema.bidib.products.ProductType;
import org.bidib.wizard.api.model.common.CommPort;
import org.bidib.wizard.api.model.common.NetBidibServiceInfo;

public interface LookupService {

    /**
     * Get the product data for the provided vendor and product id.
     * 
     * @param vendorId
     *            the vendor id
     * @param productId
     *            the product id
     * @return the product
     */
    Optional getProduct(int vendorId, int productId);

    /**
     * Get the product data for the provided unique id.
     * 
     * @param uniqueId
     *            the unique id
     * @return the product
     */
    Optional getProduct(long uniqueId);

    /**
     * @return the detectedComPorts
     */
    Set getDetectedComPorts();

    /**
     * @param detectedComPorts
     *            the detectedComPorts to set
     */
    void setDetectedComPorts(Set detectedComPorts);

    /**
     * @param detectedComPort
     *            the detectedComPort to add
     */
    void addDetectedComPort(CommPort detectedComPort);

    /**
     * @param comPortIdentifier
     *            the comPortIdentifier to remove from the detected com ports
     */
    void removeDetectedComPort(String comPortIdentifier);

    /**
     * @return the detected netBiDiB services
     */
    Set getDetectedNetBidibServices();

    /**
     * @param netBidibServiceInfo the service info to add
     */
    void addDetectedNetBidibService(final NetBidibServiceInfo netBidibServiceInfo);

    /**
     * @param netBidibServiceInfo the service info to remove
     */
    void removeDetectedNetBidibService(final NetBidibServiceInfo netBidibServiceInfo);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy