Device Input

Inheritance diagram of hermespy.core.device.DeviceInput
class DeviceInput(impinging_signals)[source]

Bases: Serializable

Receive information required by devices.

Parameters:

impinging_signals (Signal | Sequence[Signal]) – Signals to be processed by the device.

classmethod Deserialize(process)[source]

Deserialize an object’s state.

Objects cannot be deserialized directly, instead a Factory must be instructed to carry out the deserialization process.

Parameters:

process (DeserializationProcess) – The current stage of the deserialization process. This object is generated by the Factory and provides an interface to deserialization methods supporting multiple backends.

Return type:

DeviceInput

Returns:

The deserialized object.

serialize(process)[source]

Serialize this object’s state.

Objects cannot be serialized directly, instead a Factory must be instructed to carry out the serialization process.

Parameters:

process (SerializationProcess) – The current stage of the serialization process. This object is generated by the Factory and provides an interface to serialization methods supporting multiple backends.

Return type:

None

property impinging_signals: Sequence[Signal]

Signals to be processed by the device.

Returns: List of signal models.

property num_impinging_signals: int

Number of signals impinging onto the device.

Returns: Signal model count.