Tuesday, February 11, 2020
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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.