scientific-tool-set / scitos

SciToS - the Scientific Tool Set
Other
9 stars 1 forks source link

HermeneutiX: Relations are sometimes not correctly displayed #32

Closed CarstenWickner closed 4 years ago

CarstenWickner commented 4 years ago

In some circumstances, one of the horizontal lines (and the associated vertical line) on a relation might be missing.

As it turns out, there was some unnecessary complexity in the code around comparing model elements with each other.

Fix: introducing a randomly generated UUID for each model element makes those checks much simpler (and presumably quicker). Note: the chance for collisions between those randomly generated UUIDs is about one in a billion (according to Wikipedia). I.e. there will be a whole lot of other errors before this becomes a concern. 😉