This module represents a process applied to the entities of the system. The duration of the process is calculated by an external model, also called external process.
The module can perform four actions:
External Ports
Each time an entity has to be processed, this module sets its entityStart port with the value of the serial number of that entity.
The external process has to check the changes in the values of that port, in order to detect new entity arrivals and start processing them.
When the external process finishes with the entity, it has to set the entityEnd port of the ExternalProcess module with the serial number of the entity that just finished the process.
The module detects the finished entity and sends it to the next flowchart module.
Outputs
A counter stores the number of received and sent entities.
A DStat block records the statistics about the number of entities in the queue.
Tally statistics are calculated for the waiting time and the processing time of each entity.
All these values are written to the file ARENALIB_RESULTS.txt.
model ExternalProcess = SRC.BasicProcess.ExternalProcess;