jadex.bridge.service.search.IRegistryDataProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-platform-bridge Show documentation
Show all versions of jadex-platform-bridge Show documentation
Jadex bridge is a base package for kernels and platforms, i.e., it is used by both and provides commonly used interfaces and classes for active components and their management.
package jadex.bridge.service.search;
import java.util.Iterator;
import java.util.Set;
import jadex.bridge.ClassInfo;
import jadex.bridge.IComponentIdentifier;
import jadex.bridge.service.IService;
/**
* Interface for the search functionality to get the registry data.
*/
public interface IRegistryDataProvider
{
/**
* Get services per type.
* @param type The interface type. If type is null all services are returned.
* @return First matching service or null.
*/
// read
public Iterator getServices(ClassInfo type);
/**
* Get queries per type.
* @param type The interface type. If type is null all services are returned.
* @return The queries.
*/
// read
public Set> getQueries(ClassInfo type);
/**
* Test if a service is included.
* @param ser The service.
* @return True if is included.
*/
public boolean isIncluded(IComponentIdentifier cid, IService ser);
}