Skip to content

incremental

IncrementalEnvironment()

Bases: TransformedObservable, Stepable, Iterable[Data]

Base class for incremental environments.

Incremental environments are environments that can be advanced by a step and provide a stream of data. The data can be observed at each step.

Initialize the incremental environment.

Source code in src/flowcean/core/environment/incremental.py
25
26
27
def __init__(self) -> None:
    """Initialize the incremental environment."""
    super().__init__()

num_steps()

Return the number of steps in the environment.

Returns:

Type Description
int | None

The number of steps in the environment, or None if the number of

int | None

steps is unknown.

Source code in src/flowcean/core/environment/incremental.py
39
40
41
42
43
44
45
46
def num_steps(self) -> int | None:
    """Return the number of steps in the environment.

    Returns:
        The number of steps in the environment, or None if the number of
        steps is unknown.
    """
    return None