From 5f8eb10d7bcf74202997fe0bd7487213da7b22ba Mon Sep 17 00:00:00 2001 From: Leonard Ehrenfried Date: Tue, 7 Jan 2025 13:59:46 +0100 Subject: [PATCH] Rename 'diagrams' to 'design' --- doc/dev/design/TimetableSnapshotManager.svg | 4 ++++ doc/dev/diagrams/TimetableSnapshotManager.svg | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 doc/dev/design/TimetableSnapshotManager.svg delete mode 100644 doc/dev/diagrams/TimetableSnapshotManager.svg diff --git a/doc/dev/design/TimetableSnapshotManager.svg b/doc/dev/design/TimetableSnapshotManager.svg new file mode 100644 index 00000000000..156e00d0a82 --- /dev/null +++ b/doc/dev/design/TimetableSnapshotManager.svg @@ -0,0 +1,4 @@ + + + +
TimetableRepository
TimetableRepository
+ transitLayer
+ transitLayer
+ realtimeTransitLayer
+ realtimeTransitLayer
+ timetableIndex
+ timetableIndex
+ siteRepository
+ siteRepository
+ patterns
+ patterns
+ trips
+ trips
+ ...
+ ...
SiriTTSnapshotSource
SiriTTSnapshotSource
+ snapshotManager
+ snapshotManager
+ transitService
+ transitService
TimetableSnapshotSource
TimetableSnapshotSource
+ snapshotManager
+ snapshotManager
+ transitService
+ transitService
SnapshotManager
SnapshotManager
+ timetableSnapshot
+ timetableSnapshot
+ params
+ params
+ transitLayerUpdater
+ transitLayerUpdater
TimetableSnapshot
TimetableSnapshot
+ addedTripPatterns
+ addedTripPatterns
+ modifiedTripPatterns
+ modifiedTripPatterns
+ ...
+ ...
TransitLayerUpdater
TransitLayerUpdater
+ timetableRepository
+ timetableRepository
TimetableSnapshotSourceParams
TimetableSnapshotSourceParams
+ maxSnapshotFrequency
+ maxSnapshotFrequency
+ purgeExpiredData
+ purgeExpiredData
TransitLayer
TransitLayer
+ tripPatternsRunningOnDate
+ tripPatternsRunningOnDate
+ ...
+ ...
<<RequestScope>>
TransitService
<<RequestScope>>...
+ timetableSnapshot
+ timetableSnapshot
+ timetableRepository
+ timetableRepository
DaggerContext
DaggerContext
+ timetableSnapshotManager
+ timetableSnapshotManager
+ transitLayerUpdater
+ transitLayerUpdater
+ ...
+ ...
1
1
1
1
Cyclic dependency!

TransitLayer needs a TimetableRepository to be constructed but doesn't keep a reference to it.

Will be resolved later.
Cyclic dependency!...
TransitService is mostly request scoped 

However, the realtime updates receive a special long-lived TransitService that has a reference to the snapshot buffer that contains unpublished timetables.
TransitService is mostly...
GraphWriter
Thread
GraphWriter...
Text is not SVG - cannot display
\ No newline at end of file diff --git a/doc/dev/diagrams/TimetableSnapshotManager.svg b/doc/dev/diagrams/TimetableSnapshotManager.svg deleted file mode 100644 index 1aa7e89b7a1..00000000000 --- a/doc/dev/diagrams/TimetableSnapshotManager.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - -
TimetableRepository
TimetableRepository
+ transitLayer
+ transitLayer
+ realtimeTransitLayer
+ realtimeTransitLayer
+ timetableIndex
+ timetableIndex
+ siteRepository
+ siteRepository
+ patterns
+ patterns
+ trips
+ trips
+ ...
+ ...
SiriSnapshotSource
SiriSnapshotSource
+ snapshotManager
+ snapshotManager
+ transitService
+ transitService
GtfsSnapshotSource
GtfsSnapshotSource
+ snapshotManager
+ snapshotManager
+ transitService
+ transitService
SnapshotManager
SnapshotManager
+ timetableSnapshot
+ timetableSnapshot
+ params
+ params
+ transitLayerUpdater
+ transitLayerUpdater
TimetableSnapshot
TimetableSnapshot
+ addedTripPatterns
+ addedTripPatterns
+ modifiedTripPatterns
+ modifiedTripPatterns
+ ...
+ ...
TransitLayerUpdater
TransitLayerUpdater
+ timetableRepository
+ timetableRepository
TimetableSnapshotSourceParams
TimetableSnapshotSourceParams
+ maxSnapshotFrequency
+ maxSnapshotFrequency
+ purgeExpiredData
+ purgeExpiredData
TransitLayer
TransitLayer
+ tripPatternsRunningOnDate
+ tripPatternsRunningOnDate
+ ...
+ ...
TransitService
TransitService
+ timetableSnapshot
+ timetableSnapshot
+ timetableRepository
+ timetableRepository
DaggerContext
DaggerContext
+ timetableSnapshotManager
+ timetableSnapshotManager
+ transitLayerUpdater
+ transitLayerUpdater
+ ...
+ ...
1
1
1
1
Cyclic dependency!

TransitLayer needs a TimetableRepository to be constructed but doesn't keep a reference to it.

Will be resolved later.
Cyclic dependency!...
Text is not SVG - cannot display
\ No newline at end of file