살군의 보조기억 장치

Another memory device…

UML terminology definitions

leave a comment »

Association: I think, this pics would present the best way for association. As you can see, association illustrates a class has relation with other classes. Source of the arrow includes destination’s object as its attributes.

Aggregation: From Martin Fowler’s UML Distilled 3rd ed., ” Aggregation is the part-of relationship.” Also, “Aggregation is strictly meaningless; as a result, I recommend that you ignore lt in your own diagrams. If you see lt in other people’s diagrams, you’11 need to dig deeper to find out what they mean by it. Different authors and teams use it for very different purposes.” Surely, it may have meaning in some others’ diagrams though, it implies “you need to find further implicit thing in the aggregation symbol.”

Composition: “The general rule is that, although a class may be a component of many other classes, any instance must be a component of only one owner. The class diagram may show multiple classes of potential owners, but any instance has only a single object as its owner.” [UML Distilled 3rd ed. Martin Fowler] Also, “Another assumption is that if you delete the polygon, it should automatically ensure that any owned Points(objects) also are deleted.”[UML Distilled 3rd ed. Martin Fowler]

Generalization: Simply, super-class and sub-class realtion.

Dependency: “A dependency exists between two elements if changes to the definition of one element (the supplier) may cause changes to the other (the client). ” There is two important meanings in the directional arrow of the dependency symbol. When you change the client, the supplier doesn’t get any affect from the modification. Another is there is no direct relation between the client and Data Gateway. So, even if you change something in Data Gateway, there is no direct impact to the client. (Modifying Data Gateway may give some effect to the supplier which would cause the client changing.)

Realization: This is another simple concept to me. Imple mentation of an interface. That’s it.

 

 

Some paragraphs and images are borrowed from Martin Fowler’s UML Distilled 3rd ed. in this article. If there is any problem, please let me know.

Advertisements

Written by gomiski

2011/10/14 at 7:34 am

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: