Open sgrellet opened 1 year ago
First off, polymorphism is possible in GML UML, just a bit tricky when it comes to serialization (it's XML that doesn't support polymorphism).
I see 2 different approaches here, first the polymorphic interface approach. Create a new WQ_SampleHost that realizes both Sample and Host interfaces.
Second approach would be creating a specific WQ_Host (derived from Host), with an association to ObservingCapabilities. Then you can link the SpatialSample via the ObservingCapabilities.
This is a bit difficult to visualize due to the nature of the OMS model. Thus, first a simple view on this approach:
Here the more complex view, showing all the intermediate classes and interfaces.
Thanks @KathiSchleidt : I like the second one, let's discuss this in the next WQ IE Webconf
extension is mandatory because the ObservingCapability --> Host association is not bidirectionnal . Specialization to happen under OMS SWG -> @KathiSchleidt
Then @sgrellet to update the object Diagrams for WQ IE
How to link
Use Case : Linking both ""stations"" to help domain colleagues acquire and process Water Quality Observations regardless of whether that ""station"" is a Host/SpatialSample from an OMS point of view
Figure6 from OMS is not helping here (see below).
In ontologies we could try polymorphism but in pure UML seems we are stuck. Did we miss something ?