LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
F._Schubert

Graphically display 'Associations' in the Class Hierarchy

Status: New

If a class is contained in the private data cluster of another class, this is the LVOOP equivalent to an Association (as OOP concept). I'd like to optionally display this relationship of classes in the Class Hierarchy window. It should also work for nested structures (class in array, cluster, DVR).

As used from normal BD programming, different kinds of wire should be used to identify details of the relationship:

  • green color if it's a by-ref relationship (DVR, SEQ);
  • double wire if it's contained in an array;
  • an directional arrow symbol would be necessary to indicate the navigable end.

The following would be nice to have, but partially difficult to implement:
In addition there should be a way to annotated the associations to indicate when the intended use is restricted to a child class, such as class that contains objects of the type of the same class. Here the association would point to an ancestor of this class. Either we should be able to put a comment on the 'wire' to document this intention. Ideally we could be able to wire classes with recursive associations (which are not possible in LVOOP, hence this should also not have any effect on the code by only be documentation), and link it to the implemented association wire.

1 Comment
mflegel
Member

Building an OO implementation generally requires designing the implementation in a UML modeling environment (Visio, Artisan, etc.), as well as maintaining an  as-built design of the system. The bigger the system, the more important the need for the design material. This feature would assist the developer in validating the implementation against the design to identify deviations so that they can be understood and corrected in either the design or the implementation.