Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Introduction

This functionality allows to simulate the communication of a client with a platform, allowing to define rules for sending this information from the client, in order to make the information arrival flow independent from the processing flow.

Next we will see how to use it.

Create the Simulator

Before creating the simulator, we should have a digital client available with an associated entity.

The steps to follow would be:

  1. Access the Control Panel of our Platform environment (in the example we will use the CloudLab Environment with user Developer: https://lab.onesaitplatform.com/controlpanel)

  2. Select the Option Clients & Digital Twins > Digital Clients Simulations

  3. Within the list of simulations, press the "+" button to create a new one.

  4. It will lead to the Creation form of simulators. In our case, we will use the digital client TEST-Client-Simulator, which has associated the entity TEST_Entidad_Simulador.

  5. Select the digital client, entity and token. Selecting the entity automatically loads the properties that are defined in the entity in the right pane. For the properties, depending on our entity, we will choose the option that best suits us.

Each property has a type combo associated with it. Depending on the option chosen in this combo, one or more fields are activated for its definition, which will allow defining the value generation rule for each property.

In the " Time between inserts (Seconds)" field, the time interval between instance insertions is entered in seconds.

We can also generate the simulation through the JSON button. Using this option it will be allowed to enter a list of instances of the entity (in JSON format) that will be the ones that the simulator will insert.

6. Once everything is complete, we press the Create button checking that our simulator is in the list and active.

While the simulator is active, instances will be generated in the entity.

Check the start of the Simulator

To check the operation of the simulator of a digital client, we will do it through the query tool:

  1. Access Tools > Query Tool

  2. Within the Settings select our entity TEST_Entidad_Simulador

  3. Perform the SELECT COUNT(*) FROM query TEST_Entidad_Simulador and press the Execute Query button. With this consultation we will be able to check the progress of the insertions in the entity.

Stop the simulator

To be able to stop the simulator and not insert more instances in our entity:

  1. Select the Option Clients & Digital Twins > Digital Clients Simulations

  2. Press the Stop button in Options of our simulator. We will check that your status is now inactive.

  3. To verify that it is not still in operation, we will access again the option of Tools > Query Tool

  4. When performing the SELECT COUNT(*) FROM query TEST_Entidad_Simulador and press the Execute Query button on different occasions, we will see that in the result it does not change and the instances that are counted are the same.

  • No labels