|
PetriScript is a modelling language for Petri nets, designed by (Alexandre Hamez ) and (Xavier Renault ). The CPN-AMI platform provides many tools to work on Petri nets, such as verifying or model-checking tools. It was easily possible to graphically design simple Petri nets with (Macao ), but various works made internally at (LIP6 ) reveal that it was needed to automate such task. Therefore, PetriScript has been designed to provide some facilities in modelling places-transition and coloured Petri nets within the CPN-AMI platform. Its main purpose is to automate modelling operations on Petri nets such as merging, creating, and connecting nodes. Thus, it supports almost everything needed like macros, loops control, lists, string and arithmetic expressions, and avoids to the maximum the intervention of the user. Its syntax is more or less Ada-like. For example, the following script produces a FIFO with three sections: define(FIFO_SIZE,3) define(FIFO_BASE_X,100) define(FIFO_BASE_Y,100) define(FIFO_STEP,120) int $wave := 0; for $wave in 1..FIFO_SIZE loop 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Petriscript」の詳細全文を読む スポンサード リンク
|