Step 4. Counting the Product Adopters
The main purpose of the model is to study how the new product is adopted, so we want to know how many people have already purchased our product at any given moment. Therefore we will define two statistics variables to count product adopters and potential adopters.
- Open the Main class diagram by double-clicking the Main item in the Project view.
- Select the embedded object people.
- Go to the Statistics page of the Properties view.
- Define a statistics variable to calculate number of adopters. Click the Add Statistics button. This will open the property section below.
- Type adopters in the Name property field.
- Leave the selected Type: Count.
- Specify the Condition:
- Create another statistics variable that will count potential adopters in the same way. Name it potentialAdopters and specify the following Condition: