org.bidib.wizard.api.LookupService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-api Show documentation
Show all versions of bidibwizard-api Show documentation
jBiDiB BiDiB Wizard API POM
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);
}