Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Validation Class Reference

#include <Validation.h>

List of all members.

Static Public Methods

bool checkAnchorOffsetTotal (AG *ag, AnnotationType type)
bool checkAnchorOffsetBounded (AG *ag, AnnotationType type)
bool checkFeatureExists (AG *ag, AnnotationType type, FeatureName featureName)
bool checkFeatureIsAnnotationId (AG *ag, AnnotationType type, FeatureName featureName)
bool checkLinear (AG *ag, AnnotationType type)
bool checkConnected (AG *ag, AnnotationType type)
bool checkCoextensive (AG *ag, AnnotationType type1, AnnotationType type2)
bool checkSpan (AG *ag, AnnotationType spanType, AnnotationType spannedType)


Member Function Documentation

bool Validation::checkAnchorOffsetBounded ( AG * ag,
AnnotationType type ) [static]
 

Check that all anchors of annotations of a given type are bounded by anchors that have an offset, following paths of this type.

Parameters:
ag, an   annotation graph
type, an   annotation type
Returns:
boolean indicating whether all anchors are bounded

bool Validation::checkAnchorOffsetTotal ( AG * ag,
AnnotationType type ) [static]
 

Check that all anchors of annotations of a given type have an offset.

Parameters:
ag, an   annotation graph
type, an   annotation type
Returns:
boolean indicating whether all anchors have an offset

bool Validation::checkCoextensive ( AG * ag,
AnnotationType type1,
AnnotationType type2 ) [static]
 

Check that all annotations of type type1 are coextensive with an annotation of type type2, and vice versa (an existence not uniqueness test).

Parameters:
ag, an   annotation graph
type1, an   annotation type
type2, an   annotation type
Returns:
boolean indicating whether the types are coextensive

bool Validation::checkConnected ( AG * ag,
AnnotationType type ) [static]
 

Check that all annotations of a given type form a connected subgraph.

Parameters:
ag, an   annotation graph
type, an   annotation type
Returns:
boolean indicating whether the set of annotations is connected

bool Validation::checkFeatureExists ( AG * ag,
AnnotationType type,
FeatureName featureName ) [static]
 

Check that all annotations of a given type have the specified feature.

Parameters:
ag, an   annotation graph
type, an   annotation type
featureName, the   name of the feature
Returns:
boolean indicating whether all annotations have the feature

bool Validation::checkFeatureIsAnnotationId ( AG * ag,
AnnotationType type,
FeatureName featureName ) [static]
 

Check that all annotations of a given type have the specified feature and that its value is a valid AnnotationId.

Parameters:
ag, an   annotation graph
type, an   annotation type
featureName, the   name of the feature
Returns:
boolean indicating whether all instances of the feature are AnnotationIds

bool Validation::checkLinear ( AG * ag,
AnnotationType type ) [static]
 

Check that all annotations of a given type form a connected linear sequence.

Parameters:
ag, an   annotation graph
type, an   annotation type
Returns:
boolean indicating whether the set of annotations is linear

bool Validation::checkSpan ( AG * ag,
AnnotationType spanType,
AnnotationType spannedType ) [static]
 

Check that all annotations of type spanType span annotations of type spannedType and that all annotations of type spannedType are spanned by annotations of type spanType.

Parameters:
ag, an   annotation graph
spanType, the   spanning type
spanedType, the   spanned type
Returns:
boolean indicating whether the spanning relationship holds


The documentation for this class was generated from the following file:
Generated at Wed Jul 3 14:56:03 2002 for Annotation Graph API by doxygen1.2.7 written by Dimitri van Heesch, © 1997-2001