quale tipo di relazione esisterà tra un membro e una classe di rete P2P in un diagramma di classe?

1

Ho una classe membro che memorizza l'IP e le porte usate su quel membro. Un'altra classe P2P memorizza un elenco di tutti i membri attualmente presenti nella rete e fornisce join, lascia la funzionalità. Che tipo di relazione esisterà tra loro in un diagramma di classe?

    
posta zcqwevb 08.01.2012 - 08:57
fonte

1 risposta

1

L'elenco P2P 'ha un membro', usa la Aggregation relazione

a variant of the "has a" association relationship; aggregation is more specific than association. It is an association that represents a part-whole or part-of relationship. As a type of association, an aggregation can be named and have the same adornments that an association can. However, an aggregation may not involve more than two classes.

Aggregation can occur when a class is a collection or container of other classes, but where the contained classes do not have a strong life cycle dependency on the container — essentially, if the container is destroyed, its contents are not.

In UML, it is graphically represented as a hollow diamond shape on the containing class end of the tree with a single line that connects the contained class to the containing class.The aggregate is semantically an extended object that is treated as a unit in many operations,although physically it is made of several lesser objects...

http://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/KP-UML-Aggregation-20060420.svg/300px-KP-UML-Aggregation-20060420.svg.png

    
risposta data 08.01.2012 - 14:45
fonte

Leggi altre domande sui tag