DEVS and DEVS Model Dr. Feng Gu. Cellular automata with fitness.

Slides:



Advertisements
Similar presentations
Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
Advertisements

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.
Module 12.  In Module 9, 10, 11, you have been introduced to examples of combinational logic circuits whereby the outputs are entirely dependent on the.
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
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.
Ordering and Consistent Cuts Presented By Biswanath Panda.
An Introduction to Input/Output Automata Qihua Wang.
Replacing Hardware With Software Analysis and simulation of existing hardware using Discrete Event System Specification. By:Philip Felber Aman Gupta Imaduddin.
Counting with Sequential Logic Experiment 8. Experiment 7 Questions 1. Determine the propagation delay (in number of gates) from each input to each output.
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
Discrete Time and Discrete Event Modeling Formalisms and Their Simulators Dr. Feng Gu.
Advances in Language 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}
Chapter 10 State Machine Diagrams
ECE 720T5 Winter 2014 Cyber-Physical Systems Rodolfo Pellizzoni.
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
DEVSView: A DEVS Visualization Tool Wilson Venhola.
Designing a Discrete Event Simulation Tool Peter L. Jackson School of Operations Research and Industrial Engineering March 15, 2003 Cornell University.
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.
- 1 - Embedded Systems - SDL Some general properties of languages 1. Synchronous vs. asynchronous languages Description of several processes in many languages.
StateCharts Peter Marwedel Informatik 12 Univ. Dortmund Germany.
By Ezequiel Glinsky Research Assistant, University of Buenos Aires, Argentina Supervisor: Prof. Gabriel A. Wainer SCE, Carleton University Thursday, November.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 11 Binary Adder/Subtractor.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
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
Unifying Discrete and Continuous Simulation with Discrete Events: DEVS as the Next Modeling Standard Bernard P. Zeigler Arizona Center for Integrative.
DEVS Based Modeling and Simulation of the CORBA POA F. Bernardi, E. de Gentili, Pr. J.F. Santucci {bernardi, gentili, University.
Chapter 2 Fundamental Simulation Concepts
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Modeling with Parallel DEVS Serialization in DEVS models Select function Implicit serialization of parallel models E-DEVS: internal transition first,
Performance Analysis and Simulation of Service Based Applications Rajapaksage Jayampathi DM Rasanjalee Himali Instructor: Dr Xaolin Hu CSC 8350.
Simulator Protocol. coordinator simulator Component tN tN. tL After each transition tN = t + ta(), tL = t simulator Component tN tN. tL simulator Component.
CSCI1600: Embedded and Real Time Software Lecture 7: Modeling II: Discrete Systems Steven Reiss, Fall 2015.
States.
DEVS and SES as a Framework for Modeling and Simulation Tool Development Bernard P. Zeigler Arizona Center for Integrative Modeling and Simulation University.
CSCI1600: Embedded and Real Time Software Lecture 28: Verification I Steven Reiss, Fall 2015.
Transforming DEVS to Non-Modular Form For Faster Cellular Space Simulation Arizona Center for Integrative Modeling and Simulation Electrical and Computer.
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)
 Simulation enables the study of complex system.  Simulation is a good approach when analytic study of a system is not possible or very complex.  Informational,
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
Agenda  Quick Review  Finish Introduction  Java Threads.
CDA6530: Performance Models of Computers and Networks Chapter 8: Statistical Simulation ---- Discrete Event Simulation (DES) TexPoint fonts used in EMF.
Discrete-Event System Simulation in Java. Discrete Event Systems New dynamic systems New dynamic systems Computer and communication networks Computer.
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.
IAY 0600 Digital Systems Design VHDL discussion Structural style Modular design and hierarchy Part 1 Alexander Sudnitson Tallinn University of Technology.
Before we start Literature review abstract DEVSJAVA license form
Parallel DEVS & DEVSJAVA
Continue the car washer example Experimental frame
Parallel and Distributed Simulation Techniques
SyDEVS Introduction Theory – Paradigm – Implementation
DEVS Background DEVS = Discrete Event System Specification
States.
Atomic Model Simulator
Approach and Techniques for Building Component-based Simulation Models
States.
Introduction to Computer Architecture
CSCI1600: Embedded and Real Time Software
DEVS Background DEVS = Discrete Event System Specification
Uniprocessor scheduling
Presentation transcript:

DEVS and DEVS Model Dr. Feng Gu

Cellular automata with fitness

Discrete time simulation Assuming the simulation starts at time =0, and ends at time = T f t=0 While (t<=T f ){ for each cell ci in the cell space q(t+1) = δ(q(t), q neighbor (t)) t = t+1 }

