The behavior of a given DEVS model is a set of sequences of timed events including null events, called event segments, which make the model move from one state to another within a set of legal states. To define it this way, the concept of a set of illegal state as well a set of legal states needs to be introduced.
In addition, since the behavior of a given DEVS model needs to define how the state transition change both when time is passed by and when an event occurs, it has been described by a much general formalism, called general system [ZPK00]. In this article, we use a sub-class of General System formalism, called timed event system instead.
Depending on how the total state and the external state transition function of a DEVS model are defined, there are two ways to define the behavior of a DEVS model using Timed Event System.Since the behavior of a coupled DEVS model is defined as an atomic DEVS model, the behavior of coupled DEVS class is also defined by timed event system.
Suppose that a DEVS model,
l{M}=<X,Y,S,s0,ta,\deltaext,\deltaint,λ>
\deltaext:Q x X → S
Q=\{(s,te)|s\inS,te\in(T\cap[0,ta(s)])\}
te
T=[0,infty)
Then the DEVS model,
l{M}
l{G}=<Z,Q,Q0,QA,\Delta>
- The event set
.Z=X\cupY\phi
- The state set
whereQ=QA\cupQN
.QN=\{\bar{s}\not\inS\}
- The set of initial states
.Q0=\{(s0,0)\}
- The set of accepting states
QA=l{M}.Q.
- The set of state trajectories
is defined for two different cases:\Delta\subseteqQ x
\Omega Z,[tl,tu] x Q
andq\inQN
. For a non-accepting stateq\inQA
, there is no change together with any even segmentq\inQN
so\omega\in
\Omega Z,[tl,tu] (q,\omega,q)\in\Delta.
For a total state
at timeq=(s,te)\inQA
and an event segmentt\inT
as follows.\omega\in
\Omega Z,[tl,tu] is the null event segment, i.e.\omega
\omega=\epsilon[t,
(q,\omega,(s,te+dt))\in\Delta.
is a timed event\omega
where the event is an input event\omega=(x,t)
,x\inX
(q,\omega,(\deltaext(q,x),0))\in\Delta.
is a timed event\omega
where the event is an output event or the unobservable event\omega=(y,t)
,y\inY\phi
\begin{cases} (q,\omega,(\deltaint(s),0))\in\Delta&rm{if}~te=ta(s),y=λ(s)\\ (q,\omega,\bar{s})&rm{otherwise}. \end{cases}
Computer algorithms to simulate this view of behavior are available at Simulation Algorithms for Atomic DEVS.
Suppose that a DEVS model,
l{M}=<X,Y,S,s0,ta,\deltaext,\deltaint,λ>
Q=\{(s,ts,te)|s\inS,ts\inTinfty,te\in(T\cap[0,ts])\}
ts
s
te
ts
Tinfty=[0,infty)\cup\{infty\}
\deltaext:Q x X → S x \{0,1\}
Q=l{D}
l{G}=<Z,Q,Q0,QA,\Delta>
Computer algorithms to simulate this view of behavior are available at Simulation Algorithms for Atomic DEVS.
- The event set
.Z=X\cupY\phi
- The state set
whereQ=QA\cupQN
.QN=\{\bar{s}\not\inS\}
- The set of initial states
.Q0=\{(s0,ta(s0),0)\}
- The set of acceptance states
.QA=l{M}.Q
- The set of state trajectories
is depending on two cases:\Delta\subseteqQ x
\Omega Z,[tl,tu] x Q
andq\inQN
. For a non-accepting stateq\inQA
, there is no changes together with any segmentq\inQN
so\omega\in
\Omega Z,[tl,tu] (q,\omega,q)\in\Delta.
For a total state
at timeq=(s,ts,te)\inQA
and an event segmentt\inT
as follows.\omega\in
\Omega Z,[tl,tu] is the null event segment, i.e.\omega
\omega=\epsilon[t,
(q,\omega,(s,ts,te+dt))\in\Delta.
is a timed event\omega
where the event is an input event\omega=(x,t)
,x\inX
\begin{cases} (q,\omega,(s',ta(s'),0))\in\Delta&rm{if}~\deltaext(s,ts,te,x)=(s',1),\\ (q,\omega,(s',ts,te))\in\Delta&rm{otherwise,i.e.}~\deltaext(s,ts,te,x)=(s',0).\end{cases}
is a timed event\omega
where the event is an output event or the unobservable event\omega=(y,t)
,y\inY\phi
\begin{cases} (q,\omega,(s',ta(s'),0))\in\Delta&rm{if}~te=ts,y=λ(s),\deltaint(s)=s',\\ (q,\omega,\bar{s})\in\Delta&rm{otherwise}. \end{cases}
View1 has been introduced by Zeigler [Zeigler84] in which given a total state
q=(s,te)\inQ
ta(s)=\sigma
where
\sigma
S=\{(d,\sigma)|d\inS',\sigma\inTinfty\}
S'
When a DEVS model receives an input event
x\inX
te
x
\sigma=\sigma-te
in the external state transition function
\deltaext
Since the number of possible values of
\sigma
s=(d,\sigma)\inS
If we don't care the finite-vertex reachability graph of a DEVS model, View1 has an advantage of simplicity for treating the elapsed time
te=0
\sigma
\deltaext
\Delta
View2 has been introduced by Hwang and Zeigler[HZ06][HZ07] in which given a total state
q=(s,ts,te)\inQ
\sigma
\sigma=ts-te.
When a DEVS model receives an input event
x\inX
te
\deltaext(q,x)=(s',1)
x
\deltaext(q,x)=(s',0)
\sigma
S
|S|