The Ptolemy II Framework for Visual Languages

Similar documents
Component-Based Design of Embedded Control Systems

Modal Models in Ptolemy

Embedded Software from Concurrent Component Models

Component-Based Design of Embedded Control Systems

Process-Based Software Components Final Mobies Presentation

Ptolemy II The automotive challenge problems version 4.1

Interface Automata and Actif Actors

Discrete-Event Modeling and Design of Embedded Software

Concurrent Component Patterns, Models of Computation, and Types

Giotto Domain. 5.1 Introduction. 5.2 Using Giotto. Edward Lee Christoph Kirsch

DESIGN AND SIMULATION OF HETEROGENEOUS CONTROL SYSTEMS USING PTOLEMY II

Integration of OpenModelica in Ptolemy II

The Future of the Ptolemy Project

VOLUME 1: INTRODUCTION TO PTOLEMY II. Document Version 3.0 for use with Ptolemy II 3.0 July 16, 2003

Model-Based Design in the Ptolemy Project

Advanced Tool Architectures. Edited and Presented by Edward A. Lee, Co-PI UC Berkeley. Tool Projects. Chess Review May 10, 2004 Berkeley, CA

Hybrid System Modeling: Operational Semantics Issues

Hierarchical FSMs with Multiple CMs

An Overview of the Ptolemy Project and Actor-Oriented Design

An Overview of the Ptolemy Project. Organizational

Simulation of LET Models in Simulink and Ptolemy

UC Berkeley Mobies Technology Project

Building Unreliable Systems out of Reliable Components: The Real Time Story

System-Level Design Languages: Orthogonalizing the Issues

Process-Based Software Components. Subcontractors and Collaborators

The Ptolemy Project. Modeling and Design of Reactive Systems. Presenter: Praveen Murthy, PhD Postdoc and Presenter

Overview of the Ptolemy Project

System-Level Design Languages: Orthogonalizing the Issues. Kees Vissers

Concurrent Models of Computation

Actor-Oriented Design and The Ptolemy II framework

The Gigascale Silicon Research Center

SDF Domain. 3.1 Purpose of the Domain. 3.2 Using SDF Deadlock. Steve Neuendorffer

Finite State Machines and Modal Models in Ptolemy II

Future Directions. Edward A. Lee. Berkeley, CA May 12, A New Computational Platform: Ubiquitous Networked Embedded Systems. actuate.

A PRIMITIVE EXECUTION MODEL FOR HETEROGENEOUS MODELING

VOLUME 1: INTRODUCTION TO PTOLEMY II. Document Version 5.0 for use with Ptolemy II 5.0 July 15, 2005

Advanced Tool Architectures

Heterogeneous Concurrent Modeling and Design in Java (Volume 1: Introduction to Ptolemy II)

Building Synchronous DataFlow graphs with UML & MARTE/CCSL

The Ptolemy Kernel Supporting Heterogeneous Design

Modeling Stream-Based Applications using the SBF model of computation

fakultät für informatik informatik 12 technische universität dortmund Data flow models Peter Marwedel TU Dortmund, Informatik /10/08

Heterogeneous Concurrent Modeling and Design in Java (Volume 1: Introduction to Ptolemy II)

Counting Interface Automata and their Application in Static Analysis of Actor Models

Compositionality in system design: interfaces everywhere! UC Berkeley

World Wide Web Server.

An Extensible Type System for Component-Based Design

Ptolemy Seamlessly Supports Heterogeneous Design 5 of 5

ModHel X: A Component-Oriented Approach to Multi-Formalism Modeling

The Problem With Threads

Integrated Design and Analysis Tools for Software Based Control Systems

Actor-Oriented Design: Concurrent Models as Programs

Introduction to Embedded Systems

An Extensible Type System for Component-Based Design

By: Chaitanya Settaluri Devendra Kalia

Code Generation for Embedded Java with Ptolemy

Java Code Generation. Outline. Steve Neuendorffer UC Berkeley. Motivation Code generation architecture Component Specialization

Fusing Dataflow with Finite State Machines

Modeling of Sensor Nets in Ptolemy II

Specifications and Modeling

SDL. Jian-Jia Chen (slides are based on Peter Marwedel) TU Dortmund, Informatik 年 10 月 18 日. technische universität dortmund

Concurrent Models of Computation

Static Analysis of Actor Networks

The Waveform Description Language. Overview

C Code Generation from the Giotto Model of Computation to the PRET Architecture

Dynamic Dataflow Modeling in Ptolemy II. by Gang Zhou. Research Project

Classes and Subclasses in Actor-Oriented Design

A DSL for Explicit Semantic Adaptation?

The Design and Application of Structured Types in Ptolemy II

LabVIEW Based Embedded Design [First Report]

Deterministic Execution of Ptides Programs

FSMs & message passing: SDL

Executing SyncCharts with Ptolemy

Concurrent Models of Computation for Embedded Software

Overview of Dataflow Languages. Waheed Ahmad

Automatic Transformation from Geospatial Conceptual Workflow to Executable Workflow Using GRASS GIS Command Line Modules in Kepler *

ThreadedComposite: A Mechanism for Building Concurrent and Parallel Ptolemy II Models

Heterogeneous Modeling and Design - Edward A. Lee (PI) -

Specifications Part 1

Actor-oriented Metaprogramming. Stephen Andrew Neuendorffer

Heterogeneous Design in Functional DIF

