Author(s): Isabel Martín García.
Version: 1.11#222 (2004/5/24, 13:8:7 CEST)
Version of last change: 1.9#170 (2003/12/4, 17:39:57 CET)
Most of the predicates exported by this module perform some checks to determine whether the arguments attain some conditions or not. In the second case an exception will be thrown. To catch the exceptions you can use the following metapredicates when invoking chartlib exported predicates:
Both metapredicates are defined in the chartlib_errhandle module that comes with this library. Some of the predicates have a Predicate
argument which will be used in case of error to show which chartlib predicate causes the error.
test_format
)test_format
)
equalnumber(X, Y, Predicate)
Test whether the list X
and the list Y
contain the same number of elements.
Usage:
X
is a list.
(basic_props:list/1
)
Y
is a list.
(basic_props:list/1
)
Predicate
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
not_empty(X, Y, Z, Predicate)
Tests whether at least one the lists X
, Y
or Z
are empty.
Usage:
X
is a list.
(basic_props:list/1
)
Y
is a list.
(basic_props:list/1
)
Z
is a list.
(basic_props:list/1
)
Predicate
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
not_empty(X, Y, Predicate)
Tests whether the lists X
or Y
are empty.
Usage:
X
is a list.
(basic_props:list/1
)
Y
is a list.
(basic_props:list/1
)
Predicate
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
check_sublist(List, Number, Number, Predicate)
Tests if the number of elements in each sublist of List
is Number1
or Number2
.
Usage:
List
is a list.
(basic_props:list/1
)
Number
is currently instantiated to an integer.
(term_typing:integer/1
)
Number
is currently instantiated to an integer.
(term_typing:integer/1
)
Predicate
is an atom.
(basic_props:atm/1
)
valid_format(XVector, YVector, BarsAttributes, Predicate)
Tests the following restrictions:
XVector
number of elements is the same as each YVector
sublist number of elements.
YVector
length is equal to BarsAttributes
length.
Usage:
XVector
is a list.
(basic_props:list/1
)
YVector
is a list.
(basic_props:list/1
)
BarsAttributes
is a list.
(basic_props:list/1
)
Predicate
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
vectors_format(XVector, YVectors, LinesAttributes, Predicate)
Tests the following conditions:
YVectors
list and LinesAttributes
list have the same number of elements.
XVector
list and each YVectors
element have the same number of elements.
LinesAttributes
is composed of 5, 3 or 1 elements.
Usage:
XVector
is a list.
(basic_props:list/1
)
YVectors
is a list.
(basic_props:list/1
)
LinesAttributes
is a list.
(basic_props:list/1
)
Predicate
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
valid_vectors(XVector, YVectors, LinesAttributes, Predicate)
Tests the following conditions:
XVector
list, YVectors
list and LinesAttributes
list have the same number of elements.
LinesAttributes
is composed of 5, 3 or 1 element.
Usage:
XVector
is a list.
(basic_props:list/1
)
YVectors
is a list.
(basic_props:list/1
)
LinesAttributes
is a list.
(basic_props:list/1
)
Predicate
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
valid_attributes(BarsAttibuttes, Predicate)
Check if each BarsAttibuttes
element is a list composed of one or four elements.
Usage:
BarsAttibuttes
is a list.
(basic_props:list/1
)
Predicate
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
valid_table(ElementTable, Predicate)
All of the ElementTable
sublists have the same number of elements and are not empty.
Usage:
ElementTable
is a list.
(basic_props:list/1
)
Predicate
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
Go to the first, previous, next, last section, table of contents.