Calculating the fan-in of selected classes

You can use the Fan-In pluglet to calculate the fan-in metric for a class.

  1. Import your UML model into your Model Explorer view.
  2. Import the Fun-In pluglet sample from the Samples Gallery.
  3. Run the pluglet for the first time by selecting the pluglet sample FanInMetric.java in the Model Explorer.
  4. Click Run > Internal Tools > Run As > Pluglet
  5. Select your class in either Model Explorer view or Model Diagram view. Click Run > Internal Tools > FanInMetric.
The pluglet runs, and the fan-in results are displayed in the Console window.

For a brief demonstration of how the Fan-In pluglet works, see the Fan-In pluglet sample from the Samples Gallery.

Parent topic: Implementing pluglets

Related concepts
Pluglets

Related tasks
Validating selections

Related reference
Pluglets API

Related information
Tutorial and samples for pluglets

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.