Sunday, October 6, 2019

Component Based Software Engineering Assignment Example | Topics and Well Written Essays - 750 words

Component Based Software Engineering - Assignment Example This is because these applications are already deployed originally for an environment or naturally embed assumptions based applications. In addition, the documentation procedure is nil, in these types of assumptions therefore if the component is reclaimed again then it is impossible to carry out test to check whether the assumptions are still valid or not. The implanted environmental assumptions are not invalid if they are reused in a different environment. However, this is possible only if the components are utilized in an operational system (Sommerville 1989). Component Composition The process regarding the Component Composition includes the integration of components with each other and particularly if written â€Å"glue code† in order to generate a system or another component. There are different ways to compose components. The methods include sequential composition, hierarchical composition and additive composition (Sommerville 1989). Sequential Composition Suppose a scena rio in which you are composing two components for instance A and B. Now in order to generate a new component such as Sequential components you generate this by combining the 2 existing components. In other words the sequential component is formed by calling the existing components in sequence (Sommerville 1989). This composition can be addressed as a composition of the â€Å"provides interfaces†.... Therefore, these compositions are used along with the components that include program elements or components that provide services. Hierarchical Composition The hierarchical composition occurs if the one component is called directly on the services offered by another component. These services are actually needed by the calling components. Thus, the â€Å"provide interface† that are offered by the called components must need a compatible â€Å"required interface† of the calling component. Here the component A calls directly the component. If the calling procedure is matched by their provided interfaces than no need of extra code is required for these components (Sommerville 1989). On the other hand, if the â€Å"required interface† between the two components such as A and B occurs than some conversion code is needed to overcome the situation. Moreover, the services do not need any â€Å"required interface† therefore, this type of composition is not utilized during the implementation as a web services. Additive Composition The additive composition happens when two or more components are added together in order to generate a new component that combines with each other functionally. The combination of the parallel interfaces includes the â€Å"provide interface† and the â€Å"required interface†. These interfaces are present in components A and B. However, these components are called separately with the help of their external interface of the composed component. In addition, the components A and B neither depend on each other nor they call each other. (Sommerville 1989) This kind of composition is actually utilized along with the other components that are program units or service components. In fact, all

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.