com.kuka.roboticsAPI.ioModel
Class MockedInput

java.lang.Object
  extended by java.util.Observable
      extended by com.kuka.roboticsAPI.ioModel.AbstractIO
          extended by com.kuka.roboticsAPI.ioModel.Input
              extended by com.kuka.roboticsAPI.ioModel.MockedInput

public class MockedInput
extends Input

Class for mocked inputs. The input values are not sent to the controller but handled within the Mocked input class.

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
MockedInput(Controller controller, String ioGroupName, String ioName, com.kuka.roboticsAPI.ioModel.IOTypes ioDataType, int bitSize, Object initialValue)
          creates a new mocked input.
 
Method Summary
 Number getIOValue()
          The IO is called to update it's value from the ioService.
 void setValue(Object value)
          sets the mocked value to the specified value.
 
Methods inherited from class com.kuka.roboticsAPI.ioModel.Input
getReadIORequest
 
Methods inherited from class com.kuka.roboticsAPI.ioModel.AbstractIO
getBitSize, getBooleanIOValue, getByteIOValue, getController, getDataType, getIntIOValue, getIOGroupName, getIOName, getLongIOValue, isBoolean, isByte, isInteger, isLong
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockedInput

public MockedInput(Controller controller,
                   String ioGroupName,
                   String ioName,
                   com.kuka.roboticsAPI.ioModel.IOTypes ioDataType,
                   int bitSize,
                   Object initialValue)
creates a new mocked input.

Parameters:
controller - controller that handles the input
ioGroupName - group name of the input
ioName - name of the input
ioDataType - type of the input
bitSize - bit size of the input
initialValue - the initial value of the input
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.
Method Detail

getIOValue

public Number getIOValue()
The IO is called to update it's value from the ioService.

Overrides:
getIOValue in class AbstractIO
Returns:
The current value of the IO.
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.

setValue

public void setValue(Object value)
sets the mocked value to the specified value.

Parameters:
value - the value to set
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.


Copyright © 2019. All rights reserved.