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, unexportObject
protected RMIRemoteBattery() throws java.rmi.RemoteException
java.rmi.RemoteException
public int getVoltageMilliVolt() throws java.rmi.RemoteException
RMIBattery
getVoltageMilliVolt
in interface RMIBattery
java.rmi.RemoteException
public float getVoltage() throws java.rmi.RemoteException
RMIBattery
getVoltage
in interface RMIBattery
java.rmi.RemoteException
public float getBatteryCurrent() throws java.rmi.RemoteException
RMIBattery
getBatteryCurrent
in interface RMIBattery
java.rmi.RemoteException
public float getMotorCurrent() throws java.rmi.RemoteException
RMIBattery
getMotorCurrent
in interface RMIBattery
java.rmi.RemoteException