Deployment Diagram Atm System5/3/2021
It shows the internal structure of a class or collaboration and uses interface, component, port, and connector to show the internal structure.When the component is instantiated, copies of its internal parts are also instantiated.
Deployment Diagram Atm System Software System WillThe UML component diagram shows how a software system will be composed of a set of deployable componentsdynamic-link library (DLL) files, executable files, or web servicesthat interact through well-defined interfaces and which have their internal details hidden.Any instance of a class that realizes the interface must fulfill that contract.Since interfaces are declarations, they are not instantiable. Instead, an interface specification is implemented by an instance of a class. Each class may implement more than one interface and each interface may be implemented by a number of different classes. Fig. 1.12 shows example of component diagram having multiple interfaces and component providing and requiring them. Figure 1.12. Component diagram showing component Bank account that provides and requires specific interfaces. Component represents a modular part of a system that encapsulates its contents, it defines its behavior in terms of provided and required interfaces. As such, a component serves as a type whose conformance is defined by these provided and required interfaces (encompassing both their static as well as dynamic semantics). One component may therefore be substituted by another only if the two are type conformant. An example of component with provided and required interfaces is given in Fig. Figure 1.13. Example of component. All of the interactions into and out of such component pass through ports. Each port provides or requires one or more specific interfaces. There can be multiple ports providing or requiring the same interface. It allows greater control over implementation and interaction with other components. Fig. 1.14 considers component with two named ports that each requires the same interface. The first port Cash withdrawal is used when banks client takes out cash from automated teller machine (ATM) using his card. The other port named Payment in shop is used when making payments with card at shop. Figure 1.14. Component with two ports. Internal structure used to specify structure of a complex component, i.e., typically components are composed of smaller components thus building up the system. Fig. 1.15 gives example of an internal structure representation. Figure 1.15. Internal structure of a component Bank. Part a component that builds up internal structure of a more complex component. An example of showing parts within component is given in Fig. Connector a relation between ports of components. If one port provides interface required by the other port, they can be linked together. There are several types of connectors that we can draw between parts and components: A direct connector links together two ports of parts, connector by interfaces links together two ports by relating together requiredprovided interfaces using lollipop and socket notation, and delegation connector which links together port of a part and port of a component thus providing interface (i.e., provides services to other components) or requiring interface (i.e., consuming services of another component). Take a look at an example showing all three kinds of connectors in Fig. Figure 1.16. Example of connectors for parts and components. There is an additional diagram type within UML 2.x versions composite structure diagram.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |