Package lejos.remote.ev3
Class RMIRemoteBattery
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- lejos.remote.ev3.RMIRemoteBattery
-
- All Implemented Interfaces:
java.io.Serializable,java.rmi.Remote,RMIBattery
public class RMIRemoteBattery extends java.rmi.server.UnicastRemoteObject implements RMIBattery
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRMIRemoteBattery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetBatteryCurrent()Return the current draw from the batteryfloatgetMotorCurrent()return the motor current drawfloatgetVoltage()The NXT uses 6 batteries of 1.5 V each.intgetVoltageMilliVolt()The NXT uses 6 batteries of 1500 mV each.-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
-
-
-
-
Method Detail
-
getVoltageMilliVolt
public int getVoltageMilliVolt() throws java.rmi.RemoteExceptionDescription copied from interface:RMIBatteryThe NXT uses 6 batteries of 1500 mV each.- Specified by:
getVoltageMilliVoltin interfaceRMIBattery- Returns:
- Battery voltage in mV. ~9000 = full.
- Throws:
java.rmi.RemoteException
-
getVoltage
public float getVoltage() throws java.rmi.RemoteExceptionDescription copied from interface:RMIBatteryThe NXT uses 6 batteries of 1.5 V each.- Specified by:
getVoltagein interfaceRMIBattery- Returns:
- Battery voltage in Volt. ~9V = full.
- Throws:
java.rmi.RemoteException
-
getBatteryCurrent
public float getBatteryCurrent() throws java.rmi.RemoteExceptionDescription copied from interface:RMIBatteryReturn the current draw from the battery- Specified by:
getBatteryCurrentin interfaceRMIBattery- Returns:
- current in Amps
- Throws:
java.rmi.RemoteException
-
getMotorCurrent
public float getMotorCurrent() throws java.rmi.RemoteExceptionDescription copied from interface:RMIBatteryreturn the motor current draw- Specified by:
getMotorCurrentin interfaceRMIBattery- Returns:
- current in Amps
- Throws:
java.rmi.RemoteException
-
-