Actor-Oriented Design- A focus on domain-specific languages.ppt
《Actor-Oriented Design- A focus on domain-specific languages.ppt》由会员分享,可在线阅读,更多相关《Actor-Oriented Design- A focus on domain-specific languages.ppt(41页珍藏版)》请在麦多课文档分享上搜索。
1、Actor-Oriented Design: A focus on domain-specific languages for embedded systems,Edward A. Lee Professor, UC Berkeley Director, Center for Hybrid and Embedded Software Systems (CHESS),Formal Methods and Models for Codesign (MEMOCODE2004) June 22-25, 2004 San Diego, California,Abstract,Concurrent, do
2、main-specific languages such as Simulink, LabVIEW, Modelica, VHDL, SystemC, and OPNET provide modularization mechanisms that are significantly different from those in prevailing object-oriented languages such as C+ and Java. In these languages, components are concurrent objects that communicate via
3、messaging, rather than abstract data structures that interact via procedure calls. Although the concurrency and communication semantics differ considerably between languages, they share enough common features that we consider them to be a family. We call them actor-oriented languages. Actor-oriented
4、 languages, like object-oriented languages, are about modularity of software. I will argue that we can adapt for actor-oriented languages many (if not all) of the innovations of OO design, including concepts such as the separation of interface from implementation, strong typing of interfaces, subtyp
5、ing, classes, inheritance, and aspects. I will show some preliminary implementations of these mechanisms in a Berkeley system called Ptolemy II.,The Questions,Is this a good way to do design? How does it relate to prevailing SW engineering? Does it support abstraction and modularity? Will it scale?
6、Can it become mainstream?,Platforms,A platform is a set of designs.Relations between platforms represent design processes.,big gap,Progress,Many useful technical developments amount to creation of new platforms.microarchitecturesoperating systemsvirtual machinesprocessor coresconfigurable ISAs,Recen
7、t Action,Giving the red platforms useful modeling properties (e.g. verification, SystemC, UML, MDA)Getting from red platforms to blue platforms (e.g. correctness, efficiency, synthesis of tools),Better Platforms,Platforms with modeling properties that reflect requirements of the application, not acc
8、idental properties of the implementation.,How to View This Design,From above: Signal flow graph with linear, time-invariant components.,From below: Synchronous concurrent composition of components,Actor-Oriented Platforms,Actor oriented models compose concurrent components according to a model of co
9、mputation.Time and concurrency become key parts of the programming model.,Actor-Oriented Design,Actor Orientation vs. Object Orientation,Identified limitations of object orientation: Says little or nothing about concurrency and time Concurrency typically expressed with threads, monitors, semaphores
10、Components tend to implement low-level communication protocols Re-use potential is disappointing,OO interface definition gives procedures that have to be invoked in an order not specified as part of the interface definition.,actor-oriented interface definition says “Give me text and Ill give you spe
11、ech”,Actor oriented,Object oriented,The First (?) Actor-Oriented Programming Language The On-Line Graphical Specification of Computer Procedures W. R. Sutherland, Ph.D. Thesis, MIT, 1966,MIT Lincoln Labs TX-2 Computer,Bert Sutherland with a light pen,Partially constructed actor-oriented model with a
12、 class definition (top) and instance (below).,Bert Sutherland used the first acknowledged object-oriented framework (Sketchpad, created by his brother, Ivan Sutherland) to create the first actor-oriented programming framework.,Your Speaker in 1966,Modern Examples of Actor-Oriented Component Framewor
13、ks,Simulink (The MathWorks) Labview (National Instruments) Modelica (Linkoping) OPNET (Opnet Technologies) Polis & Metropolis (UC Berkeley) Gabriel, Ptolemy, and Ptolemy II (UC Berkeley) OCP, open control platform (Boeing) GME, actor-oriented meta-modeling (Vanderbilt) SPW, signal processing worksys
14、tem (Cadence) System studio (Synopsys) ROOM, real-time object-oriented modeling (Rational) Easy5 (Boeing) Port-based objects (U of Maryland) I/O automata (MIT) VHDL, Verilog, SystemC (Various) ,Except Ptolemy, all of these define a fixed model of computation.,Ptolemy II Framework for Experimenting w
15、ith AO Design,Basic Ptolemy II infrastructure:,Actors in 2004: “Capsules” (UML-RT) and “Composite Structures” (UML-2),UML-RT borrowed from Selics ROOM the notion of “capsules,” which structurally look like actors.UML-2 is introducing the notion of “composite structures,” which also look like actors.
16、UML capsules and composite structures specify abstract syntax (and a concrete syntax), but no semantics.What this says is that there is huge potential for actor-oriented design to be done wrong,Why Use the Term “Actors”,The term “actors” was introduced in the 1970s by Carl Hewitt of MIT to describe
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ACTORORIENTEDDESIGNAFOCUSONDOMAINSPECIFICLANGUAGESPPT

链接地址:http://www.mydoc123.com/p-378017.html