ISignal

Summary

Represents a signal description from database

Methods
Properties

Structure

class ISignal
get_interpretations() Dictionary[str, Tuple[float, float]]

Returns a dictionary of tuple (min_physical_value, max_physical_value)

Returns

Dictionary of tuple (min_physical_value, max_physical_value)

Return type

Dictionary[str, Tuple[float, float]]

physical_to_raw(physical: float) uint64

converts the physical measurement of the signal to its corresponding raw value

Parameters

physical (float) – the physical measurement of the signal

Returns

The raw value of the signal.

Return type

uint64

raw_to_interpretation(raw: uint64) str

Converts the raw value of the signal to its corresponding interpretation.

Parameters

raw (uint64) – The raw value to be converted.

Returns

Interpretation of the signal.

Return type

str

raw_to_physical(raw: uint64) float

converts the raw value of the signal to its corresponding physical measurement

Parameters

raw (uint64) – The raw value to be converted.

Returns

physical measurement of the signal.

Return type

float

base_data_type

gets the base data type.

Type

str

bit_length

gets the bit length.

Type

int32

compu_methods

Gets the composition methods.

Type

List[ICompuMethod]

crc_id

Gets the attribute value of the signal type.

Type

uint64

id_string

Gets the signal ID.

Type

str

initial_value

The signal value at startup.

Type

uint64 or None

lower_limit

Gets the lower limit.

Type

float or None

method

Gets the method.

Type

str

name

Gets the name of the signal.

Type

str

signal_activation_configs

The signal activations conditions.

Type

List[ISignalActivation]

signal_type

Gets the signal type.

Type

str

signal_type_attribute_name

Gets the attribute name of the signal type.

Type

str

unit

The signal unit value.

Type

str

upper_limit

Gets the upper limit.

Type

float or None

uuid

Gets the uuid of the signal.

Type

str

validity

Gets the validity value.

Type

str