ArticleslgStudy

computer science

DEVS

DEVS is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand DEVS rather than just read about it. In short: DEVS, abbreviating discrete event system specification, is a modular and hierarchical formalism for modeling and analyzing general systems that can be discrete event systems which might be described by state transition tables, and continuous state systems which might be described by differential equations, and hybrid continuous state and discrete event systems. DEVS is a timed event system.

DEVS — main illustration
DEVS — illustration

Key takeaways

  • DEVS belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect DEVS to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of DEVS from memory before moving on to harder problems.

Reference excerpt

DEVS, abbreviating discrete event system specification, is a modular and hierarchical formalism for modeling and analyzing general systems that can be discrete event systems which might be described by state transition tables, and continuous state systems which might be described by differential equations, and hybrid continuous state and discrete event systems. DEVS is a timed event system.

History DEVS is a formalism for modeling and analysis of discrete event systems (DESs). The DEVS formalism was invented by Bernard P. Zeigler, who is emeritus professor at the University of Arizona. DEVS was introduced to the public in Zeigler's first book, Theory of Modeling and Simulation in 1976, while Zeigler was an associate professor at University of Michigan. DEVS can be seen as an extension of the Moore machine formalism, which is a finite state automaton where the outputs are determined by the current state alone (and do not depend directly on the input). The extension was done by

associating a lifespan with each state, providing a hierarchical concept with an operation, called coupling, Since the lifespan of each state is a real number (more precisely, non-negative real) or infinity, it is distinguished from discrete time systems, sequential machines, and Moore machines, in which time is determined by a tick time multiplied by non-negative integers. Moreover, the lifespan can be a random variable; for example the lifespan of a given state can be distributed exponentially or uniformly. The state transition and output functions of DEVS can also be stochastic. Zeigler proposed a hierarchical algorithm for DEVS model simulation in 1984 which was published in Simulation journal in 1987. Since then, many extended formalism from DEVS have been introduced with their own purposes: DESS/DEVS for combined continuous and discrete event systems, P-DEVS for parallel DESs, G-DEVS for piecewise continuous state trajectory modeling of DESs, RT-DEVS for realtime DESs, cell-DEVS for cellular DESs, fuzzy-DEVS for fuzzy DESs, dynamic structuring DEVS for DESs changing their coupling structures dynamically, and so on. In addition to its extensions, there are some subclasses such as SP-DEVS and FD-DEVS have been researched for achieving decidability of system properties. Due to the modular and hierarchical modeling views, as well as its simulation-based analysis capability, the DEVS formalism and its variations have been used in many application of engineering (such as hardware design, hardware/software codesign, communications systems, manufacturing systems) and science (such as biology, and sociology)

Formalism

Intuitive example DEVS defines system behavior as well as system structure. System behavior in DEVS formalism is described using input and output events as well as states. For example, for the ping-pong player of Fig. 1, the input event is ?receive, and the output event is !send. Each player, A, B, has its states: Send and Wait. Send state takes 0.1 seconds to send back the ball that is the output event !send, while the Wait state lasts until the player receives the ball that is the input event ?receive. The structure of ping-pong game is to connect two players: player A's output event !send is transmitted to player B's input event ?receive, and vice versa. In the classic DEVS formalism, atomic DEVS captures the system behavior, while coupled DEVS describes the structure of system. The following formal definition is for classic DEVS. In this article, we will use the time base, 𝕋=[0,∞) that is the set of non-negative real numbers; the extended time base,𝕋∞=[0,∞] that is the set of non-negative real numbers plus infinity.

Event segment A segment of a system variable in computing shows a homogenous status of system dynamics over a time period. Here, a homogenous status of a variable is a state which can be described by a set of coefficients of a formula. For example, of homogenous statuses, we can bring status of constant ('ON' of a switch) and linear (60 miles or 96 km per hour for speed). Mathematically, a segment is a function mapping from a set of times which can be defined by a real interval, to the set Z [Zeigler76], [ZPK00], [Hwang13]. A trajectory of a system variable is a sequence of segments concatenated. We call a trajectory constant (respectively linear) if its concatenating segments are constant (respectively linear). An event segment is a special class of the constant segment with a constraint in which the constant segment is either one of a timed event or a null-segment. The event segments are used to define timed event systems such as DEVS, timed automata, and timed Petri nets.

Types The time base of the concerning systems is denoted by 𝕋, and definedas the set of non-negative real numbers. An event is a label that abstracts a change. Given an event set Z, the null event denoted by ϵ∉Z stands for nothing change. A timed event is a pair (t,z) where t∈𝕋 and z∈Z denotes that an event z∈Z occurs at time t∈𝕋. The null segment over time interval [tl,tu]⊂𝕋 is denoted by ϵ[tl,tu] which means nothing in Z occurs over [tl,tu]. A unit event segment is either a null event segment or a timed event. Given an event set Z, concatenation of two unit event segments ω over [t1,t2] and ω′ over [t3,t4] is denoted by ωω′ whose time interval is [t1,t4], and implies t2=t3. An event trajectory (t1,z1)(t2,z2)⋯(tn,zn) over an event set Z and a time interval [tl,tu]⊂𝕋 is concatenation of unit event segments ϵ[tl,t1],(t1,z1),ϵ[t1,t2],(t2,z2),…,(tn,zn), and ϵ[tn,tu] where tl≤t1≤t2≤⋯≤tn−1≤tn≤tu.

Mathematically, an event trajectory is a mapping ω a time period [tl,tu]⊆𝕋 to an event set Z. So we can write it in a function form :

Timed language The universal timed language ΩZ,[tl,tu] over an event set Z and a time interval [tl,tu]⊂𝕋, is the set of all event trajectories over Z and [tl,tu]. A timed language L over an event set Z and a timed interval [tl,tu] is a set of event trajectories over Z and [tl,tu] if L⊆ΩZ,[tl,tu].

… excerpt ends here. Continue reading the full article.

Illustrations

DEVS: Fig. 2: (a) Two-slot toaster (b) FD-DEVS coupled diagram for two-slot toaster
Fig. 2: (a) Two-slot toaster (b) FD-DEVS coupled diagram for two-slot toaster
DEVS: Fig. 3. An event segment and a state trajectory of player A
Fig. 3. An event segment and a state trajectory of player A
DEVS: Fig. 4. An event segment and a state trajectory of a toaster
Fig. 4. An event segment and a state trajectory of a toaster
DEVS: Fig. 5. Reachability Graph of Two-slot Toaster
Fig. 5. Reachability Graph of Two-slot Toaster
DEVS: Fig. 1. Crosswalk system
Fig. 1. Crosswalk system

Worked examples

Example 1 — a first encounter with DEVS

Start with the simplest possible case. Write down what DEVS claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to DEVS before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about DEVS ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of DEVS

In research
DEVS appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses DEVS in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
DEVS is common in secondary-school and first-year university syllabi. It links to neighbouring topics Automata (computation), Formal specification languages, so understanding it makes those chapters shorter.
In everyday life
Look for DEVS outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “DEVS” →

How to study DEVS in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what DEVS means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain DEVS out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is DEVS in simple terms?

DEVS, abbreviating discrete event system specification, is a modular and hierarchical formalism for modeling and analyzing general systems that can be discrete event systems which might be described by state transition tables, and continuous state systems which might be described by differential eq…

Why does DEVS matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study DEVS?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on DEVS.

Tags

  • Automata (computation)
  • Formal specification languages

Keep exploring