...
Next we will see how to use it.
Development
Create the Simulator
Before creating the simulator, we you should have a digital client available with an associated entity.
...
The steps to follow next would be:
Access the Control Panel of our Platform environment (in the example
...
, 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.
...
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.
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 “Time between inserts (Seconds)" ” field, the time interval between instance insertions is entered in seconds.
...
We You can also generate the simulation through the JSON button. Using this option it , 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, we press the Create button checking that our .
7. Check that the simulator is in the list and active.
...
While When the simulator is active, instances will be generated in the entity.
Check the start of the Simulator
To How to check the operation of the simulator of a digital client, we : You will do it through the query tool:
Access Tools > Query Tool option.
Within the Settings, select
...
your entity TEST_Entidad_Simulador.
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 our the entity:
Select the Option Clients & Digital Twins > Digital Clients Simulations.
Press the Stop button in Options of
...
your simulator.
...
Check that the status of your simultor is now inactive.
To verify that it is not still in operation,
...
access again the option of Tools > Query Tool.
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.
...