Physical Scenario Dummy¶
- class PhysicalScenarioDummy(seed=None, devices=None)[source]¶
Bases:
SimulationScenario
,PhysicalScenario
[PhysicalDeviceDummy
],Serializable
Physical scenario for testing and demonstration.
- Parameters:
default_channel (Channel, optional) – Default channel model to be assumed for all device links. If not specified, the default_channel is set to an ideal distortionless channel model.
noise_level (NoiseLevel, optional) – Global noise level of the scenario assumed for all devices. If not specified, the noise configuration is device-specific.
noise_model (NoiseModel, optional) – Global noise model of the scenario assumed for all devices. If not specified, the noise configuration is device-specific.
- 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.