软件体系结构-第2章(英文).ppt
SoftwareArchitectureChaptertwoSoftwareArchitectureStyle
本章要点SoftwareArchitectureStyleIllustrationonTypicalArchitecturestyleCustomer/ServerStyleBrowser/ServerStyleNewArchitectureStyleSummary
SoftwareArchitectureStyleSoftwareArchitectureistodescribesystemorganizationnormalmodelforcertainapplicationareaSoftwareArchitecturestyledefinessystemfamily,orwemaysay,onearchitecturedefineavocabularylistandarestrictionSoftwarearchitecturereflectscommonstructureandcharactersofmanysystemandalsointegrateeveryindividualmodelandsubsystemintooneeffectivesystem
ThreeLevelPatternArchitecturalPatternDesignPatternCodingPatternORIdiom
TypesofArchiteturePatternFromMudtoStructureDistributedSystemsInteractiveSystemsAdaptableSystems
本章要点SoftwareArchitectureStyleIllustrationonTypicalArchitecturestyleCustomer/ServerStyleBrowser/ServerStyleNewArchitectureStyleSummary
CommonArchitecturalStylesDataflowPipesandfiltersBatchsequentialData-centeredRepositoryBlackboardVirtualMachineInterpreterRule-basedsystemCallandReturnMainprogramandsubroutineOO(Dataabstraction)LayeredIndependentomponentsCommunicatingprocessesClient/serverEventsystemsImplicitinvocationExplicitinvocation
HowcanwestudyArch.Styles?Byexaminingthefollowingforeach:Connectors,componentsKeycharacteristicsStrengthsweaknessesVariantsspecializationsExamples
Style:PipesandFiltersUnixshellps-x|grepvi|awk{printkill-9$1}kill.vipsgrepawk
Pipes/Filters
PipesandFilters:
ComponentsConnectorsComponents:FilterCompletelyindependententitiesConsumestreamsofinputsandproducestreamsofoutputsContextindependent(donotknowwhatproducedtheinputorwillconsumetheoutput)Outputstartsbeforeinputis(entirely)consumed(incrementaltransformationofdata)Connectors:PipesCarrierofdatastreamsBindingbetweencomponentports
PipesandFilters:
KeyCharacteristicsDataFlowArchitectureModel