Class LocationFinder


  • public class LocationFinder
    extends java.lang.Object
    Helper class to find the grid coordinates of a neuron.
    Since:
    3.6
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  LocationFinder.Location
      Container holding a (row, column) pair.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.Long,​LocationFinder.Location> locations
      Identifier to location mapping.
    • Constructor Summary

      Constructors 
      Constructor Description
      LocationFinder​(NeuronSquareMesh2D map)
      Builds a finder to retrieve the locations of neurons that belong to the given map.
    • Field Detail

      • locations

        private final java.util.Map<java.lang.Long,​LocationFinder.Location> locations
        Identifier to location mapping.
    • Constructor Detail

      • LocationFinder

        public LocationFinder​(NeuronSquareMesh2D map)
        Builds a finder to retrieve the locations of neurons that belong to the given map.
        Parameters:
        map - Map.
        Throws:
        MathIllegalStateException - if the network contains non-unique identifiers. This indicates an inconsistent state due to a bug in the construction code of the underlying network.