EBK SOFTWARE ENGINEERING
EBK SOFTWARE ENGINEERING
10th Edition
ISBN: 8220101455970
Author: SOMMERVILLE
Publisher: PEARSON
Expert Solution & Answer
Book Icon
Chapter 16, Problem 16.1E

Explanation of Solution

‘provides’ interface:

It is the interface that defines the services that are provided by the component and also defines the methods that can be called by a user of the component.

‘requires’ interface:

It is the interface that defines the services that must be provided by other components in a system if a component operates correctly. If these are unavailable, then the component does not work.

Uses of ‘provides’ and ‘requires’:

  • These interfaces are used in the component because the use of component is completely independent of its implementation.
  • When the interfaces are not used in the component interactions, then the coupling between the components increases and it becomes difficult to interchange one component for an equivalent component with the same interface.
  • A component should be independent so that it becomes easy to compose and deploy without specific components. But if the components are not independent then it requires ‘provides’ services externally and ‘requires’ interface explicitly.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
Why is it important that all component interactions are defined through "requires and provides interfaces?
Q.No.3 Explain why your interface design, if simply implemented as is, may not result in the perfect software design. Consider how the aims of interface design and software design are frequently at odds.
How can interfaces be used to define contracts and ensure consistency in code implementations?
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Management Of Information Security
Computer Science
ISBN:9781337405713
Author:WHITMAN, Michael.
Publisher:Cengage Learning,