软件体系结构信息共享体系结构SharedInformation_第1页
软件体系结构信息共享体系结构SharedInformation_第2页
软件体系结构信息共享体系结构SharedInformation_第3页
软件体系结构信息共享体系结构SharedInformation_第4页
软件体系结构信息共享体系结构SharedInformation_第5页
已阅读5页,还剩39页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、软件体系结构信息共享体系结构Shared Information8/13/20221Where are we?8/13/20222Families of Architectural Styles8/13/20223Families of Architectural Styles8/13/20224Families of Architectural Styles8/13/20225Families of Architectural Styles8/13/20226Shared Information SystemsStyle represents a large variety of syste

2、ms这种风格描绘很多种系统many variants depending on nature of shared data共同特点是共享数据Style addresses mechanisms for:风格说明其运行机制是collecting, manipulating and preserving large bodies of data收集、操作、保存大量的数据Databases are a natural example, but not the only one数据库是一个典型的例子,但不是仅有的例子well see others in this lecture8/13/20227Sh

3、ared Information SystemsHigh level viewwhat are the apparent features of this style?风格的明显特点是什么?what are some issues regarding this style?这种这个风格有什么可研究的问题?8/13/20228Shared Information SystemsAdvantageseasy to add consumers and producers of data很容易增加数据的生产者和消费者How about modifier?Issuessynchronization(同步

4、)configuration and schema management(配置和管理)atomicity(原子性)consistency(一致性)persistence(持久性)performance(性能)8/13/20229Shared Information Systems LineageEarliest repositories appear in batch sequential systems早期的仓库出现在批处理系统mainframes, drums, magnetic tapes, disc drivesresources manually managed人工调配资源Press

5、ure for on-line access to data迫切需要数据即时存取requirement to make access to data easy and instant简捷地数据存取help to drive the shift from batch-sequential to interactive processing 促进了从批处理到交互式处理的转变8/13/202210Shared Information Systems LineageTodayshared information systems appear everywhere from the smallest b

6、usiness, to the most advanced scientific applications从最小的商业应用到最顶尖的科学应用,信息共享无处不在many applications provide access mechanisms to shared data很多应用提供对共享数据的存取机制the Web has become a giant distributed repositoryWeb成为庞大的分布式仓库8/13/202211Evolution of Shared Information SystemsBatch Sequential Systemsflat (I/O)8

7、/13/202212Early In the earliest systems, code had to be written to position the media, read the data, and do any associated “house cleaning” operations.早期的系统,很难编写代码来完成定位存储介质、读数据等操作8/13/202213Early Advances in OS development focused on the abstraction of devicesthe demand to use external data helped

8、to drive the development of more capable flat - one level of directories that contain only fileshierarchical - directories that can contain files and more directorieslanguage and OS support for many and methods8/13/202214Evolution of Shared Information SystemsDatapool (Shared Memory) Example:Enabled

9、 by availability of RAM and languages to permit the sharing of common data (E.g., FORTRAN COMMON BLOCK)Processes are not necessarily sequentialGets messy without implementation rules - what are the issues?8/13/202215Repository Architecture8/13/202216Unified Schemas for IntegratingDatabasesAbstractio

10、n:multiplex the databases; putfilters on the query/update tomatch diverse views抽象:复合多个数据库;在查询/更新操作中增加过滤器来匹配不同的视图8/13/202217Multi-databases8/13/202218Evolving Database ArchitecturesBatch processing: Standalone programs (独立的程序)results were passed from one to another on magtape (结果通过磁带从一个程序传到另一个程序)batc

11、h sequential model (批处理风格)Interactive processing: concurrent operation and faster updates preclude batching, so updates are out of synch with reports. 并行操作、更快的更新速度,但是使更新和报告难以保持同步。Repository model with external control (仓库风格)Problem: information became distributed among many different DBs.新问题:信息分布到很多

12、不同的数据库8/13/202219Evolving Database ArchitecturesUnified schemas:create one virtual database by defining (passive) consistent conversion mappings to multiple DBs建立一个虚拟数据库,定义到多个数据库的静态映射Multi-database: DBs have many users; passive mappings dont suffice; use active agents. 数据库有很多用户;静态映射不满足要求;使用活动的代理。 “L

13、ayered” hierarchy层次风格8/13/202220Computer Aided SoftwareEngineeringInitially just translation from source to object code: compiler, library, linker, make起初,就是做从源代码到目标代码的转换Grew to include design record, documentation, analysis, configuration control, incrementality开始包含分析、设计、调试、测试、文档、配置管理、增量编译等功能Integr

14、ation demanded for 20 years, but not here yet.集成已经作了20年,但还没有结束8/13/202221CASE vs. DBMSAs compared to databases, CASE has:more types of data更多的数据类型fewer instances of each type更少的数据类型实例slower query rates 更慢的查询频率larger, more complex, less discrete information更大,更复杂,更集中的信息but not shorter lifetime生命周期没有更

