DatabaseCAN
Summary
Represents a CAN Database object.
- Methods
Structure
- class DatabaseCAN
- get_all_clusters() List[ICluster]
Gets all the Clusters of the database and returns them in a list.
- get_all_ecus() List[ISignalEcu]
Gets all the ECUs of the database and returns them in a list.
- Returns
List of all the ECUs in the database.
- Return type
- 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
- get_all_frame_triggerings() List[IFrameTriggering]
Gets all the Frame Triggerings of the database and returns them in a list.
- Returns
List of all the Frame Triggerings in the database.
- Return type
- 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
- get_ecu_by_id(id: str) ISignalEcu
Identifies an ECU by its Id from the ECUs of the database and returns it.
- Parameters
id (
str
) – The Id of the ECU to identify- Returns
The ECU identified
- Return type
- get_ecu_by_name(name: str) ISignalEcu
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
- get_frame_by_id(frame_id: uint32, ecu_name: str = None, cluster_name: str = None) IFrameInstance
Identified a frame by its id from all the frames of the database and returns it.
- Parameters
- Returns
The identified frame
- Return type
- get_frame_description(frame_id: uint32) str
Identifies a frame by its id and returns its description.
- 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
- 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