-->

Common Modeling Techniques

Modeling the Semantics of a Class
Determine the responsibilities of each class: 
  • A responsibility refers to a contract of a type or class. It is shown as a note connected to the class, or in an extra compartment in the class icon 
  • Depict the semantics of the class as a whole by the use of structured text within a note attached to the class 
  • Show the body of each method using structured text or pseudo code or programming language itself within attached to the operation by a dependency relationship 
  • Develop a state machine for the class. A state machine refers to a behavior which specifies the sequences of states that an object undergoes in its lifetime in response to events, along with its responses to those events 
  • Determine the responsibilities of each class: 
  • Depict internal structure of the class 
  • Indicate a collaboration that contains the class. 
  • Collaboration is an association of roles and other elements, which work together to implement a behavior/functionality 
  • Collaboration consists of a structural part as well as a dynamic part. Collaborations can be used to specify all aspects of the semantics of a class 
  • Depict the pre and post conditions of each operation as well as the invariants of the class by using a formal language


Related Posts

Post a Comment

Subscribe Our Newsletter