●●●●● ●●●● 属性表示:文本和关联线 ●●● ●●● ●●●● 对数据类型对象使用属性文本,对引用对象使用关联线 Register Sale applying the guideline to show attributes as id: Int time: date time attribute text versus as currentsale association lines Register has THREE attributes Store 1. id 2. currentSale address: Address 3. location location phone: PhoneNumber
属性表示:文本和关联线 Register id: Int ... Sale time: DateTime ... 1 applying the guideline to show attributes as attribute text versus as association lines Store address: Address phone: PhoneNumber ... 1 Register has THREE attributes: 1. id 2. currentSale 3. location currentSale location 对数据类型对象使用属性文本,对引用对象使用关联线
●●●●● ●●●● 属性表示:混合文本和关联线 ●●● ●●● ●●●● using the attribute Register text notation to indicate Register has o currentSale: Sale a reference to one Sale instance OBSERVE: this style Register Sale visually emphasizes the connection between these classes o currentSale using the association notation to indicate Register has a reference to one Sale instance thorough and Register unambiguous, but some currentsale: Sale people dislike the possible redundancy currentsale
属性表示:混合文本和关联线 Register ... ... Sale ... ... 1 Register currentSale : Sale ... Sale ... ... using the attribute text notation to indicate Register has a reference to one Sale instance using the association notation to indicate Register has a reference to one Sale instance OBSERVE: this style visually emphasizes the connection between these classes currentSale Register currentSale : Sale ... Sale ... ... 1 thorough and unambiguous, but some people dislike the possible redundancy currentSale
●●●●● ●●●● 属性表示:导航箭头 ●●● ●●● ●●●● thorough and Register Sale unambiguous, but some current sale: Sale people dislike the possible redundancy currentsale Company Person
属性表示:导航箭头 Register currentSale : Sale ... Sale ... ... 1 thorough and unambiguous, but some people dislike the possible redundancy currentSale Company Person 1 *
●●●●● ●●●● 属性表示:多重性 ●●● ●●● ●●●● zero or more many one or more 1.40 one to 40 5 exactly 5 3,5,8 exactly 3, 5, or 8
属性表示:多重性 zero or more; "many" one or more one to 40 exactly 5 T T T T * 1..* 1..40 5 T 3, 5, 8 exactly 3, 5, or 8
●●●●● ●●●● 属性表示:角色名 ●●● ●●● ●●●● Employer Company Person Employee
属性表示:角色名 Company Person Employer Employee