Class RemotePort

  • All Implemented Interfaces:
    Port

    public class RemotePort
    extends java.lang.Object
    implements Port
    • Constructor Summary

      Constructors 
      Constructor Description
      RemotePort​(java.lang.String name, int typ, int portNum, RMIEV3 rmiEV3)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      return the string name used to reference this physical port
      <T extends IOPort>
      T
      open​(java.lang.Class<T> portclass)
      Obtain access to a class that can be used to talk to the port hardware
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        protected java.lang.String name
      • typ

        protected int typ
      • portNum

        protected int portNum
      • rmiEV3

        protected RMIEV3 rmiEV3
    • Constructor Detail

      • RemotePort

        public RemotePort​(java.lang.String name,
                          int typ,
                          int portNum,
                          RMIEV3 rmiEV3)
    • Method Detail

      • getName

        public java.lang.String getName()
        return the string name used to reference this physical port
        Specified by:
        getName in interface Port
        Returns:
        a string representation of the port
      • open

        public <T extends IOPort> T open​(java.lang.Class<T> portclass)
        Obtain access to a class that can be used to talk to the port hardware
        Specified by:
        open in interface Port
        Parameters:
        portclass - the required port interface
        Returns:
        a class that implements the requested interface