You can connect a network port to a flow port on a Part of
a diagram that has an ArchitectureDiagram stereotype.
Purpose
The MicroC network port types are:
- inNetworkPort— connects to an input signal
- outNetworkPort— connects to an output signal
inNetworkPort
The Features window for an
inNetworkPort has:
- Stereotype - disabled
- Type - It must match the type of the Flowport that
is linked with.
- Network Access
- Get API: - The application programming
interface (API) to access the external signal.
- Polling Mode :
- Periodic - Defines a polling rate, that
uses the timerManager to execute a timed action that
performs the polling call. When selected, the polling rate must be
defined. The Periodic Input Network Ports define their Polling rate.
The Polling rate defines the rate in which the input
“getter” calls are executed, and the internal values are updated.
The implementation of the polling must be created by using a new mxf
artifact called TimedAction.
- The timerManager must have a table of timed actions
and their pending time.
- Each time the timerManager takes control, it scans
its table and run the actions that had expired.
- The Table is generated as a static data.
- Synchronous - Polling values with the execution
of the Active (owner) code body.
outNetworkPort
The Features window for an
outNetworkPort has:
- Stereotype - disabled
- Type - It must match the type of the Flowport that
is linked with.
- - The application programming interface (API) to access
the external signal.
The following image shows an example of an active class with flowports.