Hardware Description Languages & System Description Languages Properties

SimWORKS, A Hybrid Java/C++ Simulation Platform

Specifications and Modeling

Documentation Programmer-Oriented

Hierarchical Reconfiguration of Dataflow Models

Concurrent Models of Computation for Embedded Software

Imperative model of computation

Embedded Real-Time Systems

AFRL-RI-RS-TR

Hierarchical Reconfiguration of Dataflow Models

Concurrent Models of Computation

A Framework for the Design of Mixed-Signal Systems with Polymorphic Signals

Institutionen för datavetenskap Department of Computer and Information Science

Classes and Inheritance in Actor- Oriented Models

VOLUME 3: PTOLEMY II DOMAINS. Document Version 5.0 for use with Ptolemy II 5.0 July 15, 2005

Real-time C Code Generation in Ptolemy II for the Giotto Model of Computation

A Code Generation Framework for Actor-Oriented Models with Partial Evaluation

The Design and Application of Structured Types in Ptolemy II

Software Synthesis from Dataflow Models for G and LabVIEW

Transcription:

The Ptolemy II Framework for Visual Languages Xiaojun Liu Yuhong Xiong Edward A. Lee Department of Electrical Engineering and Computer Sciences University of California at Berkeley Ptolemy II - Heterogeneous Modeling and Design in Java The Ptolemy project studies modeling, simulation, and design of concurrent, real-time, embedded systems. The focus is on assembly of concurrent components. The key underlying principle in the project is the use of welldefined models of computation that govern the interaction between components. Principal Investigator Edward A. Lee Technical Staff Christopher Hylands Mary P. Stewart Postdocs and Researchers Johan Eker Joern Janneck Winthrop Williams Grad Students Christopher Chang Brian Vogel Elaine Cheong Yuhong Xiong Chamberlain Fong Yang Zhao Jie Liu Xiaojun Liu Steve Neuendorffer VLFM01, 2 1

Approach to Visual Modeling Abstract syntax: clustered graph of entities and relations. Executable entities and execution control: actors communicate with each other through message passing under the control of a director. Domains: implementation of semantics for component interaction. *charts: mixing finite state machine (FSM) with other s. System-level types: formal framework to study the dynamic properties of component interaction. VLFM01, 3 Abstract Syntax Entity connection Relation Link Link connection Link Entity connection Entity Clustered graphs wellsuited to a wide range of s, ranging from state machines to process networks VLFM01, 4 2

Clustering AtomicEntity opaque Relation dangling transparent transparent transparent CompositeEntity toplevel CompositeEntity The ports deeply connected to the red port are the blue ones. Composite entities and ports provide a simple and powerful, independent abstraction mechanism VLFM01, 5 Executable Entities and Execution Control Director Actor Tokens IO Actor Actors communicate with each other through message passing. Directors control the execution of actors. VLFM01, 6 3

SDF Domain Examples Continuous Time (CT): actors interact via continuous-time signals. Discrete Event (DE): actors communicate via events placed on a real time line. Synchronous Dataflow (SDF): actors perform regular computations on data streams. Synchronous Reactive (SR): actors interact through signals whose values are aligned with global clock ticks. VLFM01, 7 Ptolemy II Infrastructure CSP DT CT DDE DE actor moml data lang Kernel math gui graph plot FSM Giotto PN GR VLFM01, 8 4

*charts (Girault, Lee and Lee) Motivated by Statecharts and hybrid systems. Allows nesting FSMs with a variety of models of computation. Nesting can happen at any level in a heterogeneous model. Decouples the concurrency model from the hierarchical FSM semantics. VLFM01, 9 *charts Ptolemy II Implementation FSMActor Modal Model (a) The environment. (b) The modes. D0: Director A1 M A2 D1: Director Mode1 (c) The modal model. D2: Director FSM Director M D1: Director D2: Director Mode2 Mode1 Mode2 VLFM01, 10 5

Example: Sticky Masses The stickiness is exponentially decaying with respect to time. VLFM01, 11 Sticky Masses: Block Diagram out = k 1 *(y 1 - in)/m 1 C P:=P1 V:=(V 1 *m 1 +V 2 *m 2 )/(m 1 +m 2 ) s:=5 out = (k 1 *y 1 + k 2 *y 2 - in)/(m 1 +m 2 ) P 1 P 1 V 1 P 2 P 1 =? C V 2 out = k 1 *(y 1 -in) - k 2 *(y 2 - in) F s V P 2 Plot P 2 -s S t out = k 2 *(y 2 - in)/m 2 F s >S t P 1 :=P P 2 :=P V 1 :=V V 2 :=V VLFM01, 12 6

Sticky Masses: Simulation Created by Jie Liu, Xiaojun Liu and Yuhong Xiong. VLFM01, 13 Formal Framework for Component Interaction Treat different communication protocols in Ptolemy II s as types: interaction types or system-level types. Type signature and component behavior described by interface automata (de Alfaro and Henzinger). Compatibility of components with an interaction type checked through automata composition. Simulation relation captures subtyping of interaction types. Components may be polymorphic: compatible with multiple interaction types. VLFM01, 14 7

Conclusion Visual models in Ptolemy II are built on 3 layers: abstract syntax, executable entities, s. Implemented *charts formalism: nesting FSMs with a variety of models of computation. Developed a formal framework to study component interaction. For more information: http://ptolemy.eecs.berkeley.edu Release 1.0.1 available for download VLFM01, 15 8