3.3 IF-COMMON

The module IF-COMMON contains helper objects that are used by several other modules. These are objects for exception handling, object oriented containers to hold certain data as well as various constant default values and parameters necessary for other modules. Further, the module IF-COMMON encapsulates source code that exists in the modules IF-IMC API and IF-IMV API redundantly (cf. section 3.1 and section 3.2), to ease the implementation of the other modules. Therefor the module adapts the class named TNCException contained in the modules IF-IMC API and IF-IMV API, in a way that the other modules do not need to distinguish between the two modules for the handling of exceptions. This approach is also used for the constant default values that where explained briefly with the example of the numeric identifiers used to describe the state of a connection, while an integrity assessment is running. Although not all constant default values are redundant, the class TNCConstants is contained in both modules IF-IMC API and IF-IMV API and holds partially redundant values. These redundant values are encapsulated by the module IF-COMMON using an additional layer of abstraction, so that only one set of distinct values is available to the other modules. Thus, a differentiation between the modules IF-IMC API and IF-IMV API is not necessary beyond the module IF-COMMON.