Class RemoteNXTPort

  • All Implemented Interfaces:
    Port

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

      Constructors 
      Constructor Description
      RemoteNXTPort​(java.lang.String name, int typ, int portNum, NXTCommand nxtCommand)  
    • 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
    • Constructor Detail

      • RemoteNXTPort

        public RemoteNXTPort​(java.lang.String name,
                             int typ,
                             int portNum,
                             NXTCommand nxtCommand)
    • 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