IntegrityCheck

From ObjectVision

Jump to: navigation, search

Contents

Introduction

In modelling, especially when complexity rises, errors are easily made.

The GeoDMS contains ways of assisting modeller's on tracking down and solving errors, think for instance on Unit/metric consistency.

Another useful feature is the configuration of integrity checks for data items

An IntegriyCheck is used to check if an (intermediate) result meets certain requirements, for instance that all values need to be within a certain range or that no missing data may occur.

Examples

No missing data

attribute<city> city_rel (neighborhood) := rlookup(city_code, regions/city/city_code), IntegrityCheck = "isDefined(city_rel)";

The attributes uses the lookup function to find the index numbers of the regions/city domain unit, the configured IntegrityCheck checks if for each neighborhood a city is found.

In such an IntegrityCheck it is allowed to refer to the item for which the IntegrityCheck is configured, the GeoDMS has a workaround to work with such self references.

Recent version

container root: IntegrityCheck = "GeoDmsVersion() >= 7.123"

This IntegriyCheck at the root container of the configuration checks if the configuration is opened in a GeoDMS version 7.123 or later.

Personal tools