com.kuka.roboticsAPI.ioModel
Class MockedOutput

java.lang.Object
  extended by java.util.Observable
      extended by com.kuka.roboticsAPI.ioModel.AbstractIO
          extended by com.kuka.roboticsAPI.ioModel.Output
              extended by com.kuka.roboticsAPI.ioModel.MockedOutput

public class MockedOutput
extends Output

Class for mocked outputs. The output values are not sent to the controller but handled within the Mocked output 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
MockedOutput(Controller controller, String ioGroupName, String ioName, com.kuka.roboticsAPI.ioModel.IOTypes ioDataType, int bitSize)
          creates a new mocked output.
 
Method Summary
 Number getIOValue()
          The IO is called to update it's value from the ioService.
 void setBooleanValue(boolean value)
          Writes the boolean value on the output.
 void setIOValue(Number value)
          Writes the number value on the output.
 
Methods inherited from class com.kuka.roboticsAPI.ioModel.Output
getReadIORequest, getWriteIORequest, setByteValue, setIntValue, setLongValue, validateValue
 
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

MockedOutput

public MockedOutput(Controller controller,
                    String ioGroupName,
                    String ioName,
                    com.kuka.roboticsAPI.ioModel.IOTypes ioDataType,
                    int bitSize)
creates a new mocked output.

Parameters:
controller - controller that handles the output.
ioGroupName - name of the output group
ioName - name of the output
ioDataType - type of the output
bitSize - bit size of the output
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.

setIOValue

public void setIOValue(Number value)
Writes the number value on the output.

Overrides:
setIOValue in class Output
Parameters:
value - value to write
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.

setBooleanValue

public void setBooleanValue(boolean value)
Writes the boolean value on the output.

Overrides:
setBooleanValue in class Output
Parameters:
value - value to write
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.