Till has an extensive framework for software development and executing specialized tasks. The components that are used to build these tasks are the system modules.
System module is a predefined module that has its unique properties (variables) and functionalities. It can be used either statically (like static class) or dynamically by creating an instance of it. The static module will be called the module, while the dynamic module will be called the instance module, or simply the instance.
All system modules examples are in the reference under directory “system modules”. For each module there is an extensive demonstration of various scenarios including dedicated projects.
Note:
The following codes use demo module named “module” and are only pseudo-codes for demonstration purposes only. The actual system modules overviews are in their respective overview pages.
Let’s assume that we have module “module” that has property “property”, function “action” without parameters, and function “get” with parameter “parameter” that returns scalar variable.
Accessing properties and functions of a system module is done by dot-notation. For example, to access “property” of “module” we write “module.property”.
Static module demo program:
module 'value'
value module.property
module.action
result module.get 100
- construct static module “module” and set property “property” to “value” (assuming property “property” is the first property of module “module”)
- set variable “value” to “property” of “module”
- activate function “action” of “module”
- set “result” to returned value of calling function “get” of “module” with parameter “parameter” value 100
Dynamic module demo program:
mod module 'value'
value mod.property
mod.action
result mod.get 100
- set instance module variable “mod” as instance of module “module”
- do all operation as before with the instance “mod”
The only reason for working with instances is the ability to work with some modules of the same type without reconstructing the same static module. In terms of computing consumption, proficiency and coding, there is not much difference between working with static or dynamic modules, and it is recommended to work with static modules unless it is more effective to work with dynamic modules (instances).
Till system modules: