Class SyncXmlIdToIdBreakEdgeSegmentHandler

  • All Implemented Interfaces:
    EventListener, EventListener, DirectedGraphModifierListener, GraphModifierListener

    public class SyncXmlIdToIdBreakEdgeSegmentHandler
    extends Object
    implements DirectedGraphModifierListener
    Whenever edge segments are broken, their edge segments' xml ids remain the same and are no longer unique. It is likely the user wants to keep the XML ids unique despite using internal ids in the memory model. For example when the network is persisted to disk afterwards in which case the XML ids can be used to map ids. In this situation the XML ids need to remain unique. If it is known that the XML ids are initially synced with the internal ids, then this listener can be used to sync all broken edge segments' xml id to the internal id of these edge seegments ensuring uniqueness after performing a break edge segment action. Class supports BreakEdgeSegmentEvent.EVENT_TYPE to apply its syncing functionality upon notification
    Author:
    markr
    • Constructor Detail

      • SyncXmlIdToIdBreakEdgeSegmentHandler

        public SyncXmlIdToIdBreakEdgeSegmentHandler()
        Default constructor