finam.IInput#
- class finam.IInput[source]#
Bases:
ABCInterface for input slots.
- Attributes:
infoInfo: The input’s data info.
is_staticWhether the input is static
nameInput name.
needs_pullbool: if the input needs pull.
needs_pushbool: if the input needs push.
sourceGet the input’s source output or adapter
Methods
exchange_info(info)Exchange the data info with the input's source.
ping()Pings upstream to inform outputs about the number of connected inputs.
pull_data(time, target)Retrieve the data from the input's source.
source_updated(time)Informs the input that a new output is available.
- abstract property name#
Input name.
- abstract property is_static#
Whether the input is static
- abstract property source#
Get the input’s source output or adapter
- Returns:
The input’s source.
- Return type:
- abstractmethod source_updated(time)[source]#
Informs the input that a new output is available.
- Parameters:
time (
datetime) – Simulation time of the notification.
- abstractmethod pull_data(time, target)[source]#
Retrieve the data from the input’s source.
- Parameters:
- Returns:
Data set for the given simulation time.
- Return type: