Class 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
    • Field Summary

      • Fields inherited from class java.rmi.server.RemoteObject

        ref
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RMIRemoteBattery()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.rmi.server.UnicastRemoteObject

        clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
      • Methods inherited from class java.rmi.server.RemoteServer

        getClientHost, getLog, setLog
      • Methods inherited from class java.rmi.server.RemoteObject

        equals, getRef, hashCode, toString, toStub
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RMIRemoteBattery

        protected RMIRemoteBattery()
                            throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getVoltageMilliVolt

        public int getVoltageMilliVolt()
                                throws java.rmi.RemoteException
        Description copied from interface: RMIBattery
        The NXT uses 6 batteries of 1500 mV each.
        Specified by:
        getVoltageMilliVolt in interface RMIBattery
        Returns:
        Battery voltage in mV. ~9000 = full.
        Throws:
        java.rmi.RemoteException
      • getVoltage

        public float getVoltage()
                         throws java.rmi.RemoteException
        Description copied from interface: RMIBattery
        The NXT uses 6 batteries of 1.5 V each.
        Specified by:
        getVoltage in interface RMIBattery
        Returns:
        Battery voltage in Volt. ~9V = full.
        Throws:
        java.rmi.RemoteException
      • getBatteryCurrent

        public float getBatteryCurrent()
                                throws java.rmi.RemoteException
        Description copied from interface: RMIBattery
        Return the current draw from the battery
        Specified by:
        getBatteryCurrent in interface RMIBattery
        Returns:
        current in Amps
        Throws:
        java.rmi.RemoteException
      • getMotorCurrent

        public float getMotorCurrent()
                              throws java.rmi.RemoteException
        Description copied from interface: RMIBattery
        return the motor current draw
        Specified by:
        getMotorCurrent in interface RMIBattery
        Returns:
        current in Amps
        Throws:
        java.rmi.RemoteException