public class RMIRemoteBattery extends java.rmi.server.UnicastRemoteObject implements RMIBattery
| Modifier | Constructor and Description |
|---|---|
protected |
RMIRemoteBattery() |
| Modifier and Type | Method and Description |
|---|---|
float |
getBatteryCurrent()
Return the current draw from the battery
|
float |
getMotorCurrent()
return the motor current draw
|
float |
getVoltage()
The NXT uses 6 batteries of 1.5 V each.
|
int |
getVoltageMilliVolt()
The NXT uses 6 batteries of 1500 mV each.
|
clone, exportObject, exportObject, exportObject, unexportObjectprotected RMIRemoteBattery()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic int getVoltageMilliVolt()
throws java.rmi.RemoteException
RMIBatterygetVoltageMilliVolt in interface RMIBatteryjava.rmi.RemoteExceptionpublic float getVoltage()
throws java.rmi.RemoteException
RMIBatterygetVoltage in interface RMIBatteryjava.rmi.RemoteExceptionpublic float getBatteryCurrent()
throws java.rmi.RemoteException
RMIBatterygetBatteryCurrent in interface RMIBatteryjava.rmi.RemoteExceptionpublic float getMotorCurrent()
throws java.rmi.RemoteException
RMIBatterygetMotorCurrent in interface RMIBatteryjava.rmi.RemoteException