observable
Observable
Bases: Protocol
Protocol for observations.
observe()
abstractmethod
Observe and return the observation.
Source code in src/flowcean/core/environment/observable.py
17 18 19 20 |
|
TransformedObservable()
Bases: Observable
Base class for observations that carry a transform.
Attributes:
Name | Type | Description |
---|---|---|
transform |
Transform
|
Transform |
Initialize the observable.
Source code in src/flowcean/core/environment/observable.py
32 33 34 35 |
|
with_transform(transform)
Append a transform to the observation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
transform
|
Transform
|
Transform to append. |
required |
Returns:
Type | Description |
---|---|
Self
|
This observable with the appended transform. |
Source code in src/flowcean/core/environment/observable.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
__or__(transform)
Shortcut for with_transform
.
Source code in src/flowcean/core/environment/observable.py
66 67 68 69 70 71 |
|