domain
Domain(feature_name)
Bases: ABC
An abstract base class for describing the value domain for a feature.
Initialize the domain.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
feature_name
|
str
|
The name of the feature the domain belongs to. |
required |
Source code in src/flowcean/testing/domain/domain.py
9 10 11 12 13 14 15 16 17 18 | |
get_value()
abstractmethod
Get a random value from the domain for the feature.
Source code in src/flowcean/testing/domain/domain.py
20 21 22 | |
__call__()
Get a random value from the domain for the feature.
Source code in src/flowcean/testing/domain/domain.py
24 25 26 | |
set_seed(seed)
Set the seed for the random number generator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
seed
|
int
|
The seed to set. |
required |
Source code in src/flowcean/testing/domain/domain.py
28 29 30 31 32 33 34 35 36 37 38 | |