Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Next we will see how to use it.

Development

Create the Simulator

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

...

The steps to follow next would be:

  1. Access the Control Panel of our Platform environment (in the example, 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. Access the form screen to create the simulator. In this case, use the digital client TEST-Cliente-Simulador, 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 your entity, choose the option that best suits it.

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.

...

You can also generate the simulation through the JSON button. Using this option, you 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, press the Create button.

7. Check that the simulator is in the list and active.

...

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

Check the start of the Simulator

How to check the operation of the simulator of a digital client: You will do it through the query tool:

  1. Access Tools > Query Tool option.

  2. Within the Settings, select your entity TEST_Entidad_Simulador.

  3. Perform the SELECT COUNT(*) FROM TEST_Entidad_Simulador query and press the Execute Query button. With this consultation you 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 the entity:

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

  2. Press the Stop button in Options of your simulator. Check that the status of your simultor is now inactive.

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

  4. When performing the SELECT COUNT(*) FROM query TEST_Entidad_Simulador and then repeatedly press the Execute Query button, you will see that the result does not change and the counted instances are the same.

...