Discrete time simulation Assuming the simulation starts at time =0, and ends at time = T f t=0 activeCellSet = all cells While (activeCellSet != null && t<=T f ){ tempCellSet = null; for each cell ci in the activeCellSet{ q i (t+1) = δ(q i (t), q ineighbor (t)) if (q i (t+1)!=q i (t)){ add ci to tempCellSet; add all neighbors of ci to tempCellSet; } activeCellSet = tempCellSet; t = t+1 }

Discrete event simulation Assuming the simulation starts at time =0, and ends at time = T f t=0 eventList= initializeEventList() While (eventList != null && t<=T f ){ remove and process the first event from eventList { get the cell ci associated with this event new state q i = δ(q i (t), q i neighbor (t)) schedule ci’s next event and inset it into eventList compute the next events of all ci’s neighbors update, or insert, or remove neighbors’ events into the eventList } sort all the events in eventList t = time of the earliest next event in eventList }

Event scheduling

Event list Scheduling (1) inter-gen-time = 7; service-time = 5 (2) inter-gen-time = 7; service-time = 10

Framework for continuous and discrete models

Discrete event time segments

DEVS background DEVS = Discrete Event System Specification Provides formal M&S framework: specification, simulation Derived from Mathematical dynamical system theory Supports hierarchical, modular composition Object oriented implementation Supports discrete and continuous paradigms Exploits efficient parallel and distributed simulation techniques

DEVS background DEVS is a modular modeling approach. A DEVS model does not directly schedule other models’ events. DEVS separates a model and its simulator in an explicit way. We focus on the modeling aspect in this class. DEVS defines a specification for discrete event models.

System

Hierarchical construction

DEVS models Two kinds of models Atomic Model Coupled Model

DEVS atomic model Elements of an atomic model input events output events state variables state transition functions -External transition -Internal transition -Confluent transition -Output function time advance function

DEVS atomic model formalism A Discrete Event System Specification (DEVS) is a structure M = where X is the set of input values. S is a set of states. Y is the set of output values. δ int : S → S is the internal transition function. δ ext : Q × X b → S is the external transition function, where Q ∈ {(s,e) | s ∈ S, 0 ≤ e ≤ ta(s)} is the total state set, e is the time elapsed since last transition, X b denotes the collection of bags over X. δ con : S × X b → S is the confluent transition function. λ: S → Y b is the output function. ta: S → R + 0, is the time advance function

Ping-Pong Example

How an atomic model works Modeling the lecturing classroom. Internal event, external event, output? Let’s look at an informal description of this “system”: the class lasts for 2 hours … Internal event: class finishes External events: fire alarm, students enter (5 minutes late, 1 hour late?)

Atomic model operation Ports are represented explicitly – there can be any number of input and output ports on which values can be received and sent The time advance function determines the maximum lifetime in a state A bag can contain many elements with possibly multiple occurrences of its elements. Atomic DEVS models can handle bags of inputs and outputs. The external transition function handles bags of inputs by causing an immediate state change, which also may modify the time advance. The output function can generate a bag of outputs when the time advance has expired. The internal transition function is activated immediately after the output function and causes an immediate state change, which also may modify the time advance. The confluent transition function decides the next state in cases of collision between external and internal events.

Atomic model examples

Internal transition/output generation

Response to external input Discussion: Multiple inputs at the same time State transition depends on elapsed time Want to stay at the same state for the rest of the remaining time

Response to simultaneous external input and internal event Note: the output will be generated before the confluent function is executed

Discussion There is no way to generate an output directly from an external input event. An output can only occur just before an internal transition. To have an external event cause an output without delay, we have it “schedule” an internal state with a hold time of zero The output function does not change a model’s state In general, the only way to interact with a model is through input/output ports. An implementation issue -- An atomic model works with any object- oriented classes A coupled model does not have its own states or state transition functions.

Basic atomic variables

Work with simple SISO atomic models passive storage generator binaryCounter ramp

Passive model

Storage model The system responds to its input and store it forever, or until the next input comes along. Input zero signals a query. When that happens, the system sends out an output within a time, response_time, with the last non-zero input.

Generator model The system generates an output every time period defined by period.

Binary counter model The system outputs a “one” for every two “one”s that it receives.

Ramp model

Switch model (with multiple ports)

Generator that can be started/stopped and set period pulseGenr in DEVSJAVA3_0

DEVS coupled model Elements of a coupled model Components Interconnections Internal Couplings External Input Couplings External Output Couplings

DEVS hierarchical modular composition

Switch network

Generator/Processor/Transducer

Exercise Define the DEVS model for the Cellular Automata With Fitness

DEVS-based modeling and simulation References: B. P. Zeigler, Hessam S. Sarjoughian, Introduction to DEVS Modeling and Simulation with JAVA: Developing Component-Based Simulation Models, ipt.zip B. P. Zeigler, H. Preahofer, T. G. Kim, Theory of Modeling and Simulation, New York, NY, Academic Press,