In my business we have a "Data Store" where data is stored (e.g. database, flat file, etc) and a "Data Provider" who delivers the data (e.g. human, sensor, etc).
To model this in UML is no problem for me. BUT, sometimes "instances" are both, a data store and a data provider (e.g. an IoT device). How can I model this?
"An instance can be a data store or a data provider or both".
A data store and data provider have different properties, an instance that is both (a data store and a data provider) should have both properties.
I looked for multiple inheritance or a union concept in UML but did not find the right concept. Can anyone give me a hint how to model this? :-)
EDIT: My primary goal is to develop a conceptual model (not for implementation).