15、短8/13/202222Traditional Compiler8/13/202223Example: Modern CanonicalCompiler8/13/202224Canonical Compiler8/13/202225Software Tools with SharedRepresentation8/13/202226Evolution of CASE EnvironmentsEvolution is much like databases:Interaction: batch - interactive交互:批处理交互式Granularity: complete process

16、ing -incremental粒度:完全处理增量Coverage: compilation - full life cycle覆盖:编译全生命周期Like databases, started with batch sequential style从批处理风格开始Integration needs led to repositories with rigid control, then to open systems in layers对集成性的要求,促成了仓库风格被应用,让系统开始分层8/13/202227Varieties of RepositoriesDiscriminate on c

17、ontrol strategy(在控制策略上的区别)Predetermined by designer (设计者预先定义好)CompilersDriven by types of information in input stream 输入流的信息类型决定Database transaction systemDriven by availability of new information from other parts of the system (系统其他部分的新信息决定)Scratchboard (刮板)Opportunistic: driven by state of computa

18、tion机会主义:计算的状态决定Blackboard8/13/202228Repository (Blackboard)8/13/202229The Blackboard ModelKnowledge SourcesProblem-appropriate knowledge partitioned into separate, independent computations把问题分成几个部分,每个部分独立计算React to changes in blackboard响应黑板上的变化Blackboard Data StructureGlobal database containing ent

19、ire state of problem solution全局数据库包含解域的全部状态Only means by which knowledge sources interact知识源互相作用的唯一媒介ControlKnowledge sources respond“opportunistically”让知识源响应偶然事件8/13/202230The Blackboard Model8/13/202231Blackboard ArchitectureKey ideasknowledge shared and distributed among some number of cooperatin

20、g processes知识在一些协作的processes之间共享和分布opportunistic processing of data机会主义地处理数据The Blackboard Architecture have 3 major componentsknowledge sources (知识源)blackboard (黑板)control (控制)Historical examples:Hearsay I, Hearsay II, HASP/SAIP, CRYSALIS, ATOMEOriginally most were from signal processing/interpreta

21、tion domains (信号处理、专家系统、模式识别领域经常采用)8/13/202232Blackboard Architecture8/13/202233Blackboard Problem Characteristicsno direct algorithmic solution没有直接的算法可解multiple approaches to solving the problem多种方法都可能解决问题various domain expertise required to solve the problem需要多个领域的专门知识协作解决uncertaintyerror and vari

22、ability in data and solution数据和解决方法可能错误或变化moderate to low “signal-to-noise-ratio” in data数据中信噪比的变化Uncertainty interferes with algorithmic solutions算法接口的变化8/13/202234Blackboard Problem Characteristics“Best-effort” or approximation is good enoughno single discrete answer to problem, or “right” answer

23、may vary问题没有唯一的解答,或者“正确”答案会变化examplessignal processing (信号处理)problem solving (planning, logistics, diagnostics)compiler optimization8/13/202235Knowledge SourcesObjective:contribute knowledge that leads to solution提供解决问题的知识Representation:procedures, sets of rules, logic assertions过程、规则、逻辑断言Action:mod

24、ify only the blackboard (or control data - magic)只修改黑板Responsibility:know when its possible to help知道何时能发挥作用Selection:loosely-coupled subtasks, or areas of specialization低耦合的子任务,或者有特别的能力8/13/202236Blackboard Data StructureObjective:hold data for use by knowledge sources保存知识源要使用的数据Representation:stor

25、es objects from solution space, including保存来自解空间的数据,包括input data, partial solutions, alternatives, final solutions, control dataobjects and properties define the terms of the discourserelationships are denoted by named links (“next-to”, “part-of”)Organization:hierarchical, possibly multiple hierarch

26、ies; links between objects on same or different levels分层;链接同层或不同层的对象8/13/202237ControlObjective:make knowledge sources respond opportunistically让知识源响应偶然事件Representation:keeps various sorts of information about which knowledge sources could operate and picks a sequence that allows the solution proces

27、s to proceed a step at a time了解各个知识源的能力,决策解决问题的步骤Remark:the control mechanisms are thoroughly ad hoc控制机制是彻底的与时俱进8/13/202238Example:The Puzzle Metaphor8/13/202239Example:The Puzzle MetaphorData within the blackboard is often structured hierarchicallyLevel 4assemble chunksLevel 3build chunks of edges

28、build chunks of skyLevel 2collect edge piecescollect sky piecesLevel 1Turn all pieces picture side up8/13/202240Hearsay IIComplex blackboard system to deal with arbitrary speech recongition (a difficult problem):Ambiguity in segmentation(音节分割问题): “Marys truck” versus “Mary struck” Ambiguity in stress(重音问题): “disease” versus “dizzies”Ambiguity in grammar(语法问题): “The horse raced past the barn fell”Ambiguity i

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论