IntegerDomain

class pqp.data.IntegerDomain(values)

Bases: DiscreteDomain

Methods Summary

check_int(val)

Checks whether a value is an integer

describe_assumptions()

Returns a human readable description of assumptions made about the domain

get_cardinality()

Calculates the cardinality of the domain

get_values()

Returns a list of all possible values in the domain

Methods Documentation

check_int(val)

Checks whether a value is an integer

describe_assumptions()

Returns a human readable description of assumptions made about the domain

get_cardinality()

Calculates the cardinality of the domain

Returns:

the number of possible values in the domain

Return type:

int

get_values()

Returns a list of all possible values in the domain

Returns:

all possible values in the domain

Return type:

list