Class MockPowerDistributionPanel
java.lang.Object
xbot.common.controls.sensors.XPowerDistributionPanel
xbot.common.controls.sensors.mock_adapters.MockPowerDistributionPanel
Mock implementation of XPowerDistributionPanel for testing purposes.
Allows setting mock voltage and mock current values for each channel.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class xbot.common.controls.sensors.XPowerDistributionPanel
XPowerDistributionPanel.XPowerDistributionPanelFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetCurrent(int channel) doubledoubledoubledoubledoubledoublevoidsetCurrent(int channel, double current) voidsetVoltage(double voltage)
-
Constructor Details
-
MockPowerDistributionPanel
@AssistedInject public MockPowerDistributionPanel()
-
-
Method Details
-
setCurrent
public void setCurrent(int channel, double current) -
setVoltage
public void setVoltage(double voltage) -
getCurrent
public double getCurrent(int channel) - Specified by:
getCurrentin classXPowerDistributionPanel
-
getVoltage
public double getVoltage()- Specified by:
getVoltagein classXPowerDistributionPanel
-
getTemperature
public double getTemperature()- Specified by:
getTemperaturein classXPowerDistributionPanel
-
getTotalCurrent
public double getTotalCurrent()- Specified by:
getTotalCurrentin classXPowerDistributionPanel
-
getTotalPower
public double getTotalPower()- Specified by:
getTotalPowerin classXPowerDistributionPanel
-
getTotalEnergy
public double getTotalEnergy()- Specified by:
getTotalEnergyin classXPowerDistributionPanel
-
getModule
public double getModule()- Specified by:
getModulein classXPowerDistributionPanel
-