Class SyncDeparturesXmlIdToIdHandler
- java.lang.Object
-
- org.goplanit.event.handler.SyncXmlIdToIdHandler
-
- org.goplanit.service.routed.modifier.event.handler.SyncDeparturesXmlIdToIdHandler
-
- All Implemented Interfaces:
EventListener
,DemandsModifierListener
,EventListener
,DirectedGraphModifierListener
,GraphModifierListener
,RoutedServicesModifierListener
public class SyncDeparturesXmlIdToIdHandler extends SyncXmlIdToIdHandler implements RoutedServicesModifierListener
Whenever routed services' departures' managed Ids with an external id are changed in terms of their internal id, their XML ids remain the same and might no longer be unique. When this is not desirable and the user wants to keep the XML ids unique, for example when the network is persisted to disk afterwards, in which case the XML ids must be unique, then this handler can be used to sync the XML ids to the newly assigned unique internal ids. Class supportsModifiedTripScheduleDepartureIdsEvent
.EVENT_TYPE to apply its syncing functionality upon notification- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description SyncDeparturesXmlIdToIdHandler()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onRoutedServicesModifierEvent(RoutedServicesModificationEvent event)
Notify method for zoning modification events-
Methods inherited from class org.goplanit.event.handler.SyncXmlIdToIdHandler
getKnownSupportedEventTypes, onDemandsModificationEvent, onDirectedGraphModificationEvent, onEvent, onGraphModificationEvent, syncXmlIdToInternalId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.goplanit.utils.event.EventListener
getKnownSupportedEventTypes, hasKnownSupportedEventTypes
-
-
-
-
Method Detail
-
onRoutedServicesModifierEvent
public void onRoutedServicesModifierEvent(RoutedServicesModificationEvent event)
Notify method for zoning modification events- Specified by:
onRoutedServicesModifierEvent
in interfaceRoutedServicesModifierListener
- Overrides:
onRoutedServicesModifierEvent
in classSyncXmlIdToIdHandler
- Parameters:
event
- representing the zoning modification event at hand
-
-