com.kuka.roboticsAPI.requestModel
Class GetBooleanDeviceObserverRequest

java.lang.Object
  extended by com.kuka.roboticsAPI.requestModel.AbstractRequest
      extended by com.kuka.roboticsAPI.requestModel.AbstractDeviceRequest
          extended by com.kuka.roboticsAPI.requestModel.GetBooleanDeviceObserverRequest
All Implemented Interfaces:
IDeviceRequest, IRequest

public class GetBooleanDeviceObserverRequest
extends AbstractDeviceRequest

Generic device request for boolean results.


Field Summary
static String ARE_ALL_AXES_MASTERED
          The DFE name for a request whether all axes of a device are mastered.
static String ARE_DRIVES_RESERVERED
          The DFE name for a request whether all drives of a device are reserved.
 
Constructor Summary
GetBooleanDeviceObserverRequest(Robot robot, String observer, String dfeName)
           
 
Method Summary
 boolean getBooleanResult()
           
 String getDFEName()
           
 String getObserverName()
           
 Object getResult()
          Gets the result of the request.
 void setResult(boolean result)
           
 
Methods inherited from class com.kuka.roboticsAPI.requestModel.AbstractDeviceRequest
getDevice
 
Methods inherited from class com.kuka.roboticsAPI.requestModel.AbstractRequest
hasResult, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.kuka.roboticsAPI.requestModel.IRequest
hasResult
 

Field Detail

ARE_DRIVES_RESERVERED

public static final String ARE_DRIVES_RESERVERED
The DFE name for a request whether all drives of a device are reserved.

See Also:
Constant Field Values

ARE_ALL_AXES_MASTERED

public static final String ARE_ALL_AXES_MASTERED
The DFE name for a request whether all axes of a device are mastered.

See Also:
Constant Field Values
Constructor Detail

GetBooleanDeviceObserverRequest

public GetBooleanDeviceObserverRequest(Robot robot,
                                       String observer,
                                       String dfeName)
Parameters:
robot - The Robot to be queried
observer - The observer name that should be queried
dfeName - The port to be queried. Must not be null
Method Detail

getResult

public Object getResult()
Description copied from interface: IRequest
Gets the result of the request.

Returns:
The result of the request.

getBooleanResult

public boolean getBooleanResult()
Returns:
The result casted to boolean

getDFEName

public String getDFEName()
Returns:
The name of the DFE

getObserverName

public String getObserverName()
Returns:
The name of the observer

setResult

public void setResult(boolean result)
Parameters:
result - The result of the request


Copyright © 2019. All rights reserved.