com.kuka.roboticsAPI.controllerModel.sunrise.state.kmp
Class MobilePlatformBatteryWarningStateConverter

java.lang.Object
  extended by com.kuka.roboticsAPI.controllerModel.sunrise.state.kmp.MobilePlatformBatteryWarningStateConverter

public final class MobilePlatformBatteryWarningStateConverter
extends Object

Mobile platform battery warning state converter.


Method Summary
static long getCriticalThresholdPercentage()
          Gets the currently set Critical Threshold of the Battery charge percentage.
static MobilePlatformBatteryWarningState getWarningState(long stateOfCharge)
           
static long getWarningThresholdPercentage()
          Gets the currently set Warning Threshold of the Battery charge percentage.
static void setCriticalThresholdPercentage(long criticalThreshold)
          Sets the Critical Threshold of the Battery charge percentage.
static void setWarningThresholdPercentage(long warningThreshold)
          Sets the Warning Threshold of the Battery charge percentage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getWarningState

public static MobilePlatformBatteryWarningState getWarningState(long stateOfCharge)
Parameters:
stateOfCharge - Battery percentage.
Returns:
Battery warning state. Battery voltage[%] < 0% or > 100% -> UNDEFINED Battery voltage[%] > Warning Battery Voltage[%] -> NORMAL Warning Battery Voltage[%] >= Battery voltage[%] > Critical Battery Voltage[%] -> WARNING Critical Battery Voltage[%] >= Battery voltage[%] -> CRITICAL

getCriticalThresholdPercentage

public static long getCriticalThresholdPercentage()
Gets the currently set Critical Threshold of the Battery charge percentage.

Returns:
the Critical Threshold

setCriticalThresholdPercentage

public static void setCriticalThresholdPercentage(long criticalThreshold)
Sets the Critical Threshold of the Battery charge percentage.

Parameters:
criticalThreshold - - the threshold to set

getWarningThresholdPercentage

public static long getWarningThresholdPercentage()
Gets the currently set Warning Threshold of the Battery charge percentage.

Returns:
the Warning Threshold

setWarningThresholdPercentage

public static void setWarningThresholdPercentage(long warningThreshold)
Sets the Warning Threshold of the Battery charge percentage.

Parameters:
warningThreshold - - the threshold to set


Copyright © 2019. All rights reserved.