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,
                          boolean deepCopy)
        Constructor
        Parameters:
        other - to copy
        deepCopy - when true, create a deep copy, shallow copy otherwise
    • 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
      • deepClone

        public OdPathSets deepClone()
        deep clone on planit component should attempt to also update internal dependencies between deep cloned containers where possible
        Specified by:
        deepClone in interface IdAble
        Specified by:
        deepClone in class PlanitComponent<OdPathSets>
        Returns:
        deep copy of entity
      • 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>
      • collectSettingsAsKeyValueMap

        public Map<String,​String> collectSettingsAsKeyValueMap()
        Provide all the settings of this particular component by name and value, where each value is a string representation of the underlying entity
        Specified by:
        collectSettingsAsKeyValueMap in class PlanitComponent<OdPathSets>
        Returns:
        name-value map of all (user configurable) settings