The creation of the structure of DEVS model corresponding to the PN is performed by algorithml which takes as input a PN = (P, T, PRE, POST, MO).
2 illustrates the elementary transformations of PN components to their equivalent objects in DEVS.
Algorithm 1 : Transformation PN To DEVS Main_PN_DEVS Input PN= (P,T,PRE,POST,M0) Output CDEVS//coupled model Begin : Create CDEVS as coupled DEVS model//void model For all transition i do create TDEVSi as atomic DEVS model end for for all places j do create PDEVSj as atomic DEVS model end for for all PDEVSj do add 'InitPj' as intput port and join it to CDEVS.
The dynamic of generated DEVS model is controlled by the functions of DEVS formalism which are [delta]int, [delta]ext and [lambda].
5 illustrates the corresponding coupled DEVS model.