DATEX-II-EU / DatexII

Main repository for issues and bugs for the DATEXII standard
0 stars 0 forks source link

[Bug]: Issues with the "PredefinedLocationsPublication" class model #513

Open LBlaive opened 4 months ago

LBlaive commented 4 months ago

What happened?

Comment reported during the Formal Vote ballot in 2018 by FR (no FR102). Two compositions have been added in this diagram between on one hand "PredefinedItinerary" and "PredefinedLocation", on another hand between "PredefinedLocationGroup" and "PredefinedLocation". This pattern existed in version 2 and was removed following an evolution request (no 85 of the old issue tracklist of 2012-04-23) when the initial works on Version 3 started. This model has several drawbacks:

Version

3

Code of Conduct

iancornwell1 commented 3 months ago

The old 85 became 135 in the next issue tracker, and still can be found here as #135. However the information preserved does not seem a complete description of the issue and its resolution.

iancornwell1 commented 3 months ago
LBlaive commented 2 months ago

This issue needs to be addressed carefully. The additions were introduced when the standard was prepared for Formal Vote in 2018 following a comment received at the Enquiry but one can wonder if all the consequences were then analysed.

Indeed, since the “LocationReference” class model also allows defining a “Location” instance by reference and not directly, the association between the “PredefinedItinerary” and “PredefinedLocation” is redundant (idem between “PredefinedLocationGroup” and “PredefinedLocation”).

Note: The risk of “reference to nothing” mentioned in this comment does not seem real.

iancornwell1 commented 2 months ago

Unless I have forgotten a requirement, I agree with this last comment. Unless anybody can remind us why we retained those 2 associations, I agree it would be an improvement to remove them.

LBlaive commented 2 months ago

Suggested change:

PredefinedLocationPublication_mod

iancornwell1 commented 1 month ago

I considered whether this was an attempt to have publications of predefined locations and publications of predefined itineraries and groups without duplicating the data. But I was reminded that we can do that just by the Location in a LocationGroup or Itinerary being a LocationByReference, so the extra relations above seem redundant.