Skip to content

Glossary

Generates a glossary with detailed information of all predicates using their predicate documentation. See the predicate documentation section for more details.

Each predicate generates a section in the TOC.

Each predicate section includes the references for each file where the predicate was used.

Example


Glossary

initial(X, Y, V)

Describes initial values of the sudoku board. The value of cell (X,Y) is V.

Parameter Description
X

the row of the cell

Y

the column of the cell

V

the value of the cell

References
57
sudoku(X,Y,V) :- initial(X,Y,V).


sudoku(X, Y, V)

Describes a sudoku board. The value of cell (X,Y) is V.

Parameter Description
X

the row of the cell

Y

the column of the cell

V

the value of the cell

References
50
1 { sudoku(X,Y,V) : val(V) } 1 :- pos(X,Y).
53
:- sudoku(X,Y,V), sudoku(X',Y,V), X != X'.
54
:- sudoku(X,Y,V), sudoku(X,Y',V), Y != Y'.
55
:- sudoku(X,Y,V), sudoku(X',Y',V), subgrid(X,Y,S), subgrid(X',Y',S), (X,Y)!=(X',Y').
57
sudoku(X,Y,V) :- initial(X,Y,V).


pos(X, Y)

Describes a cell (X,Y) in the sudoku board.

Parameter Description
X

the row of the cell

Y

the column of the cell

References
7
pos(X,Y) :- val(X), val(Y).
47
subgrid(X,Y,(((X-1)/dim)*dim+((Y-1)/dim))) :- pos(X,Y).
50
1 { sudoku(X,Y,V) : val(V) } 1 :- pos(X,Y).


subgrid(A, B, C)
References
47
subgrid(X,Y,(((X-1)/dim)*dim+((Y-1)/dim))) :- pos(X,Y).
55
:- sudoku(X,Y,V), sudoku(X',Y',V), subgrid(X,Y,S), subgrid(X',Y',S), (X,Y)!=(X',Y').


val(V)

Describes a possible value V for a cell.

Parameter Description
V

the value

References
6
val(1..dim*dim).
7
pos(X,Y) :- val(X), val(Y).
50
1 { sudoku(X,Y,V) : val(V) } 1 :- pos(X,Y).


::: examples/sudoku/encoding.lp
    handler: asp
    options:
        glossary: true
        start_level: 3

Configuration options

The option glossary can be further customized with the following options:

  • include_references Boolean indicating if each predicate documentations should include a section with the references. Defaults to True.
  • include_navigation Boolean indicating if each predicate should generate a navigation entry displayed in the menu. Defaults to True.

Predicate inclusion/exclusion (e.g. hidden or undocumented predicates) is configured globally via predicate_info.

Example


Glossary

initial(X, Y, V)

Describes initial values of the sudoku board. The value of cell (X,Y) is V.

Parameter Description
X

the row of the cell

Y

the column of the cell

V

the value of the cell


sudoku(X, Y, V)

Describes a sudoku board. The value of cell (X,Y) is V.

Parameter Description
X

the row of the cell

Y

the column of the cell

V

the value of the cell


pos(X, Y)

Describes a cell (X,Y) in the sudoku board.

Parameter Description
X

the row of the cell

Y

the column of the cell


val(V)

Describes a possible value V for a cell.

Parameter Description
V

the value


::: examples/sudoku/encoding.lp
    handler: asp
    options:
        glossary:
            include_references: false
        predicate_info:
            include_undocumented: false
        start_level: 3