com.kuka.resource.pool
Class CapabilityFilter
java.lang.Object
com.kuka.resource.pool.CapabilityFilter
- All Implemented Interfaces:
- ResourceFilter
public class CapabilityFilter
- extends Object
- implements ResourceFilter
A ResourceFilter that accepts only resources that have all the specified capabilities.
|
Constructor Summary |
CapabilityFilter(Class<?>... capabilities)
Creates a new filter that accepts only resources that have all the specified capabilities. |
CapabilityFilter(Collection<Class<?>> capabilities)
Creates a new filter that accepts only resources that have all the specified capabilities. |
|
Method Summary |
boolean |
accept(com.kuka.resource.IResource resource)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CapabilityFilter
public CapabilityFilter(Class<?>... capabilities)
- Creates a new filter that accepts only resources that have all the specified capabilities.
- Parameters:
capabilities - A list of capabilities. Each one is required to pass the filter.
CapabilityFilter
public CapabilityFilter(Collection<Class<?>> capabilities)
- Creates a new filter that accepts only resources that have all the specified capabilities.
- Parameters:
capabilities - A list of capabilities. Each one is required to pass the filter.
accept
public boolean accept(com.kuka.resource.IResource resource)
- Specified by:
accept in interface ResourceFilter
- Parameters:
resource - A resource to be filtered.
- Returns:
- True, if the resource is to passed through the filter.
Copyright © 2019. All rights reserved.