28             Script Editor

 

 

An advanced user of Cell Illustrator may need to write a custom function to specify changes of a property value. With the Script Editor, you can write a Pnuts to define:

-         Threshold, Speed, Updater, and Firing Rule property of a connector,

-         Activity, Speed and Delay  of processes as well as

-         Initial Value of entities.

 

Pnuts is a script language for Java environment. The Pnuts Language Reference can be downloaded from the project website at https://pnuts.dev.java.net/.

 

At the top left in the dialog is a set of function buttons. At the top right is a table containing all entities in the model.  In the middle, a script pad is placed where you can edit a script either by clicking on the function buttons and selecting entities from the table, or by typing in text. You can check whether the syntax of your script is correct by pressing the Check button. Error messages will appear in the bottom panel. Remember to press the Return key at the end of the script. The OK button saves the changes and closes the window. The Cancel button closes the window without saving any changes.