Instance constant

« Back to Glossary Index

Instance constants – are defined and will typically have a default value assigned in the component type, but the final value can be changed in the specific instance of the component type.
Instance constants can have two forms:
1 - only accessible from within the defining type = TRUE - meaning that decendants cannot use it in methods
2- only accessible from within the defining type = FALSE - meaning that decendants can use it in methods

Example 1: a regulator component type has an instance constant defining the regulating interval. A project engineer needs two regulators with two different regulating intervals
and can create two instances of the same regulator component type by adding it two times into his assembly and then set the regulating interval individually on the two,
to fit the requirements/specifications.

Example 2: a process engineer adds a register subcomponent instance to his component type and sets which variable/constant to expose in the register.

See also: Type constant

« Back to Glossary Index