A tool for finding a path to a feature in another class

2 messages Options
Embed this post
Permalink
peter7723

A tool for finding a path to a feature in another class

Reply Threaded More More options
Print post
Permalink
Frequently, I want to sort out access to a feature in a class and almost as frequently, I find that I could have done better and should refactor.

It would be nice to be able to identify the client class and the target feature in a supplier class and ask
  1. Are there already any paths between these two classes?
  2. If not, what is the tree of paths from the client class, and
  3. what is the tree of paths to the supplier class?

Manipulating the Bon diagram shows a partial answer to 2 and 3, and a command in the Diagram tool to remove the unreachable classes would be useful.

However, in the diagram, the supplier links are labeled with the client given names of the object, whereas I am looking for a feature supplied by the object.

Peter Horan


Emmanuel Stapf

RE: A tool for finding a path to a feature in another class

Reply Threaded More More options
Print post
Permalink
> It would be nice to be able to identify the client class and the target
> feature in a supplier class and ask
>   1. Are there already any paths between these two classes?
>   2. If not, what is the tree of paths from the client class, and
>   3. what is the tree of paths to the supplier class?

You can use the metric tool and/or dependency tool to find this kind of
information. The dependency tool is actually quite good at giving a quick overview
of relations. Simply drop a class and you will see either what the class is using
or who is using the class. If you expand the nodes, you can even go down to the
line where the relation is. The metric tool will give you more control over the
scope of the dependency.

Regards,
Manu

------------------------------------------------------------------------  
Eiffel Software
805-685-1006
http://www.eiffel.com       
Customer support: http://support.eiffel.com       
User group: http://groups.eiffel.com/join       
------------------------------------------------------------------------