Research Article
multiPDEVS: A Parallel Multicomponent System Specification Formalism
Listing 4
Specification of
and
functions in pseudocode for the multiPDEVS fire spread model example.
| variables: | | , , , // equation coefficients | | | function do | | | | do | | if then | | influence | | | else | | | if then | | | end if | | end if | | end | | | return | | end function | | function do | | sum | | | | do | | | | end | | if | | | | else if | | | | ( − )) | | end if | | | if | | | end if | | return | | end function | | function newphase (phase, ) do | | if then | | return burning | | else if | | return warming | | end if | | end function |
|