Parallel DEVS & DEVSJAVA

Slides:



Advertisements
Similar presentations
Embedded System, A Brief Introduction
Advertisements

DEVS modeling of Traffic in AToM3 Presented by Ximeng Sun April 11, 2005.
Review DEVS Formalism  Discrete-Event formalism: time advances using a continuous time base.  Basic models that can be coupled to build complex simulations.
Extended DEVSML as a Model Transformation Intermediary to Make UML Diagrams Executable Jianpeng Hu Dept. of Computer Science and Engineering Shanghai Jiao.
© Yilmaz “Introduction to DEVS” 1 Introduction to Model Conceptualization and Design Dr. Levent Yilmaz M&SNet: Auburn M&S Laboratory Computer.
DEVS-Based Simulation Web Services for Net-Centric T&E Saurabh Mittal, Ph.D. Jose L. Risco-Martin*, Ph.D. Bernard P. Zeigler, Ph.D. Arizona Center for.
Quantized State System Simulation in Dymola/Modelica Using the DEVS Formalism Tamara Beltrame VTT, Industrial Systems PO Box 1000, VM Espoo, Finland.
1 CS 426 Senior Projects Chapter 14: Activity Diagrams [Arlow and Neustadt, 2005] February 17, 2009.
Replacing Hardware With Software Analysis and simulation of existing hardware using Discrete Event System Specification. By:Philip Felber Aman Gupta Imaduddin.
DEVS and DEVS Model Dr. Feng Gu. Cellular automata with fitness.
Chapter 1 Program Design
Review. A_DA_A Ball_A Ball_B player_A B_DB_A Ball_B Ball_A player_B Ball_A Ball_B A_A, B_DA_D, B_A Ball_A Ball_B CFSM Player_A  : X  S  S X A = {Ball_A}
DEVSView: A DEVS Visualization Tool Wilson Venhola.
DEVS Namespace for Interoperable DEVS/SOA
Discrete Event Modeling and Simulation of Distributed Architectures using the DSSV Methodology E. de Gentili, F. Bernardi, J.F. Santucci University Pascal.
Develop DEVS Models Using DEVSJAVA Dr. Feng Gu. DEVS atomic model Elements of an atomic model input events output events state variables state transition.
By Ezequiel Glinsky Research Assistant, University of Buenos Aires, Argentina Supervisor: Prof. Gabriel A. Wainer SCE, Carleton University Thursday, November.
Formalized Model Development & Test Generation: Key Role of Abstraction Bernard P. Zeigler Arizona Center for Integrative Modeling and Simulation (ACIMS)
ECE 449/549 Class Notes #1 Introduction to System Modeling Concepts and DEVS Sept
Definition of cell-shaped spaces. CCA = n C cell’s state variables; n S finite alphabet to represent each cell’s state; n n dimensional space; n N neighboring.
Modelling DEVS applications The CD++ tool
DEVS Based Modeling and Simulation of the CORBA POA F. Bernardi, E. de Gentili, Pr. J.F. Santucci {bernardi, gentili, University.
DEVS M&S Tutorial 2 Chungman Seo
Modeling with Parallel DEVS Serialization in DEVS models Select function Implicit serialization of parallel models E-DEVS: internal transition first,
Simulator Protocol. coordinator simulator Component tN tN. tL After each transition tN = t + ta(), tL = t simulator Component tN tN. tL simulator Component.
DEVS and SES as a Framework for Modeling and Simulation Tool Development Bernard P. Zeigler Arizona Center for Integrative Modeling and Simulation University.
Course: COMS-E6125 Professor: Gail E. Kaiser Student: Shanghao Li (sl2967)
Transforming DEVS to Non-Modular Form For Faster Cellular Space Simulation Arizona Center for Integrative Modeling and Simulation Electrical and Computer.
ECE 449/549 Class Notes #3 DEVS Simulators and Executors / Methodology : How to model and simulate Sept
DEVS-based Modeling and Simulation References: 1.B. P. Zeigler, Hessam S. Sarjoughian, Introduction to DEVS Modeling and Simulation with JAVA: Developing.
Approach and Techniques for Building Component-based Simulation Models Bernard P. Zeigler, Ph.D. Hessam S. Sarjoughian, Ph.D. Arizona Center for Integrative.
Review n System dynamics : A sequence of state transition n model : A set of rules for state transition System S X Y Discrete event system FSM (Automata)
The Abstract simulator Simulator/Simulation Concepts n Simulator: responsible for executing a model’s dynamics (resented as instructions) in a given.
ECE 449/549 Class Notes #2 Introduction to Discrete-Event Systems Specification (DEVS) Sept
PDEVS Protocol Performance Prediction using Activity Patterns with Finite Probabilistic DEVS DEMO L. Capocchi, J.F. Santucci, B.P. Zeigler University of.
Extension du formalisme SES pour l’intégration de la hiérarchie d’abstraction et la granularité temporelle au sein de la modélisation et la simulation.
DEVS modeling of Traffic in AToM3 Presented by Ximeng Sun April 11, 2005.
Before we start Literature review abstract DEVSJAVA license form
Continue the car washer example Experimental frame
SOFTWARE DESIGN AND ARCHITECTURE
Project Integration Management
Continue the car washer example Experimental frame
Functions & Graphing.
Hierarchical Architecture
Data Modeling II XML Schema & JAXB Marc Dumontier May 4, 2004
Haidong Xue Summer 2011, at GSU
SyDEVS Introduction Theory – Paradigm – Implementation
UML Activity Diagrams & State Charts
DEVS Background DEVS = Discrete Event System Specification
Suggested Project Report Outline
CS/CPE 426 Senior Projects
Atomic Model Simulator
Princess Nourah bint Abdulrahman University
Approach and Techniques for Building Component-based Simulation Models
Chapter 14: Activity Diagrams
Guest Lecturer TA: Shreyas Chand
An Introduction to Software Architecture
CS/CPE 426 Senior Projects
Inheritance: Introduction
Chapter 14: Activity Diagrams
Paper written by Flavio Oquendo Presented by Ernesto Medina
Chapter 4 DEVS Formalism
DEVS Background DEVS = Discrete Event System Specification
Chapter 14: Activity Diagrams
Design Yaodong Bi.
CS 791Z State Machines & Advanced State Machines
Computer Networks: Switching and Queuing
Links to Websites.
Links to Websites.
Computer Architecture
Presentation transcript:

Parallel DEVS & DEVSJAVA Presented by Ximeng Sun Mar 16, 2005

References Bernard P. Zergler, Herbert Praehofer, and Tag Gon Kim. Theory of Modeling and Simulation. Academic Press, 2000. Bernard P. Zergler, Hessam S. Sarjoughian. Introduction to DEVS Modeling and Simulation with JAVA. http://www.acims.arizona.edu/SOFTWARE/software.shtml#DEVSJAVA

Outline Classic DEVS quick review Why Parallel DEVS Parallel DEVS Formalism Atomic Model Coupled Model Closure under Coupling Parallel DEVS Simulation Protocol DEVSJAVA

Classic DEVS quick review Why Parallel DEVS Parallel DEVS Formalism Atomic Model Coupled Model Closure under Coupling Parallel DEVS Simulation Protocol DEVSJAVA

Classic DEVS formalism

DEVS in action

Classic DEVS Coupled Model . D : the set of the components names. Md : component DEVS models EIC : external input coupling connects external inputs to component inputs EOC : external output coupling connects component outputs to external outputs IC : internal coupling connects component outputs to component inputs

Classic DEVS quick review Why Parallel DEVS Parallel DEVS Formalism Atomic Model Coupled Model Closure under Coupling Parallel DEVS Simulation Protocol DEVSJAVA

Simple Pipeline model

In Action

Simultaneous events Q? For p1 which one is correct: δ int –> δ ext δ ext –> δ int

Indirect control In Classic DEVS, only one would be chosen to execute by Select function. Select: s –> p1 ≡ internal-transition-first Select: s –> p0 ≡ external-transition-first

If there’s a feedback…

Lose input anyway In Classic DEVS, always make the same choice among imminent components. Select: s –> p0|p1 ≡ p0|p1 loses input

Classic DEVS quick review Why Parallel DEVS Parallel DEVS Formalism Atomic Model Coupled Model Closure under Coupling Parallel DEVS Simulation Protocol DEVSJAVA

Parallel DEVS Atomic Model Xb is a set of bags over elements in X.

Extensions of Classic DEVS Allowing bags of inputs to the external function Inputs may arrive in any order Inputs with the same identity may arrive from one or more sources Introducing confluent transition function Localize collision tie-breaking control

Confluent Transition Function Collision: e = ta(s) Classic DEVS: by Select function, at coupled model level – Global decision Parallel DEVS: by , to each individual component – Local decision Default: δcon(s,x) =δext(δint(s),0,x) Or: δcon(s,x) =δint(δext(s,ta(s),x))

Parallel DEVS Coupled Model . Identical to Classic DEVS, except for the absence of the Select function X : a set of input events Y : a set of output events D : a set of component references Md : a Parallel DEVS model, for each Id : a set of influencers of d , for each Zi,d : a set of output-to-input translation functions, for each

Previous example

Handling of imminent components in Parallel DEVS

Problem in Classic DEVS solved

Closure under Coupling of Parallel DEVS Resultant of the coupled model: Partition components into 4 sets: . imminent components components about to receive inputs (confluent components) (imminent components receiving no input) (components receiving input but not imminent) . (remaining components)

Closure under Coupling of Parallel DEVS Functions of the Resultant: Output Function: Internal Transition Function:

Closure under Coupling of Parallel DEVS External Transition Function:

Confluent Transition Function:

Generic Transition Function Component is ? Confluent: Imminent only: Recipient only:

Classic DEVS quick review Why Parallel DEVS Parallel DEVS Formalism Atomic Model Coupled Model Closure under Coupling Parallel DEVS Simulation Protocol DEVSJAVA

Hierarchical Model coordinator Coupled Model simulator Coupled Model Atomic Model simulator simulator Atomic Model Atomic Model

Atomic Model Simulator

Coupled Model Simulator

Classic DEVS quick review Why Parallel DEVS Parallel DEVS Formalism Atomic Model Coupled Model Closure under Coupling Parallel DEVS Simulation Protocol DEVSJAVA

DEVSJAVA DEVS-based, Object-Oriented Modeling and Simulation environment. Written in Java and supports parallel execution on a uni-processor Simulation Viewer for animating simulation in V2.7

Package Diagram

DEVSJAVA Class hierarchy of container classes

DEVSJAVA Class hierarchy of DEVS classes

Simple Pipeline in DEVSJAVA

Simulation Viewer

More complicated example

Sources DEVSJAVA - Modeling and Simulation environment for developing DEVS-based models by Hessam Sarjoughian, Bernard Zeigler. http://www.acims.arizona.edu/SOFTWARE/software.shtml#DEVSJAVA (need a license)

Question?