舞蹈服装设计风格如何选择解析

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

TEAM4:DESIGNPATTERNSBYPiyushVijayvargiyaYoungJinKimBimeshGiriArkadiyGorelikSPRING2003,COMP680西安服装设计培训Adescriptionofasolutiontoarecurringproblemwithinacontext,provenbyexperiencetoleadtoasuperiorresultwhenproperlyapplied.AdesignpatternisadescriptionofcommunicatingobjectsandclassesthatarecustomizedtosolveageneraldesignprobleminaparticularcontextWhyaDesignPatternReusability:ForanefficientandactualSEdiscipline.Helpingnewdesignerstohaveamoreflexibleandreusabledesign.Improvingthedocumentationandmaintenanceofexistingsystembyfurnishinganexplicitspecificationofclassandobjectinteractionsandtheirintent.HistoryofDesignPattern1979:ChristopherAlexander,architect,“TheTimelessWayofBuilding”,OxfordPress.1987:OOPSLA(ObjectOrientedProgrammingSystem),Orlando,presentationofdesignpatterntothecommunityOObyWardCunninghamandKentBeck.1995:GroupofFouraliasE.Gamma,R.Helm,R.JohnsonandJ.Vlissides:“DesignPattern:ElementsofReusableOOsoftware”.PatternCharacteristicsEachpatternhasaname.Patternsfollowalooselystandardizeddocumentformat,generallyemployingaconversationaltone.Theymayalsoincludediagrams,picturesorsourcecodetohelpthereaderunderstandthepattern.Additionally,eachpatternprovidessuggestionsofotherpossiblepatternstoconsiderinsteadof,orinconjunctionwiththatparticularpatterntohelpsolvelargerproblems.ThuspatternsareliteraryformofProblemSolving.EssentialQualitiesofaTruePattern.QualityWithoutaName(QWaN):Fundamentally,QWaNmeansthat,whenappliedcorrectlytosolveanapplicableproblem,theresultingsolutionprovidesastructurethatcanevolveovertimetomeetunanticipatedfutureneeds.EssentialQualitiesCont.RuleofThree:Inorderforasolutiontoreallybea'pattern',theremustalreadyexistknownusesofthesolution,withresultsthatcanbeobserved.Thisrulestatesthat,foranysolutiontobeatruepattern,theremustbeatleastthreeknowninstancesofthatsolution.EssentialQualitiesCont.PatternFormat:Patternsaredocumentedfollowingalooselystandardizedformat.FORMAT:Thestructureofanysolutionpresentedasapatternmaybeinformalorformal.Minimally,eachpatternmustspecifyaname,thepurposeofthepattern,adescriptionofthesolutionandtheforcesitresolves.Additionalsectionsmaybeincludedaswell.PatternFormatsApatternmaybeverybrief-consistingofonlyafewparagraphsofconversationaltext-oritmaybedocumentedinmanypagesofabookorpublishedpaper.Apatternmaybeverylooselyorstrictlystructured.Forsoftwaredesignpatterns,amorestrictstructureisusuallypreferred,witheachpatterndividedintoanumberoftopicsections.CommonpatternsectionsNameProblemorIntentContextorApplicabilitySolutionForcesorConsequencesRelatedPatternsKnownUsesNameofDesignPatternHavetobecoherentandevocative.Describeadesignproblemsanditssolutionsinoneortwosentences.Usedtotalkaboutdesignpatternwiththecolleagues.Usedinthedocumentation.ProblemorIntentDescribeswhentoapplythepatterns.Explainstheproblemanditscontext.Sometimesincludealistofconditionsthatmustbemetbeforeitmakessensetoapplythepattern.Havetooccuroverandoveragaininourenvironment.ContextorApplicabilityThisisthesectionwhichtellsthatwhentheparticularpatterncanbeappliedandwhatistheprobleminaparticularcontextthatcanbesolvedusingtheparticularpattern.SolutionDescribestheelementsthatmakeupthedesign,theirrelationships,responsibilitiesandcollaborations.Doesnotdescribeaconcretedesignorimplementation.Hastobewellproveninsomeprojects.ForcesorConsequencesResultsandtrade-offsofapplyingthepattern.Helpfulfordescribedesigndecisions,forevaluatingdesignalternatives.Benefitsofapplyingapattern.Impactsonasystem’sflexibility,extensibilityorportabilityRelatedPatternsThissectionmentionsthenamesoftheotherknownpatternswhicharerelatedtothispatternandareusedtogettothesolutionoftheproblemencounteredintheparticularcontext.Oritcanbegivethenamesofthepatternwhicharealmostthesameandcanbeusedassubstitutepatterns.KnownUsesAswehavealreadyseenthatinorderforapatterntobeatruepatternthereshouldbeatleastthreeindependentinstancesofthesolutionprovidedbythepattern.Sothissectionlistsomeoftheknownusesofthepattern.ClassificationofDesignPatternsThedesignPatternsmaybeClassifiesasCreationalDesignPatterns.StructuralDesignPatterns.BehavioralDesignPatterns.Classificationofdesignpatterns(aview)CreationalStructuralBehavioralFactoryMethodAdapterInterpreterTemplateMethodAbstractFactoryAdapterChainofResponsibilityBuilderBridgeCommandPrototypeCompositeIteratorSingletonDecoratorMediatorFaçadeMementoFlyweightObserverProxyStateStrategyVisitorClassObjectPurposeScopeCreationalDesignPatternsObjectiveConceptofcreationaldesignpattern.Understandingof5differentcreationaldesignpatternswithcodeexamples.Therightusageofcreationaldesignpatterns.GivinganideaofhowtocreateobjectusingDesignpatterntoapplyyourownapplication.WhatiscreationalDesignpattern?Abouthowanobjectcanbecreated.requestClientApplicationCreatingObjectCreationalPatternsReturnobjectEncapsulatedWhatiscreationalDesignpattern?(cont)Designpatternsthatabstractstheobjectinstantiationprocess.helpsystembeindependentofhowitsobjectsarecreate

1 / 179
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功