uml - What's the difference between a centralized and a distributed sequence diagram? -
uml - What's the difference between a centralized and a distributed sequence diagram? -
i'm new uml , have crossed path sequence diagram, , realized there's 2 types: distributed , centralized. can explain me differences?
centralized control, 1 participant doing of processing , other participants there supply data.
example:
distributed control, in processing split among many participants, each 1 doing little bit of algorithm
example:
both styles have strengths , weaknesses. people, particularly new objects, more used centralized control. in many ways, it’s simpler, processing in 1 place; distributed control, in contrast, have sensation of chasing around objects, trying find program.
despite this, object bigots prefer distributed control. 1 of main goals of design localize effects of change. info , behavior accesses info alter together. putting info , behavior uses in 1 place first rule of object-oriented design.
furthermore, distributing control, create more opportunities using polymorphism rather using conditional logic. if algorithms product pricing different different types of product, distributed command mechanism allows utilize subclasses of product handle these variations.
uml
Comments
Post a Comment