com.kuka.roboticsAPI.conditionModel
Class BooleanIOCondition

java.lang.Object
  extended by com.kuka.roboticsAPI.conditionModel.AbstractCondition
      extended by com.kuka.roboticsAPI.conditionModel.BooleanIOCondition
All Implemented Interfaces:
ICondition

public class BooleanIOCondition
extends AbstractCondition

Boolean IO Condition checks if a single-bit in- or output has a specified value.
The Condition fires if a single-bit in- or output has the specified value (true or false).


Constructor Summary
BooleanIOCondition(AbstractIO inOut, boolean booleanIOValue)
          Creates a new Instance of an BooleanIOCondition.
 
Method Summary
 boolean getBooleanIOValue()
          Gets the specified boolean value of this condition.
 Controller getController()
          Return the controller referred to by this condition.
 AbstractIO getInOut()
          Gets the in- or output of this condition.
 String getInOutName()
          Gets the name in- or output of this condition.
 String toString()
           
 
Methods inherited from class com.kuka.roboticsAPI.conditionModel.AbstractCondition
and, invert, or, xor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanIOCondition

public BooleanIOCondition(AbstractIO inOut,
                          boolean booleanIOValue)
Creates a new Instance of an BooleanIOCondition. The Condition fires if the single-bit input or output has the specified boolean value.

Parameters:
inOut - The name of the input or output.
booleanIOValue - The expected value (true or false) to fire the condition.
Throws:
IllegalArgumentException - if the parameter is null or if the IO is not boolean
Method Detail

getInOut

public AbstractIO getInOut()
Gets the in- or output of this condition.

Returns:
The in- or output of this condition.

getBooleanIOValue

public boolean getBooleanIOValue()
Gets the specified boolean value of this condition.

Returns:
The specified boolean value.

getInOutName

public String getInOutName()
Gets the name in- or output of this condition.

Returns:
The name of the in- or output of this condition.

toString

public String toString()
Overrides:
toString in class Object

getController

public Controller getController()
Description copied from class: AbstractCondition
Return the controller referred to by this condition.

Specified by:
getController in class AbstractCondition
Returns:
The controller referred to by this condition. Can be null.


Copyright © 2019. All rights reserved.