This Page

declarations.program

Defines declaration classes for entire programs.

class ProgramDeclaration(relationDeclarations)[source]

Defines a program declaration, which consists of a series of individual relation constraint declarations.

__init__(relationDeclarations)[source]

Initializes a new program from the provided list of relation constraint declaration objects.

execute()[source]

Executes the program, creating and configuring an FBConstraintRelation for each relation declaration in the program.

Returns:a dictionary which maps the names of the relation declarations to their corresponding constraint objects.
Raises :an ExecutionError if any problems are encountered at runtime.