Internal and External Communication
This topic describes the concepts of internal and external communication.
Internal communication is the communication between internal components of a model. External communication is the communication between a component and the environment.
Internal Communication
All communications transit through the middleware. The figure below shows the
communication between two components. Component A always communicates with component B
through the middleware. 
For a sender/receiver communication, the communication sequence is the following:
- During its execution, component A writes data D on its output port. Data D is stored in a buffer in the applicative middleware.
- During its execution, component B reads data D on its input port. Data D is extracted from the buffer in the applicative middleware.
For a client/server communication, the communication sequence is the following:
- During its execution, component A (client) invokes component B (server) through its output port. Calling the server begins its execution.
- Component B (server) executes itself to compute data and responds to the client.
- Component A (client) gets the execution result and continues its execution process.
External Communication
As shown in the figure below, a component can communicate with its environment by reading
data from outside and writing data to outside. Contrary to internal communication, this
communication is target-dependent.