LTPDA Toolbox™ | contents | ![]() ![]() |
LTPDA provides a mechanism for storing typical object constructions as built-in models. This is supported for all user-object classes. The toolbox comes already supplied with some built-in models and it is, relatively straightforward to add your own built-in models.
Built-in models are added to a new or existing LTPDA Extension model (See help section "LTPDA Extension Modules" for more details).
To make a new built-in model in an extension module, you can use the utility function:
>> utils.modules.makeBuiltInModel('/path/to/extension/module/', ... 'user-class-name', ... 'model-name')
The utility makes a template model file which can then be edited. It also creates a standard unit-test class and runs the tests. You can also run the tests yourself using the ltpda_test_runner class.
Here's an example:
>> utils.modules.makeBuiltInModel('/home/tester/MyExtensionModule/', ... 'ao', ... 'myNewAOModel')
To run the tests yourself (after doing further edits to the model, for example), you can do:
>> ltpda_test_runner.RUN_TESTS('test_ao_model_myNewAOModel')
![]() |
Simulation/modelling | Generating model noise | ![]() |
©LTP Team