Domain Modeling

24 10 2009

Information taken from: http://www.devdaily.com/java/java_oo/node25.shtml

————————————————————————————-

  1. Build the classes.
  2. Build the generalization relationships.
  3. Build association between the classes.

————————————————————————————-

Class
A template for creating objects.

In a class there are attributes and behaviours that an object will have.

Object
Is a specific instance of a class.

Attributes
Data variable with object scope.
Value of an object’s attribute is its state.

Example:
Book attributes – title, author, publisher, ISBN
Value of the attributes are states.

Attributes should not be accessible to entities outside of the object.

Behaviours
Written in the methods or functions. It can operate on the object’s attributes.
Methods define the objects responsibilities.

Generalization
One class is a refinement of another class (parent child classes).

Association
Static relationship between 2 classes.
Shows dependencies between classes but not between actions.
Involves one to one, one to many, multiplicities.

Aggregation
Is an association whereby one class is made up of other classes.
Classified as “HAS-A” and “PART-OF” relationships.


Actions

Information

Leave a comment