- Discovering examples
- Building compact discrete domains
- Introduction to input file
- Plugins and input files
- Initialize project
- Initialize your first custom plugin
- Implement your first custom plugin
- Run your first project
- granoo-viewer usage
- Inputs/Outputs with GranOO
- Building a very simple tensile test
- Using numerical sensor
This page describes how to get a plugin from another plugin (C++ only)
If you follow the tutorial, you know that a granOO’s simulation uses plugins that are called and organized from an input file. In some cases, for complex simulations, you may need to communicate between the plugins. It means that you need to catch a plugin instance from another plugin instance.
Plugins are class instances. The
Core::Problem singleton class manages the plugin instances.
It is in charge to index, to store, to launch… these plugins. So, if you want to catch a given
plugin, the Problem singleton class is the right interlocutor. The following c++ code block
shows how to retrieve a given plugin.