Reusable software components are being used more and more in application development. Our approach introduces a new type of component: the communication component (or medium). It is a component that encapsulates any kind of communication service or protocol. Other components, that could possibly be distributed, are connected to these mediums and use their communication services. This paper explains how to specify a medium in UML. A medium is defined by a UML collaboration. The constraint language OCL and statecharts are also used to specify the behavior of the services offered by a medium. This specification has two aims: to define the precise behavior of a medium and to use this in a UML CASE tool to validate the medium and automatically generate code.
展开▼