DEVS is closed under coupling [Zeigper84] [ZPK00]. In other words, given a coupled DEVS model                     N                , its behavior is described as an atomic DEVS model                     M                . For a given coupled DEVS                     N                , once we have an equivalent atomic DEVS                     M                , behavior of                     M                 can be referred to behavior of atomic DEVS which is based on Timed Event System.
Similar to behavior of atomic DEVS, behavior of the Coupled DEVS class is described depending on definition of the total state set and its handling as follows.
Given a coupled DEVS model                     N        =<        X        ,        Y        ,        D        ,        {                  M                      i                          }        ,                  C                      x            x                          ,                  C                      y            x                          ,                  C                      y            y                          ,        S        e        l        e        c        t        >                , its behavior is described as an atomic DEVS model                     M        =<        X        ,        Y        ,        S        ,                  s                      0                          ,        t        a        ,                  δ                      e            x            t                          ,                  δ                      i            n            t                          ,        λ        >                
where
                    X                 and                     Y                 are the input event set and the output event set, respectively.                    S        =                              ×                          i              ∈              D                                                Q                      i                                   is the partial state set where                               Q                      i                          =        {        (                  s                      i                          ,                  t                      e            i                          )                  |                          s                      i                          ∈                  S                      i                          ,                  t                      e            i                          ∈        (                  T                ∩        [        0        ,        t                  a                      i                          (                  s                      i                          )        ]        )        }                 is the total state set of component                     i        ∈        D                 (Refer to View1 of Behavior of DEVS), where                               T                =        [        0        ,        ∞        )                 is the set of non-negative real numbers.                              s                      0                          =                              ×                          i              ∈              D                                                q                      0            i                                   is the initial state set where                               q                      0            i                          =        (                  s                      0            i                          ,        0        )                 is the total initial state of component                     i        ∈        D                .                    t        a        :        S        →                              T                                ∞                                   is the time advance function, where                                           T                                ∞                          =        [        0        ,        ∞        ]                 is the set of non-negative real numbers plus infinity.Given                     s        =        (        …        ,        (                  s                      i                          ,                  t                      e            i                          )        ,        …        )                ,                    t        a        (        s        )        =        min        {        t                  a                      i                          (        s        i        )        −                  t                      e            i                                    |                i        ∈        D        }        .                                              δ                      e            x            t                          :        Q        ×        X        →        S                 is the external state function. Given a total state                     q        =        (        s        ,                  t                      e                          )                 where                     s        =        (        …        ,        (                  s                      i                          ,                  t                      e            i                          )        ,        …        )        ,                  t                      e                          ∈        (                  T                ∩        [        0        ,        t        a        (        s        )        ]        )                , and input event                     x        ∈        X                , the next state is given by                              δ                      e            x            t                          (        q        ,        x        )        =                  s          ′                =        (        …        ,        (                  s                      i                    ′                ,                  t                      e            i                    ′                )        ,        …        )                where
                    (                  s                      i                    ′                ,                  t                      e            i                    ′                )        =                              {                                                            (                                      δ                                          e                      x                      t                                                        (                                      s                                          i                                                        ,                                      t                                          e                      i                                                        ,                                      x                                          i                                                        )                  ,                  0                  )                                                                      if                                     (                  x                  ,                                      x                                          i                                                        )                  ∈                                      C                                          x                      x                                                                                                                    (                                      s                                          i                                                        ,                                      t                                          e                      i                                                        )                                                                      otherwise                                    .                                                                                        Given the partial state                     s        =        (        …        ,        (                  s                      i                          ,                  t                      e            i                          )        ,        …        )        ∈        S                , let                     I        M        M        (        s        )        =        {        i        ∈        D                  |                t                  a                      i                          (                  s                      i                          )        =        t        a        (        s        )        }                 denote the set of imminent components. The firing component                               i                      ∗                          ∈        D                 which triggers the internal state transition and an output event is determined by
                              i                      ∗                          =        S        e        l        e        c        t        (        I        M        M        (        s        )        )        .                                              δ                      i            n            t                          :        S        →        S                 is the internal state function. Given a partial state                     s        =        (        …        ,        (                  s                      i                          ,                  t                      e            i                          )        ,        …        )                , the next state is given by                              δ                      i            n            t                          (        s        )        =                  s          ′                =        (        …        ,        (                  s                      i                    ′                ,                  t                      e            i                    ′                )        ,        …        )                where
                    (                  s                      i                    ′                ,                  t                      e            i                    ′                )        =                              {                                                            (                                      δ                                          i                      n                      t                                                        (                                      s                                          i                                                        )                  ,                  0                  )                                                                      if                                     i                  =                                      i                                          ∗                                                                                                                    (                                      δ                                          e                      x                      t                                                        (                                      s                                          i                                                        ,                                      t                                          e                      i                                                        ,                                      x                                          i                                                        )                  ,                  0                  )                                                                      if                                     (                                      λ                                                                  i                                                  ∗                                                                                                      (                                      s                                                                  i                                                  ∗                                                                                                      )                  ,                                      x                                          i                                                        )                  ∈                                      C                                          y                      x                                                                                                                    (                                      s                                          i                                                        ,                                      t                                          e                      i                                                        )                                                                      otherwise                                    .                                                                                                            λ        :        S        →                  Y                      ϕ                                   is the output function. Given a partial state                     s        =        (        …        ,        (                  s                      i                          ,                  t                      e            i                          )        ,        …        )                ,                    λ        (        s        )        =                              {                                                            ϕ                                                                      if                                                         λ                                                                  i                                                  ∗                                                                                                      (                                      s                                                                  i                                                  ∗                                                                                                      )                  =                  ϕ                                                                                                  C                                          y                      y                                                        (                                      λ                                                                  i                                                  ∗                                                                                                      (                                      s                                                                  i                                                  ∗                                                                                                      )                  )                                                                      otherwise                                    .                                                                                        Given a coupled DEVS model                     N        =<        X        ,        Y        ,        D        ,        {                  M                      i                          }        ,                  C                      x            x                          ,                  C                      y            x                          ,                  C                      y            y                          ,        S        e        l        e        c        t        >                , its behavior is described as an atomic DEVS model                     M        =<        X        ,        Y        ,        S        ,                  s                      0                          ,        t        a        ,                  δ                      e            x            t                          ,                  δ                      i            n            t                          ,        λ        >                
where
                    X                 and                     Y                 are the input event set and the output event set, respectively.                    S        =                              ×                          i              ∈              D                                                Q                      i                                   is the partial state set where                               Q                      i                          =        {        (                  s                      i                          ,                  t                      s            i                          ,                  t                      e            i                          )                  |                          s                      i                          ∈                  S                      i                          ,                  t                      s            i                          ∈                              T                                ∞                          ,                  t                      e            i                          ∈        (                  T                ∩        [        0        ,                  t                      s            i                          ]        )        }                 is the total state set of component                     i        ∈        D                 (Refer to View2 of Behavior of DEVS).                              s                      0                          =                              ×                          i              ∈              D                                                q                      0            i                                   is the initial state set where                               q                      0            i                          =        (                  s                      0            i                          ,        t                  a                      i                          (                  s                      0            i                          )        ,        0        )                 is the total initial state of component                     i        ∈        D                .                    t        a        :        S        →                              T                                ∞                                   is the time advance function. Given                     s        =        (        …        ,        (                  s                      i                          ,                  t                      s            i                          ,                  t                      e            i                          )        ,        …        )                ,                    t        a        (        s        )        =        min        {                  t                      s            i                          −                  t                      e            i                                    |                i        ∈        D        }        .                                              δ                      e            x            t                          :        Q        ×        X        →        S        ×        {        0        ,        1        }                 is the external state function. Given a total state                     q        =        (        s        ,                  t                      s                          ,                  t                      e                          )                 where                     s        =        (        …        ,        (                  s                      i                          ,                  t                      s            i                          ,                  t                      e            i                          )        ,        …        )        ,                  t                      s                          ∈                              T                                ∞                          ,                  t                      e                          ∈        (                  T                ∩        [        0        ,                  t                      s                          ]        )                , and input event                     x        ∈        X                , the next state is given by                              δ                      e            x            t                          (        q        ,        x        )        =        (        (        …        ,        (                  s                      i                    ′                ,                  t                      s            i                    ′                ,                  t                      e            i                    ′                )        ,        …        )        ,        b        )                where
                    (                  s                      i                    ′                ,                  t                      s            i                    ′                ,                  t                      e            i                    ′                )        =                              {                                                            (                                      s                                          i                                        ′                                    ,                  t                                      a                                          i                                                        (                                      s                                          i                                        ′                                    )                  ,                  0                  )                                                                      if                                     (                  x                  ,                                      x                                          i                                                        )                  ∈                                      C                                          x                      x                                                        ,                                      δ                                          e                      x                      t                                                        (                                      s                                          i                                                        ,                                      t                                          s                      i                                                        ,                                      t                                          e                      i                                                        ,                                      x                                          i                                                        )                  =                  (                                      s                                          i                                        ′                                    ,                  1                  )                                                                              (                                      s                                          i                                        ′                                    ,                                      t                                          s                      i                                                        ,                                      t                                          e                      i                                                        )                                                                      if                                     (                  x                  ,                                      x                                          i                                                        )                  ∈                                      C                                          x                      x                                                        ,                                      δ                                          e                      x                      t                                                        (                                      s                                          i                                                        ,                                      t                                          s                      i                                                        ,                                      t                                          e                      i                                                        ,                                      x                                          i                                                        )                  =                  (                                      s                                          i                                        ′                                    ,                  0                  )                                                                              (                                      s                                          i                                                        ,                                      t                                          e                      i                                                        )                                                                      otherwise                                                                                                          and
                    b        =                              {                                                            1                                                                      if                                     ∃                  i                  ∈                  D                  :                  (                  x                  ,                                      x                                          i                                                        )                  ∈                                      C                                          x                      x                                                        ,                                      δ                                          e                      x                      t                                                        (                                      s                                          i                                                        ,                                      t                                          s                      i                                                        ,                                      t                                          e                      i                                                        ,                                      x                                          i                                                        )                  =                  (                                      s                                          i                                        ′                                    ,                  1                  )                                                                              0                                                                      otherwise                                    .                                                                                        Given the partial state                     s        =        (        …        ,        (                  s                      i                          ,                  t                      s            i                          ,                  t                      e            i                          )        ,        …        )        ∈        S                , let                     I        M        M        (        s        )        =        {        i        ∈        D                  |                          t                      s            i                          −                  t                      e            i                          =        t        a        (        s        )        }                 denote the set of imminent components. The firing component                               i                      ∗                          ∈        D                 which triggers the internal state transition and an output event is determined by
                              i                      ∗                          =        S        e        l        e        c        t        (        I        M        M        (        s        )        )        .                                              δ                      i            n            t                          :        S        →        S                 is the internal state function. Given a partial state                     s        =        (        …        ,        (                  s                      i                          ,                  t                      s            i                          ,                  t                      e            i                          )        ,        …        )                , the next state is given by                              δ                      i            n            t                          (        s        )        =                  s          ′                =        (        …        ,        (                  s                      i                    ′                ,                  t                      s            i                    ′                ,                  t                      e            i                    ′                )        ,        …        )                where
                    (                  s                      i                    ′                ,                  t                      s            i                    ′                ,                  t                      e            i                    ′                )        =                              {                                                            (                                      s                                          i                                        ′                                    ,                  t                                      a                                          i                                                        (                                      s                                          i                                        ′                                    )                  ,                  0                  )                                                                      if                                     i                  =                                      i                                          ∗                                                        ,                                      δ                                          i                      n                      t                                                        (                                      s                                          i                                                        )                  =                                      s                                          i                                        ′                                    ,                                                                              (                                      s                                          i                                        ′                                    ,                  t                                      a                                          i                                                        (                                      s                                          i                                        ′                                    )                  ,                  0                  )                                                                      if                                     (                                      λ                                                                  i                                                  ∗                                                                                                      (                                      s                                                                  i                                                  ∗                                                                                                      )                  ,                                      x                                          i                                                        )                  ∈                                      C                                          y                      x                                                        ,                                      δ                                          e                      x                      t                                                        (                                      s                                          i                                                        ,                                      t                                          s                      i                                                        ,                                      t                                          e                      i                                                        ,                                      x                                          i                                                        )                  =                  (                                      s                    ′                                    ,                  1                  )                                                                              (                                      s                                          i                                        ′                                    ,                                      t                                          s                      i                                                        ,                                      t                                          e                      i                                                        )                                                                      if                                     (                                      λ                                                                  i                                                  ∗                                                                                                      (                                      s                                                                  i                                                  ∗                                                                                                      )                  ,                                      x                                          i                                                        )                  ∈                                      C                                          y                      x                                                        ,                                      δ                                          e                      x                      t                                                        (                                      s                                          i                                                        ,                                      t                                          s                      i                                                        ,                                      t                                          e                      i                                                        ,                                      x                                          i                                                        )                  =                  (                                      s                    ′                                    ,                  0                  )                                                                              (                                      s                                          i                                                        ,                                      t                                          s                      i                                                        ,                                      t                                          e                      i                                                        )                                                                      otherwise                                    .                                                                                                            λ        :        S        →                  Y                      ϕ                                   is the output function. Given a partial state                     s        =        (        …        ,        (                  s                      i                          ,                  t                      s            i                          ,                  t                      e            i                          )        ,        …        )                ,                    λ        (        s        )        =                              {                                                            ϕ                                                                      if                                                         λ                                                                  i                                                  ∗                                                                                                      (                                      s                                                                  i                                                  ∗                                                                                                      )                  =                  ϕ                                                                                                  C                                          y                      y                                                        (                                      λ                                                                  i                                                  ∗                                                                                                      (                                      s                                                                  i                                                  ∗                                                                                                      )                  )                                                                      otherwise                                    .                                                                                        Since in a coupled DEVS model with non-empty sub-components, i.e.,                               |                D                  |                >        0                , the number of clocks which trace their elapsed times are multiple, so time passage of the model is noticeable.
For View1Given a total state                     q        =        (        s        ,                  t                      e                          )        ∈        Q                 where                     s        =        (        …        ,        (                  s                      i                          ,                  t                      e            i                          )        ,        …        )                
If unit event segment                     ω                 is the null event segment, i.e.                     ω        =                  ϵ                      [            t            ,            t            +            d            t            ]                                  , the state trajectory in terms of Timed Event System is
                    Δ        (        q        ,        ω        )        =        (        (        …        ,        (                  s                      i                          ,                  t                      e            i                          +        d        t        )        ,        …        )        ,                  t                      e                          +        d        t        )        .                For View2Given a total state                     q        =        (        s        ,                  t                      s                          ,                  t                      e                          )        ∈        Q                 where                     s        =        (        …        ,        (                  s                      i                          ,                  t                      s            i                          ,                  t                      e            i                          )        ,        …        )                
If unit event segment                     ω                 is the null event segment, i.e.                     ω        =                  ϵ                      [            t            ,            t            +            d            t            ]                                  , the state trajectory in terms of Timed Event System is
                    Δ        (        q        ,        ω        )        =        (        (        …        ,        (                  s                      i                          ,                  t                      s            i                          ,                  t                      e            i                          +        d        t        )        ,        …        )        ,                  t                      s                          ,                  t                      e                          +        d        t        )        .                - The behavior of a couple DEVS network whose all sub-components are deterministic DEVS models can be non-deterministic if                     S        e        l        e        c        t        (        I        M        M        (        s        )        )                 is non-deterministic.