DatabaseLIN

Summary

Represents a LIN database.

See also

ILinEcu

Methods

Structure

class DatabaseLIN
get_all_clusters() List[ICluster]

Gets all the Clusters of the database and returns them in a list.

Returns

A list of all the Clusters in the database.

Return type

List[ICluster]

get_all_ecus() IEnumerable[ILinEcu]

Gets all the ECUs of the database and returns them in a list.

Returns

A list of all the ECUs in the database.

Return type

IEnumerable[ILinEcu]

get_all_ecus() List[ISignalEcu]

Gets all the ISignalEcus of the database and returns them in a list.

Returns

A list of all the ISignalEcus in the database.

Return type

List[ISignalEcu]

get_all_frames() List[IFrameInstance]

Gets all the Frames of the database and returns them in a list.

Returns

A list of all the Frames in the database.

Return type

List[IFrameInstance]

get_ecu_by_name(name: str) ILinEcu

Identifies an ECU by its name from the ECUs of the database and returns it.

Parameters

name (str) – The name of the ECU to be identified

Returns

The ECU identified

Return type

ILinEcu

get_frame_by_id(frame_id: uint32, cluster_name: str = None) IFrameInstance

Identifies a frame by its id from all the frames of the database and returns it.

Parameters
  • frame_id (uint32) – The id of the frame to be identified

  • cluster_name (str) – The name of the frame's parent Cluster

Returns

The frame identified

Return type

IFrameInstance

get_path() str

Gets the path of the database.

Returns

The path of the database

Return type

str

get_schedule_tables() List[ScheduleTable]

Gets all the schedule table of the database and returns them in a list.

Returns

A list of all the schedule table in the database.

Return type

List[ScheduleTable]

get_signal_by_name(name: str) ISignalInstance

Identifies a signal by its name from all the signals of the database and returns it.

Parameters

name (str) – The name of the signal

Returns

The signal identified

Return type

ISignalInstance