External Resources

Updated: 2025-10-20

In GPSS-Plus, we call an external resource any element of the system that is not directly part of the simulation engine, but with which entities can interact.
These resources can act as data sources or as real actuators within the physical or digital environment.

What counts as an external resource?

Typical examples include:

  • A file in the file system (FS).

  • A MySQL table or any database accessible via the network.

  • A physical sensor, such as a temperature or motion detector, connected via OPC-UA or MQTT.

  • A REST API that returns states or accepts commands.

  • An industrial or electronic device, such as a scale, a motor, or a load cell.

In short, everything that lives outside the engine but can influence it is considered an external resource.

One single mechanism for all

GPSS-Plus does not differentiate between a sensor and a database.
Both are treated uniformly through the BRIDGER resource, which acts as a universal access interface.

This enormously simplifies the mental model:
you can replace a real sensor with a MySQL table, or a local file, without rewriting your model, simply by changing the BRIDGER configuration.

Example sensor: OPC-UA Virtual Device

OPC-UA (Open Platform Communications – Unified Architecture) is an industrial standard for structured communication between devices and systems.
It allows for the exchange of nodes, attributes, and events in a secure, hierarchical, and extensible manner.

In GPSS-Plus, you can connect to both a real OPC-UA server and the included virtual device for testing and development without physical hardware.

This virtual device exposes simulated nodes such as:

  • Sensor_Temp_1
  • Motor_X.Status
  • Contador_Piezas (Part_Counter)
  • Puerta_Acceso_A.IsOpen (Access_Door_A.IsOpen)

You will be able to read, write, or subscribe to their changes using the same BRIDGER mechanism.

In the following chapters, we will see how to:

  • Detect events, such as the opening of a simulated door.
  • Access file systems or read-only online services.
  • Execute remote applications or scripts.

Both the virtual OPC-UA device and middleware.js can be freely downloaded and modified to suit your own needs or real hardware.