Commit ed8cd094 authored by Ivan Vanat's avatar Ivan Vanat
Browse files

Merge branch 'feature/custom-discovery-tool' of...

Merge branch 'feature/custom-discovery-tool' of https://gitlab.fi.muni.cz/lexa/nested into feature/custom-discovery-tool
parents 10bc30f8 decd0c57
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -197,10 +197,10 @@ Base directory - _core/tools_
In case of output generator there are two options:
In case of output generator there are two options:


  1. Implement _\_\_str\_\_()_ in output object class. Default output generator will then be assigned to your module which will uses aforementioned method.
  1. Implement _\_\_str\_\_()_ in output object class. Default output generator will then be assigned to your module which will uses aforementioned method.
  2. Implement output generator class which inherits from _output\_generators/base\_output\_generator_ class. This class will be passed whatever is in your _tool.output\_object_ attribute.
  2. Implement output generator class which inherits from _output\_generators/output\_generator\_interface_ interface. This class will be passed whatever is in your _tool.output\_object_ attribute.


#### Registration of the module
#### Registration of the module
After implementation we need to register new module within te greedy nester.
After implementation we need to register new module within TE-greedy-nester.


  * Name the module. Add it to _config\_template.yml_ under _tool\_order_ section. Assigned value is used for default run order of the module (lower - higher priority)
  * Name the module. Add it to _config\_template.yml_ under _tool\_order_ section. Assigned value is used for default run order of the module (lower - higher priority)
  * Lastly, in _core/module\_management/module_manager.py_ create new method which should follow already existing conventions _\_create\_\<module's name\>\_module_ and have no return value (all command line arguments + sequence are stored within _arguments_ attribute). Within the method we create an instance of _core/module\_management/module_ class which consists of four attributes:
  * Lastly, in _core/module\_management/module_manager.py_ create new method which should follow already existing conventions _\_create\_\<module's name\>\_module_ and have no return value (all command line arguments + sequence are stored within _arguments_ attribute). Within the method we create an instance of _core/module\_management/module_ class which consists of four attributes: