...
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:
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)
Select the Option Clients & Digital Twins > Digital Clients Simulations
Within the list of simulations, press the "+" button to create a new one.
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.
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:
Access Tools > Query Tool
Within the Settings select our entity TEST_Entidad_Simulador
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:
Select the Option Clients & Digital Twins > Digital Clients Simulations
Press the Stop button in Options of our simulator. We will check that your status is now inactive.
To verify that it is not still in operation, we will access again the option of Tools > Query Tool
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.
...