extracting entity classes and entity objects
The designer can extract the entity object "Abbott, 1983" according to the noun and noun phrase appearing in the use case text description.
Another method is to determine whether there is a corresponding entity object in the system based on a pre-defined list of concepts, which can be supplemented by the first method.
For general software systems, it is generally possible to look for entity objects in the system from the following concepts:
- A physical or real object.
- The role of Man
- Organization
- Time
- Place
- Description of specification or transaction
- Rules and policies
after finding the entity class, it is possible to group them according to the commonality of the objects to abstract the entity classes in the analysis model, but it is difficult to decide whether an entity object should be classified as the same as other entity objects in the analysis phase, or it should be classified as a unique object instance into a single class, in which case, A viable way to determine this is if several objects have the same properties. Methods and relationships, the value of knowledge implementation is different, then they should be subordinate to the same object, otherwise it should be abstracted into different classes, the general experience is to not be omitted, for the more difficult to identify the object, you can temporarily classify them as one class, retained in the analysis model
Extract Properties:
In general, in object-oriented analysis, as far as possible to use descriptive language to explain the properties of the analysis, instead of using programmatic language to precisely define the properties and attributes of the type, looking for the analysis of the properties of the class, to focus on those data types are relatively simple properties, if the discovery of complex properties, Either separate the attribute as a separate analysis class, or the attribute can be expressed in relation to the analysis class
Extract Relationship:
- The relationship between the analysis classes indicates the relationship between one or more classes, looking for relationships between the analysis classes: in the text description of the use case, verbs and verb phrases that represent two noun relationships can help us determine the relationship between the analysis classes. For example, ".... There is a "" is .... The other verbs are more or less revealing the relationship between classes or objects.
- In general, the inter-class relationship is as follows:
- One-to-one relationship: Indicates that two classes are related to each other
- A one-to-many relationship
- Many-to-many relationships
- Inductive relationship: The concept can be organized into a hierarchical structure, at the top of the hierarchy is a general concept, the lower layer is the concept of gradual specialization, inductive relationship and the design process of the inheritance relationship should be
Extracting attribute extraction relationships from entity class objects and entity classes