Open tobolar opened 6 years ago
I would also prefer to have a consistent way of defining a positive and negative (or what ever their name is) connector by extending from a base connector definitions. This is, however, handled differently in different packages. The base class shall not have an icon. Icons shall be added by the positive and negative connector definitions.
Example 1: Modelica.Mechanics.Rotational.Interfaces
connector Flange_a "One-dimensional rotational flange of a shaft (filled circle icon)"
SI.Angle phi "Absolute rotation angle of flange";
flow SI.Torque tau "Cut torque in the flange";
end Flange_a;
Example 2: Modelica.Electrical.MultiPhase.Interfaces:
connector Plug "Plug with m pins for an electric component"
parameter Integer m(final min=1) = 3 "Number of phases";
Modelica.Electrical.Analog.Interfaces.Pin pin[m];
end Plug;
connector PositivePlug "Positive plug with m pins"
extends Plug;
end PositivePlug;
Connectors within the MSL differ in the position, size and color of their name primitive. In the figure attached, there are shown some of the connectors from different domains.
There should be defined a convention on how to handle the connectors' names, similar to
Modelica.UsersGuide.Conventions.Icons
. See also discussion on descriptive text in #2471.