D
D
Dmitry Krapivin2019-01-29 18:01:07
Database design
Dmitry Krapivin, 2019-01-29 18:01:07

What type to specify for a value whose type changes depending on the selected characteristic (uml)?

I am building a class diagram. What type to specify for a value whose type (the type of the value field changes from boolean to min int max int, etc.) changes depending on the selected characteristic (uml)?
There was an impression that probably it is necessary to deduce types in one class. But I still don’t know how this is implemented.

Product characteristics

  • Specifications: Specifications
  • meaning....


Example:
Characteristics: Ambient temperature
value: -14 to 6

Characteristics: Certificate presence
Value: Yes

Characteristics: Room humidity
value: 86%

Characteristics: Pressure
value: 2

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question