Chapter#4 ObjectModeling
Chapter#4 ObjectModeling
Lecture#4
Object Structuring Criteria
• Boundary objects
– User interaction object – Device I/O object
– Proxy object
• Entity objects
– Long living objects that store information
– Determined during static modeling
• Control objects
• Application Logic Objects
Object Structuring Criteria
• Boundary objects
– Interface to and communicate with external
• environment
– Each software boundary object interfaces to an external (real-world) object
• User interaction object • Device I/O object
• Proxy object
• For each boundary object there is a corresponding external object
– Also depicted using stereotype
Classification of external classes using stereotypes
User interaction object
• Proxy object
– Interfaces to an external system
– Hides details of how to communicate with external system
• E.g., Robot Proxy
• Interfaces to external (real-world) robot
Object Structuring Criteria
• Entity objects
– Long lasting objects that store information
• Same object typically accessed by many use cases
• Information persists over access by several use cases
– E.g., Account, Customer
– Entity classes and relationships shown on static model
– Entity classes often mapped to relational database during design
Example of entity object
Object Structuring Criteria
• Control objects
– Provides overall coordination for execution of a group
of objects
– Makes overall decisions
– Decides when, and in what order, other objects participate in interaction
sequence
• Entity objects
• Boundary objects
• Control objects
– Coordinator object
– State dependent control object – Timer object
Coordinator object
• Coordinator object
• Provides sequencing for group of objects
• Is not state dependent
State dependent control object
• Timer object
• Activated periodically
• Object Structuring Criteria
• Application Logic Objects – Business Logic Object
• Defines business specific application logic (rules) for processing a client request
• Usually accesses more than one entity object
– Algorithm Object
– Service object
Example of algorithm object
Example of Service object
Case Study: Banking System