Approaches For Developing Dynamic Systems
Approaches For Developing Dynamic Systems
3: new
4: addBuyOrder(newBuyOrder)
Identify classes
Determine their responsibilities - state and
behavior
Validate responsibilities using relevant scenarios
Draw an interaction diagram for each scenario to
* 1..1 checkIn ()
checkOut ()1..1
1..1
1..*
LibraryCard LoanTransaction LendableTitle
0..* title
memberNumber : String checkOutDate : Date
expiryDate : Date dueDate : Date
1..1 0..*
renew( ) isOverdue( ) 1..1
1..1 0..*
1..1
LibraryMember
name rented1..1
address <<Abstract>> 1..*
Lendable
setName( )
setAddress( ) item#
okToBorrow( )
checkIn( )
checkOut( )
BookCopy VideoCopy
call# video#
Use scenarios
CheckOut scenario is as follows:
perhaps)
Who should inform the LibraryMember object about
1: checkOut(1001, 2345)
2: okToBorrow()
3: checkOut()
4: loanPeriod()