Location is a subclass of a GroupOfLocations

Submitted by Loïc Blaive on Thursday, 22 January, 2015 - 00:36
Issue ID
183
Component
UML Location Referencing
Category
Bug report
Priority
Normal
Assigned
Status
Fixed
Source
CEN
Description

Comment raised by UK during he TC Approval of CEN/TS 16157-2.
Comment:
Location is a subclass of GroupOfLocations, meaning that Location is a kind of GroupOfLocations. These unconventional semantics may cause perplexity. Even through a Group can represent a single Location, it does not seem right that every single Location is considered to always be a Group. If one is thinking about a single location, say a specific roadside reference point, would one ever naturally consider it to be a group of locations that happens to have 1 instance? While it would be possible to consider it that way, it is surely unnatural and contrived.
Instead there is a widely used conventional design pattern in software engineering for dealing with composite objects where substitutability is desired – the "Composite" design pattern. This would allow a composite GroupOfLocations to be a kind of Location (which seems semantically more valid).

Proposal:
Refactor using a conventional "composite" design pattern, so that a composite GroupOfLocations is a kind of Location.

Found Version
{"changeLogs":[{"date":1527782007843,"componentOLD":"- Select a value -","component":"UML Location Referencing","categoryOLD":"- Select a value -","category":"Bug report","priorityOLD":"- None -","priority":"Normal","assignedOLD":"","assigned":"iancornwell (42)","statusOLD":"- None -","status":"Fixed"},{"date":1537268372246}]}

Posted by iancornwell on November 14, 2033 Permalink

Not exactly a duplicate, but resolved by the resolution of 141.

Posted by abhiram on September 14, 2028 Permalink

Saya Gold Avenue is one of the perfect manifestations of it! Saya Gold Avenue offers you all the medians to fulfil your lifestyle hopes and raise your standard of living.