Functions for commonly used MP code blocks
Add a right-click context window on the text editor to take parameters for common MP code blocks. For example:
COORDINATE statement Target 1 | Relation | Target 2 send | PRECEDES | receive (from drop down)
Outputs to the text editor the following:
COORDINATE $x: send FROM Sender, $y: receive FROM Receiver DO ADD $x PRECEDES $y; OD;
Multiple target example: Target 1 | Relation | Target 2 send | PRECEDES | receive | does_not_receive (from drop down)
Outputs to the text editor the following:
COORDINATE $x: send FROM Sender, $y: ( receive | does_not_receive ) FROM Receiver DO ADD $x PRECEDES $y; OD;
Same interface can be used to insert component diagram code, state diagram code, probability histogram code and other common reusable code blocks with default and configurable properties.