Managing consistency checks
Presentation
Objecteering provides over 200 powerful consistency checks, which guarantee the quality and coherence of the model produced.
However, in some modeling situations you may prefer to have a certain degree of flexibility with regard to the consistency checks applied to your model, and for this reason, certain Objecteering consistency checks are removable.
Consistency check management services
setBuildInConsistencyCheckOff()
This call is used to deactivate optional consistency checks. It has no parameters and sends back no values. This call is only accepted during a session, since it modifies a saved value.
isBuildInConsistencyCheckOn()
This call indicates whether or not optional consistency checks are present.
Example
This simple example traces the installation of an MDAC.
boolean
Object:default#external#Code#MyGen#IsCheck ()
{
StdOut.write("test
the presence of checks", NL);
return(isBuildInConsistencyCheckOn());
}
boolean
Object:default#external#Code#MyGen#CheckOff ()
{
StdOut.write("Checks
prevented, NL);
setBuildInConsistencyCheckOff();
return(true);
}