Physical Scenario Dummy#
- class PhysicalScenarioDummy(seed=None, devices=None)[source]#
Bases:
SimulationScenario
,PhysicalScenario
[PhysicalDeviceDummy
],Serializable
Physical scenario for testing and demonstration.
- Parameters:
- add_device(device)[source]#
Add a new device to the scenario.
- Parameters:
device (Device) – New device to be added to the scenario.
- Raises:
ValueError – If the device already exists.
RuntimeError – If the scenario is not in default mode.
- Return type:
- new_device(*args, **kwargs)[source]#
Add a new device to the simulation scenario.
- Returns:
Newly added simulated device.
- Return type:
- receive_devices(impinging_signals=None, cache=True, trigger_realizations=None)[source]#
Receive over all simulated scenario devices.
Internally calls
SimulationScenario.process_inputs()
andScenario.receive_operators()
.- Parameters:
impinging_signals (List[Union[DeviceInput, Signal, Iterable[Signal]]]) – List of signals impinging onto the devices.
cache (bool, optional) – Cache the operator inputs at the registered receive operators for further processing. Enabled by default.
trigger_realizations (Sequence[TriggerRealization], optional) – Sequence of trigger realizations. If not specified, ideal triggerings are assumed for all devices.
- Return type:
Returns: List of the processed device input information.
- Raises:
ValueError – If the number of impinging_signals does not match the number of registered devices.