Identifying the simulator from erecord point of vue¶
Introduction¶
The erecord web services used in this part are some of the ‘db’ web services (see Web API ‘db’).
Identifying the ‘wwdm.vpz’ simulator consists in identifying its Id into the erecord databases. It is necessary to know the simulator’s Id when asking for seeing, modifying and simulating it.
In our case, the ‘wwdm.vpz’ simulator is recorded into the erecord databases as a VleVpz (for more, see WWDM into erecord databases).
Step by step¶
You can enter in a webbrowser the URL to list all the models repositories :
http://erecord.toulouse.inra.fr:8000/db/rep/
It shows in particular the ‘recordb’ models repository that hosts our ‘wwdm.vpz’ simulator. We see that the ‘recordb’ models repository’s Id is 2.
* 'recordb' models repository into the erecord databases : ... { "id": 2, "name": "recordb", "verbose_name": "recordb (models)", "path": "/opt/erecord/repositories/recordb", "vlepkg_list": [ { "id": 4, "name": "CallForOptim", "verbose_name": "'CallForOptim' (from 'recordb')", "vlerep": { "id": 2, "name": "recordb", "verbose_name": "recordb (models)", "path": "/opt/erecord/repositories/recordb" } }, { "id": 5, "name": "meteo", "verbose_name": "'meteo' (from 'recordb')", "vlerep": { ... } }, ... { "id": 41, "name": "wwdm", "verbose_name": "Winter Wheat Dry Matter (from 'recordb')", "vlerep": { ... } }, { "id": 45, "name": "GenCSVcan", "verbose_name": "'GenCSVcan' (from 'recordb')", "vlerep": { ... } } ] }, ...
You can then enter in your webbrowser the URL to list all the models of the ‘recordb’ models repository (whose Id is 2) :
http://erecord.toulouse.inra.fr:8000/db/pkg/?rep=2
It shows in particular the ‘wwdm’ model that contains our ‘wwdm.vpz’ simulator. We see that the ‘wwdm’ model’s Id is 41.
* 'wwdm' vle package into the erecord databases : ... { "id": 41, "verbose_name": "Winter Wheat Dry Matter (from 'recordb')", "name": "wwdm", "vlerep": { "id": 2, "name": "recordb", "verbose_name": "recordb (models)", "path": "/opt/erecord/repositories/recordb" }, "vlevpz_list": [ { "id": 266, "name": "wwdm.vpz", "verbose_name": "'wwdm.vpz' (from 'wwdm' (from 'recordb'))", "vlepkg": { "id": 41, "name": "wwdm", "verbose_name": "Winter Wheat Dry Matter (from 'recordb')", "vlerep": { "id": 2, "name": "recordb", "verbose_name": "recordb (models)", "path": "/opt/erecord/repositories/recordb" } } } ] }, ...
You can then enter in a webbrowser the URL to list all the simulators of the ‘wwdm’ model (whose Id is 41) :
http://erecord.toulouse.inra.fr:8000/db/vpz/?pkg=41
It shows in particular our simulator ‘wwdm.vpz’ whose Id is 266.
* simulator 'wwdm.vpz' (vle vpz) into the erecord databases : ... { "id": 266, "verbose_name": "'wwdm.vpz' (from 'wwdm' (from 'recordb'))", "name": "wwdm.vpz", "vlepkg": { "id": 41, "name": "wwdm", "verbose_name": "Winter Wheat Dry Matter (from 'recordb')", "vlerep": { "id": 2, "name": "recordb", "verbose_name": "recordb (models)", "path": "/opt/erecord/repositories/recordb" } } } ...
Note
Command line with cURL to control that the ‘wwdm.vpz’ simulator’s Id is 266 :
Directly¶
You can enter in a webbrowser the URL to list all the simulators :
http://erecord.toulouse.inra.fr:8000/db/vpz/
It shows in particular our simulator ‘wwdm.vpz’ whose Id is 266.
* simulator 'wwdm.vpz' (vle vpz) into the erecord databases : ... { "id": 266, "verbose_name": "'wwdm.vpz' (from 'wwdm' (from 'recordb'))", "name": "wwdm.vpz", "vlepkg": { "id": 41, "name": "wwdm", "verbose_name": "Winter Wheat Dry Matter (from 'recordb')", "vlerep": { "id": 2, "name": "recordb", "verbose_name": "recordb (models)", "path": "/opt/erecord/repositories/recordb" } } } ...
If you knew only the name of your simulator ‘wwdm.vpz’, or only the name of the model ‘wwdm’ (without knowing into which models repository they are), you could search for the words you know (‘wwdm.vpz’, ‘wwdm’…) in the resulting list.
Browsing¶
Maybe you don’t know anything about the models repositories, models, simulators of erecord.
You can enter in a webbrowser the URL to list all the models repositories :
http://erecord.toulouse.inra.fr:8000/db/rep/
You can then browse among the links to discover the different models repositories, models, simulators.
Miscellaneous¶
Some other commands that may be useful
You can enter in a webbrowser the URL to list all the models :
http://erecord.toulouse.inra.fr:8000/db/pkg/
or http://erecord.toulouse.inra.fr:8000/db/pkg/?mode=tree to deploy information
You can enter in a webbrowser the URL to list all the models repositories :
http://erecord.toulouse.inra.fr:8000/db/rep/
or http://erecord.toulouse.inra.fr:8000/db/rep/?mode=tree to deploy information
You can enter in a webbrowser the URL to control that the ‘wwdm’ model’s Id is 41 :
http://erecord.toulouse.inra.fr:8000/db/pkg/41
Note
The equivalent command line with cURL is :
Highlights¶
The ‘wwdm.vpz’ simulator is recorded into the erecord databases as the VleVpz whose Id is 266.
More¶
Next step : Seeing the simulator | Running the simulator | Seeing and running the simulator
Back to : Use case examples