Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionBoth sides next revision | ||
alvis:out [2013/12/15 00:05] marcin created | — (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Out statement ====== | ||
- | An agent can communicate with its outside world using **ports**. Each port can be used both as an input or an output one. The current role of a port is determined by two factors: | ||
- | - Connections to the port in the corresponding communication diagram -- e.g. if a port '' | ||
- | - Statements used in the code layer -- e.g. if a port '' | ||
- | |||
- | Any communication through a port can be a **pure communication** or a **value passing combination**. | ||
- | |||
- | In case of a **pure communication**, | ||
- | |||
- | In case of a **value passing communication**, | ||
- | |||
- | The **out** statement is a single-step statement. | ||
- | |||
- | < | ||
- | out p; | ||
- | out p x; | ||
- | out p v; | ||
- | </ | ||
- | |||
- | **Listing 1. ** In statement syntax: '' | ||
- | |||
- | |||
- | **[[: |