Create BasePortMapper class that maps integer indices to port identifiers without any associated data array; make PortMapper a child of BasePortMapper.