Class OdPathSets

    • Field Detail

      • odPathMatrices

        protected final TreeMap<Long,​OdPathMatrix> odPathMatrices
        map holding all registered od path matrices by their unique id
    • Constructor Detail

      • OdPathSets

        public OdPathSets​(IdGroupingToken groupId)
        Constructor
        Parameters:
        groupId - contiguous id generation within this group for instances of this class
      • OdPathSets

        public OdPathSets​(OdPathSets other)
        Constructor
        Parameters:
        other - to copy
    • Method Detail

      • getNumberOfOdPathSets

        public int getNumberOfOdPathSets()
        Collect the number of registered od path sets
        Returns:
        number of od path sets
      • createAndRegisterOdPathMatrix

        public OdPathMatrix createAndRegisterOdPathMatrix​(Zoning zoning)
        Create an empty od path matrix and register it on this od path sets
        Parameters:
        zoning - used to derive the size of the aquare zone based matrix
        Returns:
        newly created od path matrix
      • registerOdPathMatrix

        public void registerOdPathMatrix​(OdPathMatrix odPathMatrix)
        register the passed in path matrix (not copied)
        Parameters:
        odPathMatrix - to register
      • hasRegisteredOdMatrices

        public Boolean hasRegisteredOdMatrices()
        verify if any od path matrices have been registered or not
        Returns:
        true if any are registered, false otherwise
      • getFirstOdPathMatrix

        public OdPathMatrix getFirstOdPathMatrix()
        Collect the first od path matrix available
        Returns:
        the first od path matrix available, if not available null is returned
      • reset

        public void reset()
        remove all registered path sets. Note that this does not reset the path ids since this component does not own or represents the managed paths container
        Specified by:
        reset in class PlanitComponent<OdPathSets>