com.kuka.roboticsAPI.conditionModel
Class AbstractCondition

java.lang.Object
  extended by com.kuka.roboticsAPI.conditionModel.AbstractCondition
All Implemented Interfaces:
ICondition
Direct Known Subclasses:
AbstractComplexCondition, BooleanIOCondition, FrameDistanceCondition, IORangeCondition, MotionCondition, RobotCondition

public abstract class AbstractCondition
extends Object
implements ICondition

Abstract base class for conditions.

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

Constructor Summary
AbstractCondition()
           
 
Method Summary
 ICondition and(ICondition condition, ICondition... others)
          Links two or more conditions using an AND relation.
abstract  Controller getController()
          Return the controller referred to by this condition.
 ICondition invert()
          Negates a condition.
 ICondition or(ICondition condition, ICondition... others)
          Links two or more conditions using a disjunction.
 ICondition xor(ICondition condition)
          Links two conditions using a XOR connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCondition

public AbstractCondition()
Method Detail

and

public ICondition and(ICondition condition,
                      ICondition... others)
Description copied from interface: ICondition
Links two or more conditions using an AND relation. All given conditions must be true for the AndCondition to be true.

Specified by:
and in interface ICondition
Parameters:
condition - the condition that will be linked with the calling condition.
others - further optional conditions.
Returns:
the AND relation of the given conditions

or

public ICondition or(ICondition condition,
                     ICondition... others)
Description copied from interface: ICondition
Links two or more conditions using a disjunction. One ore more of the given conditions must be true for the OrCondition to be true.

Specified by:
or in interface ICondition
Parameters:
condition - the condition that will be linked with the calling condition.
others - further optional conditions.
Returns:
the disjunction of the given conditions

invert

public ICondition invert()
Description copied from interface: ICondition
Negates a condition. The given condition must be false for the NotCondition to be true.

Specified by:
invert in interface ICondition
Returns:
the negated condition

xor

public ICondition xor(ICondition condition)
Description copied from interface: ICondition
Links two conditions using a XOR connection. Only one of the two given conditions can be true for the XorCondition to be true.

Specified by:
xor in interface ICondition
Parameters:
condition - the condition that will be linked with the calling condition.
Returns:
the disjunction of the given conditions

getController

public abstract Controller getController()
Return the controller referred to by this condition.

Returns:
The controller referred to by this condition. Can be null.


Copyright © 2019. All rights reserved.