Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionBoth sides next revision | ||
alvis:null [2013/11/27 06:13] marcin created | — (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Null statement ====== | ||
- | |||
- | The Null statement is a single-step statement used when it is necessary to put at least one statement into curly brackets, but we do not want to perform any particular instruction. | ||
- | |||
- | < | ||
- | null; | ||
- | </ | ||
- | |||
- | **Listing 1. ** Null statement syntax | ||
- | |||
- | ===== Example ===== | ||
- | |||
- | An Alvis model must contain at least one active agent. Each active agent pun into the graphical layer must be define in the code layer and vice versa. The simplest model contains one active agent, without ports and with code that consists of a single null statement. | ||
- | |||
- | {{: | ||
- | |||
- | < | ||
- | agent A { | ||
- | null; | ||
- | } | ||
- | </ | ||
- | |||
- | |||
- | **[[: |