Class ZoningModifierImpl

    • Field Detail

      • zoning

        protected final Zoning zoning
        The zoning instance to apply modifications on
    • Constructor Detail

      • ZoningModifierImpl

        public ZoningModifierImpl​(Zoning zoning)
        constructor
        Parameters:
        zoning - instance to apply modifications on
    • Method Detail

      • fireEvent

        protected void fireEvent​(EventListener eventListener,
                                 Event event)
        Let derived class deal with the handling of the listener, where based on the derived event implementation the listener's concrete class can be determined which in turn allows for calling the right event callback method which is unknown at this base level since this event mechanism does not force a particular notification method signature on its listener interface
        Specified by:
        fireEvent in class EventProducerImpl
        Parameters:
        eventListener - to notify for the event
        event - to process for the listener
      • removeZone

        protected void removeZone​(Zone toRemove)
        remove a zone from its container class (if applicable) without doing anything else
        Parameters:
        toRemove - zone to be removed
      • recreateOdZoneIds

        protected void recreateOdZoneIds​(boolean resetIds)
        recreate part of zone ids (od zones)
        Parameters:
        resetIds - flag indicating whether to reset the ids before creating new ones
      • recreateTransferZoneIds

        protected void recreateTransferZoneIds​(boolean resetIds)
        recreate part of zone ids (transfer zones)
        Parameters:
        resetIds - flag indicating whether to reset the ids before creating new ones
      • recreateConnectoidIds

        public void recreateConnectoidIds()
        recreate all internal ids of all connectoids both od and transfer connectoids

        fire #RecreatedZoningEntitiesManagedIdsEvent upon completion with those connectoids

        Specified by:
        recreateConnectoidIds in interface ZoningModifier
      • recreateZoneIds

        public void recreateZoneIds()
        recreate all internal ids fo all zones both od and transfer zones

        fires #ModifiedZoneIdsEvent after completion

        Specified by:
        recreateZoneIds in interface ZoningModifier
      • recreateTransferZoneGroupIds

        public void recreateTransferZoneGroupIds()
        recreate all internal ids for all zones both od and transfer zones

        fire #RecreatedZoningEntitiesManagedIdsEvent upon completion with those transfer zone groups

        Specified by:
        recreateTransferZoneGroupIds in interface ZoningModifier
      • removeDanglingTransferZones

        public void removeDanglingTransferZones​(boolean recreateZoneIds)
        a Method that scans the transfer zones and removes any transfer zones that are not associated with any directed connectoids, i.e., are not connected to any physical network layer and therefore are considered dangling. If a transfer zone is removed and this zone belongs to a transfer zone group, it is also removed from this group

        fires two #RecreatedZoningEntitiesManagedIdsEvent upon completion for transfer zones

        Specified by:
        removeDanglingTransferZones in interface ZoningModifier
        Parameters:
        recreateZoneIds - when true recreate all zone ids, false do not
      • removeDanglingOdZones

        public void removeDanglingOdZones​(boolean recreateZoneIds)
        a Method that scans the od zones and removes any that are not associated with any connectoids, i.e., are not connected to any physical network layer and therefore are considered dangling.

        fires two #RecreatedZoningEntitiesManagedIdsEvent upon completion for od zones

        Specified by:
        removeDanglingOdZones in interface ZoningModifier
        Parameters:
        recreateZoneIds - when true recreate all zone ids, false do not
      • removeDanglingZones

        public void removeDanglingZones()
        a Method that scans the zones and removes any zones that are not associated with any connectoids, i.e., are not connected to any physical network layer and therefore are considered dangling. If a transfer zone is removed and this zone belongs to a transfer zone group, it is also removed from this group

        fires two #RecreatedZoningEntitiesManagedIdsEvent upon completion one for od and one for transfer zones

        Specified by:
        removeDanglingZones in interface ZoningModifier
      • removeDanglingTransferZoneGroups

        public void removeDanglingTransferZoneGroups()
        a Method that scans the transfer zone groups and removes any groups that are empty, i.e., have no transfer zones and are therefore considered dangling.

        fire #RecreatedZoningEntitiesManagedIdsEvent upon completion with those transfer zone groups

        Specified by:
        removeDanglingTransferZoneGroups in interface ZoningModifier
      • removeUnusedTransferConnectoids

        public void removeUnusedTransferConnectoids​(ServiceNetworkLayers serviceNetworkLayers,
                                                    boolean recreateManagedConnectoidIds)
        Remove all directed connectoids for which no service nodes' physical nodes on any of the given layers match its access nodes, i.e., the directed connectoid has no routed services that visit it, and therefore they are not explicitly, but implicitly dangling and are removed

        fire #RecreatedZoningEntitiesManagedIdsEvent upon completion with remaining connectoids

        Specified by:
        removeUnusedTransferConnectoids in interface ZoningModifier
        Parameters:
        serviceNetworkLayers - to check against
        recreateManagedConnectoidIds - when true recreate connectoid ids, when false do not
      • recreateManagedIdEntities

        public void recreateManagedIdEntities()
        Recreate all managed id entities owned by this zoning

        fires #RecreatedZoningManagedIdsEvent after each managedIds container that is has updated

        Specified by:
        recreateManagedIdEntities in interface ZoningModifier