com.kuka.nav.fleet.filter
Class InstanceFilter
java.lang.Object
com.kuka.nav.fleet.filter.InstanceFilter
- All Implemented Interfaces:
- DispatcherFilter
public class InstanceFilter
- extends Object
- implements DispatcherFilter
Basic IResourceFilter implementation accepting only resources - actually only
the one resource - with a specified resource ID.
|
Constructor Summary |
InstanceFilter(int id)
Instantiates a new instance filter. |
|
Method Summary |
boolean |
accept(com.kuka.nav.robot.MobileRobot resource,
GraphMotion motion)
Checks if a mobile robot fulfils the filter requirements. |
int |
getInstanceId()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstanceFilter
public InstanceFilter(int id)
- Instantiates a new instance filter.
- Parameters:
id - the instance ID to accept
accept
public boolean accept(com.kuka.nav.robot.MobileRobot resource,
GraphMotion motion)
- Description copied from interface:
DispatcherFilter
- Checks if a mobile robot fulfils the filter requirements.
- Specified by:
accept in interface DispatcherFilter
- Parameters:
resource - the robot to checkmotion - the corresponding fleet motion the robot has to execute
- Returns:
true if the given mobile robot is accepted by the
filter, false otherwise
getInstanceId
public int getInstanceId()
- Returns:
- the id of the only robot which is accepted by this instance filter.
Copyright © 2019. All rights reserved.