com.kuka.nav.fleet
Class ConflictFilters

java.lang.Object
  extended by com.kuka.nav.fleet.ConflictFilters

public final class ConflictFilters
extends Object

Helper class for ConflictFilter, providing a set of predefined filters.


Method Summary
static ConflictFilter all()
          Returns a filter accepting all conflicts.
static ConflictFilter allActive()
          Returns a filter accepting all active conflicts.
static ConflictFilter allActiveForMovingRobot(int robotId)
          Returns a filter accepting all active conflicts where the moving robot has the specified id, i.e. the returned filter accepts a conflict if and only if the conflict is accepted by allActive() and allForMovingRobot(int).
static ConflictFilter allActiveForWaitingRobot(int robotId)
          Returns a filter accepting all active conflicts where the waiting robot has the specified id, i.e. the returned filter accepts a conflict if and only if the conflict is accepted by allActive() and allForWaitingRobot(int).
static ConflictFilter allForMovingRobot(int robotId)
          Returns a filter accepting all conflicts where the moving robot has the specified id.
static ConflictFilter allForWaitingRobot(int robotId)
          Returns a filter accepting all conflicts where the waiting robot has the specified id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

all

public static ConflictFilter all()
Returns a filter accepting all conflicts.

Returns:
a filter accepting all conflicts

allActive

public static ConflictFilter allActive()
Returns a filter accepting all active conflicts. A conflict is active if its state is not ConflictState.RESOLVED and its delay Conflict.getDelay() is greater than 0.

Returns:
a filter accepting all active conflicts

allForWaitingRobot

public static ConflictFilter allForWaitingRobot(int robotId)
Returns a filter accepting all conflicts where the waiting robot has the specified id.

Parameters:
robotId - the id of the waiting robot
Returns:
a filter accepting all conflicts where the waiting robot has the specified id

allActiveForWaitingRobot

public static ConflictFilter allActiveForWaitingRobot(int robotId)
Returns a filter accepting all active conflicts where the waiting robot has the specified id, i.e. the returned filter accepts a conflict if and only if the conflict is accepted by allActive() and allForWaitingRobot(int).

Parameters:
robotId - the id of the waiting robot
Returns:
a filter accepting all active conflicts where the waiting robot has the specified id

allForMovingRobot

public static ConflictFilter allForMovingRobot(int robotId)
Returns a filter accepting all conflicts where the moving robot has the specified id.

Parameters:
robotId - the id of the moving robot
Returns:
a filter accepting all conflicts where the moving robot has the specified id

allActiveForMovingRobot

public static ConflictFilter allActiveForMovingRobot(int robotId)
Returns a filter accepting all active conflicts where the moving robot has the specified id, i.e. the returned filter accepts a conflict if and only if the conflict is accepted by allActive() and allForMovingRobot(int).

Parameters:
robotId - the id of the moving robot
Returns:
a filter accepting all active conflicts where the moving robot has the specified id


Copyright © 2019. All rights reserved.