DatabaseCAN

Summary

Represents a CAN Database object.

See also

ISignalEcu

Database

Methods

Structure

class DatabaseCAN
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() 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_frame_triggerings() List[IFrameTriggering]

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

Returns

List of all the frames triggerings in the database.

Return type

List[IFrameTriggering]

get_all_frames() List[IFrameInstance]

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

Returns

List of all the Frames in the database.

Return type

List[IFrameInstance]

get_all_signals() List[ISignal]

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

Returns

List of all the Signals in the database.

Return type

List[ISignal]

get_ecu(ecu_name: str = None, ecu_id: str = None) ISignalEcu

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

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

  • ecu_id (str) – The Id string of the ECU to be identified

Returns

The ECU identified.

Return type

ISignalEcu

get_frame(frame_id: uint32, ecu_name: str = None, 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 identifier of the frame to be identified.

  • ecu_name (str) – The name of the ecu 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 Frames of the database and returns them in a list.

Returns

List of all the Frames in the database.

Return type

List[ScheduleTable]

get_signal(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

get_signals_by_frame(frame_id: uint32) List[ISignalInstance]

Identifies a frame by its id and returns all the signals of that frame.

Parameters

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

Returns

List of the signals

Return type

List[ISignalInstance]

get_tp_configs() List[ITpConfig]

Gets all the Configurations of the used transport protocol from the database and returns them in a list.

Returns

List of all the Configurations of the used transport protocol in the database.

Return type

List[ITpConfig]

get_unit_by_signal(frame_id: uint32, signal_name: str) Unit

Identifies a unit by its signal and returns it.

Parameters
  • frame_id (uint32) – The id of the frame that contains the signal needed.

  • signal_name (str) – The name of the signal.

Returns

The Unit identified

Return type

Unit