Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Both sides next revision
alvis:null [2013/11/27 06:17]
marcin [Null statement]
— (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. 
- 
-<code> 
-null; 
-</code> 
- 
-**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. 
- 
-{{:alvis:example1.png|}} 
- 
-<code> 
-agent A { 
-  null; 
-} 
-</code> 
- 
- 
-**[[:alvis:manual|Go back]]**