During the a configuration model (look for Contour 6
Computer system Arrangement Design for the UML: Construction
seven ), the structure of a configurable product is discussed toward basis of one’s modeling facilities role versions (basics or kinds), connectivity which have multiplicities, and you may generalizations. Observe that current commercial configuration environments don’t really help UML-built representations but usually Vietnamese dating review is comparable acting business that enable the fresh icon of partonomies, generalization hierarchies, and you will restrictions.
Part types: A component type of possess a special name and that is described as some properties. Services is outlined based on datatypes (brand new datatype of each and every trait is set within the [datatype], that may denote a steady, a keen enumeration, otherwise a range). Such as for example, maxprice[0..2500] determine an integer assortment feature of parts sort of Desktop computer . From the instances in this book, qualities try single-valued; which is, no attribute has more than one well worth.
Relationships and you may Multiplicities: The brand new area-away from modeling facility is employed to describe part-away from relationships ranging from part versions. With its simplest means, these associations are thought is out of type substance (perhaps not mutual); consequently no eg (component) off a feature type of should be part of multiple including (entire role). Particularly, per Cpu falls under just you to definitely MB (motherboard) each MB contains several CPUs . Keep in mind that we use multiplicities to help expand establish connections between part models. Other examples of multiplicities will be adopting the: for each and every Desktop (pc) consists of a minumum of one Programs (no upper limitation laid out here) each Software is part of exactly one Desktop computer . Each disk drive ( HDisk ) features exactly one to DiskPort and each DiskPort are in the you to definitely HDisk (within the same HDUnit ). Also, per DiskPort are regarding a good ControllerPort . Remember that more sorts of connectivity are included in the person book chapters in which necessary.
Generalizations: This acting facility relates 2 or more component products using good subset loved ones. The fresh generalization relationships anywhere between subtypes and supertype (or perhaps the inverse expertise matchmaking between supertype and subtypes) will be defined while the disjoint and you can over. Disjointness ensures that each instance of an element style of X can be assigned to just one of subtypes away from X. Such as for instance, for each Central processing unit is either off kind of CPUS or CPUD yet not bothpleteness implies that for each such is assigned to one of many leaf nodes of your generalization ladder . Furthermore, generalization hierarchies regarding the setting perspective normally do not allow multiple inheritance. Again, further modeling establishment with different semantics are introduced in the most other chapters of that it publication in which needed. Keep in mind that to possess grounds out of convenience no definition of certain application designs is included within our analogy; the assumption is that each and every exemplory instance of variety of Software has the exact same required hdcapacity (200) and the same speed , that’s 50. Inside a complete model of a computer a lot more subtypes manage be added or recognized as part of a matching role directory.
Generalization: Supertypes and you can Subtypes
The initial Emergency room model might have been effortlessly useful for communicating important investigation and you will matchmaking meanings with the person for a long time. But not, deploying it growing and you may integrate abstract activities with assorted stop affiliate opinions is honestly minimal up to it can be longer so you’re able to were databases abstraction maxims such as for instance generalization. The fresh generalization matchmaking determine one several kinds of organizations which have specific prominent characteristics will likely be general to the a top-top organization type-a generic or superclass entity, that is commonly known as an excellent supertype organization. The low degrees of organizations-subtypes during the good generalization steps -shall be often disjoint or overlapping subsets of one’s supertype organization. For instance, within the Contour dos.5 brand new organization Staff member try increased-level abstraction regarding Director, Professional, Professional, and you may Secretary, which are disjoint sort of Staff. The latest Emergency room design construct on generalization abstraction is the commitment away from a beneficial supertype organization with its subtypes, having fun with a circle additionally the subset symbol on the hooking up lines on the community for the subtype agencies. The fresh new circle consists of a page specifying good disjointness constraint (see the following the conversation). Specialization, the opposite of generalization, was a keen inversion of the identical style; it means you to subtypes specialise new supertype.