Prototypes and instances
If the PROMOTIC application contains a large number of similar objects or their logical groups then it can be handy to use
Prototype (template) and
Instance (evaluated copy of the template) objects.
Each instance of the
PmaPrototype object (of the
PmgPrototype object) differs "only" with the values of its
parameters of the Pma object (
parameters of the Pmg object).
The Prototype (both application and graphics) can also contain the instances of other objects.
The prototypes (
Pma and
Pmg) can be placed:
- Locally (
local prototype)
- The
PmgPrototype object is in this case located in the
Pmg object tree in branch
/#Prototypes.
- Globally (
global prototype).
- The
PmaPrototype object is in this case located in the
Pma object tree in branch
/#Global/PmaPrototypes.
- The
PmgPrototype object is in this case located in the
Pma object tree in branch
/#Global/PmgPrototypes.
History:
Pm9.00.10: Bugfixes and improvements of local and global
Pma and
Pmg prototypes.
- When renaming the prototype it is possible to choose whether the name of the prototype is to be changed also in all its instances
- when removing the prototype it is possible to choose whether all instances are to be removed together with the removal of the prototype
- In the prototype selection window, it is now possible to create new local/global Pma or Pmg prototype
Pm8.02.00: New objects
PmgPrototype and
PmgInstance have been created.
These objects allow to create a set of common items (of instances) based on a common template (prototype). The instances may differ only by position,
parameters and
variables - everything else is defined in the prototype.
The basic advantage is that by modifying the prototype all its instances are also modified. The comcept is similar as for the objects
PmaInstance and
PmaPrototype.
Pm8.00.06: New objects
PmaPrototype and
PmaInstance have been created.
These objects allow to create prototypes and instances and can significantly simplify creation and maintenance of the application in cases when multiple similar object subtrees are present (e.g. if there are multiple boilers in the biler room containing similar data).
In one prototype (the
PmaPrototype object representing for example a boiler) the complete structure of objects and subobjects is created and the
PmaInstance objects then represent the specific usage of the template (i.e. will represent for example Boiler1, Boiler2, ...).