Operation Contracts in Applying UML and Patterns

RevolutionaryFrancium8209 avatar
RevolutionaryFrancium8209
·
·
Download

Start Quiz

Study Flashcards

18 Questions

In a Point of Sale (POS) system, what step follows the cashier entering the item identifier?

System records sale line item

What is the purpose of the 'makeNewSale' operation in the POS domain model?

To initialize a new sale instance

Which entity in the POS domain model is associated with the 'enterItem' operation?

Sale

What triggers the system to present the total with taxes calculated in a POS system?

Customer indicates they are done

Which operation in the POS domain model involves 'currentDate(), currentTime(), and nextSaleNum()'?

makeNewSale()

What is the main purpose of the 'Logscompleted' entity in the POS domain model?

To track completed sales

What aspect of the system does an operation contract help identify?

System state changes when an operation happens

What do preconditions in an operation contract describe?

State of objects in the Domain Model before executing the operation

Which section of an operation contract is considered the most important?

Postconditions

What is NOT included in the postconditions section of an operation contract?

Actions to be performed during the operation

What does a domain model help generate when creating an operation contract?

Operation names and parameters

When creating an operation contract, what should be described regarding the system?

State before and after the action, both pre and post conditions

What happens as a postcondition of the 'enterItem' operation?

sli is associated with a ProductDescription based on itemId match

What is an outcome of the 'makePayment' operation postconditions?

's.isComplete' becomes true

What does the 'endSale' operation modify?

's.isComplete'

In the 'enterItem' operation, what is initialized to the input quantity?

'sli.quantity'

What does the 'makePayment' operation associate 'p' with?

'Store'

In the postconditions of 'enterItem', how many associations are created with 'ProductSpecification1'?

None

Test your knowledge on operation contracts in the context of applying UML and patterns based on the concepts discussed in Chapter 11 of Craig Larman's book. Learn about how operation contracts identify system state changes, the significance of system sequence diagrams, and the role of domain models in generating operation contracts.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

CDI de chantier ou d’opération
36 questions
Hfst 3: Kontrakte
59 questions

Hfst 3: Kontrakte

GreatestTiger avatar
GreatestTiger
Operations Contracts Schema
5 questions
Use Quizgecko on...
Browser
Browser