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
      • recreateConnectoidIds

        public void recreateConnectoidIds()
        recreate all internal ids fo all connectoids both od and transfer connectoids
        Specified by:
        recreateConnectoidIds in interface ZoningModifier
      • recreateZoneIds

        public void recreateZoneIds()
        recreate all internal ids fo all zones both od and transfer zones
        Specified by:
        recreateZoneIds in interface ZoningModifier
      • recreateTransferZoneGroupIds

        public void recreateTransferZoneGroupIds()
        recreate all internal ids fo all zones both od and transfer zones
        Specified by:
        recreateTransferZoneGroupIds in interface ZoningModifier
      • 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
        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.
        Specified by:
        removeDanglingTransferZoneGroups in interface ZoningModifier