Closed RaphaelGebhart closed 2 months ago
the extends ThermofluidStream.Utilities.DisplayComponentNameIndividually;
doesnt work unfortunatly... so i either have do it without extends, i.e. parameter Boolean displayComponentName = dropOfCommons.displayComponentNames
for every component... or i might move dropOfCommons to ThermofluidStream.Utilities.DisplayComponentNameIndividually
....
I'd personally prefer to add the parameter displayComponentName
to each component or base class (ThermofluidStream.Interfaces.SISOFlow
,...) if possible...
Another thing that we have to take care of is that there are still some components that don't have an outer connection to dropOfCommons
(for example ThermofluidStream.Boundaries.TerminalSource
) and hence they don't get the parameter.
OK then i add it to every component, but please check if parameter Boolean displayComponentName = dropOfCommons.displayComponentNames "=true, if u wish to display the component name" annotation(Dialog(group="Layout"),Evaluate=true, HideResult=true);
is fine, because i have to copy paste that to 100 components then :D
`
Another thing that we have to take care of is that there are still some components that don't have an outer connection to
dropOfCommons
(for exampleThermofluidStream.Boundaries.TerminalSource
) and hence they don't get the parameter.
yes i already did that
OK then i add it to every component, but please check if
parameter Boolean displayComponentName = dropOfCommons.displayComponentNames "=true, if u wish to display the component name" annotation(Dialog(group="Layout"),Evaluate=true, HideResult=true);
is fine, because i have to copy paste that to 100 components then :D `
since there are quite some components that dont use ThermofluidStream.Interfaces.SISOFlow
....
Regression tests passed. Still to be done (besides reviewing the changes):
At the moment displayInstanceName(s) = false
and displayParameters = false
for all Tests/Examples. If you like you could change if beneficial.
With the last commit we should (re)move ThermofluidStream.TestIcons
and ThermofluidStream.TestIconParameters
Regression test passed.
Added displayComponentNames to dropOfCommons, added Utilities.DisplayComponentNameIndividually which all classes shall extend, added 'name' text to 'most' components (Bidirectional missing, and some components where we would have to move the connectors) closes #158