Class RMIRemoteMotorPort

  • All Implemented Interfaces:
    java.io.Serializable, java.rmi.Remote, RMIMotorPort

    public class RMIRemoteMotorPort
    extends java.rmi.server.UnicastRemoteObject
    implements RMIMotorPort
    See Also:
    Serialized Form
    • Field Summary

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

        ref
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RMIRemoteMotorPort​(java.lang.String portName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void controlMotor​(int power, int mode)
      Low-level method to control a motor.
      int getTachoCount()
      returns tachometer count
      void resetTachoCount()
      resets the tachometer count to 0;
      void setPWMMode​(int mode)  
      • 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

      • RMIRemoteMotorPort

        protected RMIRemoteMotorPort​(java.lang.String portName)
                              throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getTachoCount

        public int getTachoCount()
                          throws java.rmi.RemoteException
        Description copied from interface: RMIMotorPort
        returns tachometer count
        Specified by:
        getTachoCount in interface RMIMotorPort
        Throws:
        java.rmi.RemoteException
      • resetTachoCount

        public void resetTachoCount()
                             throws java.rmi.RemoteException
        Description copied from interface: RMIMotorPort
        resets the tachometer count to 0;
        Specified by:
        resetTachoCount in interface RMIMotorPort
        Throws:
        java.rmi.RemoteException
      • close

        public void close()
                   throws java.rmi.RemoteException
        Specified by:
        close in interface RMIMotorPort
        Throws:
        java.rmi.RemoteException
      • setPWMMode

        public void setPWMMode​(int mode)
                        throws java.rmi.RemoteException
        Specified by:
        setPWMMode in interface RMIMotorPort
        Throws:
        java.rmi.RemoteException