Class PortMapper


  • public class PortMapper
    extends java.lang.Object
    The PortMapper class generates a wiring diagram from the robot map. class.
    • Constructor Summary

      Constructors 
      Constructor Description
      PortMapper()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void mapPorts​(java.lang.Class<?> c)
      Generate a wiring diagram from the given class.
      • Methods inherited from class java.lang.Object

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

      • PortMapper

        public PortMapper()
    • Method Detail

      • mapPorts

        public void mapPorts​(java.lang.Class<?> c)
                      throws DuplicatePortException,
                             InvalidPortException,
                             java.io.IOException
        Generate a wiring diagram from the given class.
        Parameters:
        c - The RobotMap class containing the entries.
        Throws:
        DuplicatePortException - if there are duplicate ports
        InvalidPortException - if there are invalid ports
        java.io.IOException - if there was an IOException from reading or writing an image