Allow simulator variable NodeManager to return classifications for nodes
|Assignee:||Tuukka Lehtonen||% Done:|
|Category:||Variable||Spent time:||1.50 hour|
|Velocity based estimate||-|
|Release||Simantics 1.13.2||Release relationship||Auto|
It would be useful if simulator variable implementations could also provide their own contribution to how the simulator variable nodes are classified, similarly to Variable.getClassifications.
Currently the standard Variable.getClassifications implementations only know how to return results when the variable is backed by a database Resource representation.The goal here is to change the standard logic to execute in the following order:
- if the variable has a resource and its classification is non-empty, return the resource classification
- if the variable has a simulator variable node, return the simulator variable's classification
- return empty classifications
Added a new method to the simulator variable NodeManager interface to complement the functionality of Variable.getClassifications:
Changed StandardGraphChildVariable to try the simulator variable node as a secondary measure for retrieving variable classifications.