ComponentOriented Software Technology Oscar Nierstrasz and Laurent Dami

  • Slides: 17
Download presentation
Component-Oriented Software Technology - Oscar Nierstrasz and Laurent Dami Presented by – Harshal Savalia

Component-Oriented Software Technology - Oscar Nierstrasz and Laurent Dami Presented by – Harshal Savalia Akeel Udar 1

Trend towards ‘open systems’ ‘A system that implements sufficient open specifications for interfaces, services,

Trend towards ‘open systems’ ‘A system that implements sufficient open specifications for interfaces, services, and supporting formats to enable properly engineered application software to be ported across a wide range of systems with minimal changes, to interoperate with other applications on local and remote systems, and to interact with users in a style that facilitates user portability. ’ - IEEE POSIX 1003. 0 Committee

Open Systems We can see, then, that open systems must be ‘open’ in at

Open Systems We can see, then, that open systems must be ‘open’ in at least three important ways : n n n 1. Topology Open applications run on configurable networks. 2. Platform The hardware and software platforms are heterogeneous. 3. Evolution Requirements are unstable and constantly change. 3

Open Systems n n Object oriented software development partially satisfies these needs Evolution? 4

Open Systems n n Object oriented software development partially satisfies these needs Evolution? 4

Introducing Components n By viewing open applications as compositions of reusable and configurable components,

Introducing Components n By viewing open applications as compositions of reusable and configurable components, we expect to be able to cope with evolving requirements by unplugging and reconfiguring only the affected parts 5

What are Components? n Component-based development represents the 'industrialization' of software development. When any

What are Components? n Component-based development represents the 'industrialization' of software development. When any manufacturing process evolves to the point where it can be based on pre-built components and subassemblies, product quality, quantity, and speed of delivery soar. This principle applies equally to software systems development, allowing unprecedented quality, speed of development, and highly effective change management. 6

What are Components? - “static abstraction with plugs” n n n A software component

What are Components? - “static abstraction with plugs” n n n A software component is a long-lived entity that can be stored in a software base, independently of the applications in which it has been used. A component puts a more or less opaque boundary around the software it encapsulates. There are well-defined ways to interact and communicate with the component (parameters, ports, messages, etc. ). 7

n Seen from the outside, a component may appear as in figure 1. 2,

n Seen from the outside, a component may appear as in figure 1. 2, a single entity, which may be moved around and copied, and in particular may be instantiated in a particular context, where the plugs (the small black rectangles) will be bound to values or to other components. 8

Where do components come from? n n Components only emerge through an iterative and

Where do components come from? n n Components only emerge through an iterative and evolutionary software lifecycle. Components are only useful as components if they can be easily used in many contexts. We must incorporate the activity of “component engineering” into the software lifecycle. Basically, both software methods and development technology need to undergo some significant changes in order to take advantage of componentoriented development. 9

Objects vs. Components n Issues Present-day object-oriented languages emphasize programming over composition q A

Objects vs. Components n Issues Present-day object-oriented languages emphasize programming over composition q A programming language for open systems development should also support strong typing and concurrency Components need to be recognized as entities in their own right, independently of objects q n 10

Technical Support for Components n Structure of components What is the structure of a

Technical Support for Components n Structure of components What is the structure of a software component? n n Components typically are static entities; moreover, they always consist of some kind of abstraction A component is a self contained entity, with some kind of boundary around it, which can later be composed with other entities 11

n Composition decisions At what stage do composition decisions occur? n Necessity for open

n Composition decisions At what stage do composition decisions occur? n Necessity for open systems to be able to dynamically link new agents into a running systems n Static compilation is not as efficient as compilation at runtime q n E. g. Perl The author does not clearly specify the actual composition process 12

n Verification of composition How do we formally model components and composition, and how

n Verification of composition How do we formally model components and composition, and how can we verify that fragments are correctly composed? n n n Additional constraints in the interfaces of components Improve expressiveness of type systems Put the contract outside the components q (useful for inter-language composition) 13

Features in a language supporting component oriented development n n n Active objects Components

Features in a language supporting component oriented development n n n Active objects Components Composition Types Subtypes 14

Benefits and Risks of following a component oriented approach n Benefits q makes it

Benefits and Risks of following a component oriented approach n Benefits q makes it easier n n n (i) to fill (at least partially) the needs of many different applications, and (ii) to adapt a given application to changing needs. Risks q q Developers invest time and effort Developing new frameworks is a costly and long-term activity No support from management if excess overhead Frameworks tend to stabilize only over several complete redesigns 15

Summary n The notion of a software component is not explicitly and generally supported

Summary n The notion of a software component is not explicitly and generally supported by object-oriented languages n A component, as opposed to an object, is a static software abstraction n An object is a run-time entity n In a component-oriented approach, the activity of component engineering must be explicitly incorporated into the lifecycle, and supported by the software process, the methods and the tools n Component engineering is the activity of distilling and packaging domain expertise in such a way as to make component-oriented application development possible 16

Conclusion n This paper introduces the concept of component oriented technology. Clearly illustrates the

Conclusion n This paper introduces the concept of component oriented technology. Clearly illustrates the difference between objects and components However, q q It does not get into the details of actual implementation The paper is very abstract about some important details 17