Wednesday, May 29, 2013

Analysis Patterns


Pattern Definition - A pattern is an idea that has been useful in one practical context and will probably be useful in others.

A pattern has four essential parts: a statement of the context where the pattern is useful, the problem that the pattern addresses, the forces that play in forming a solution, and the solution that resolves those forces.


Modeling Principle

  • Conceptual models are linked to interfaces (types) not implementation (classes)
  • Patterns are starting point, not a destination
  • Models are not right or wrong, they are more or less useful.
  • Design a model so that the most frequent modifications of the model causes changes to the least number of types.
  • Whenever defining features for a type that has a supertype consider whether placing the features on the supertype makes sense.
  • Explicitly divide a model into operational and knowledge levels.
  • The operational level has those concepts that change on a day-to-day basis. Their configuration is constrained by a knowledge level that changes much less frequently.
  • If a type has many, many similar associations, make all of these associations objects of a new type. Create a knowledge level type to differentiate between them.

Accountability

  • Party should be used in many situations where person or organization is used
  • The hierarchic association provides the most flexibility. Constraints due to levels have to be added as rules to the sub-types.
  • Each relationship between organizations is defined by an organization structure type. It is better than explicit associations if there are many relationships.

No comments:

Post a Comment