There are different methods for recognizing classes in UP methodology:
- noun/verb analysis
- using CRC analysis
- using RUP stereotypes
- other sources
I have read above methods fully detailed in UML 2 and the Unified Process_ Practical Object-Oriented Analysis and Design (2nd Edition)-Addison-Wesley Professional (2005)
book.
Definition: There are some ambiguity considering something as a single class or attribute of the existing class.
Suppose we have goods transportation system
with the following obvious classes:
- driver
- system admin
- goods
- order
- customer
- etc.
In this system the customer should see the live location of the driver, who transports his/her order.
The problem is that we don't know consider the location like longitude and latitude as driver's attributes (and its functionality as operations) or consider it as single class which has relationship with driver class.
Question: Is there any method for finding the solution and clarifying this kind of ambiguity?