Unit 3: Customize a Specific Car Brand Model¶
After receiving the shared standard model, device integration and management personnel can further customize the relevant configurations based on the standard model to make the model more suited to real-world scenarios. This file explains how device integration and management personnel and application developers can customize a specific brand’s pure electric Car and hybrid Car based on the standard Car model.
Preparations¶
Before getting started, device integration and management personnel ensure the following:
Accounts have been assigned the required permissions. If permissions are not assigned, contact the system administrator.
The standard automobile model shared by domain experts has been obtained.
Job 2: Inherit and Edit Custom Models¶
Operation Personnel |
Operation Location |
---|---|
Device Integration and Management Personnel |
Application Portal |
This job explains how device integration and management personnel inherit the standard Car model and configure models for different types of Cars from a specific brand.
Step 2: Edit the Custom Model¶
This step uses the editing of the Brand X Pure Electric Car model as an example to explain how to edit a custom model.
In the custom model tab, click the Edit button to the right of the Brand X Pure Electric Car model to enter the model configuration page.
On the model definition page, select Add > Feature. In the pop-up window, refer to the following configurations, and click Save after completing them.
Feature |
Feature Configuration |
---|---|
Battery Capacity |
|
Maximum Range |
|
Range Efficiency |
|
Job 3: Configure Model View and Property Rules¶
Operation Personnel |
Operation Location |
---|---|
Application Developers |
Application Portal |
This job explains how application developers customize business logic for a specific car brand model to prepare for subsequent application development.
Note
This job uses the Brand X Pure Electric Car model as an example. The same steps can be repeated to configure property rules and model views for other models.
Step 1: Configure Property Rules¶
On the configuration page of the Brand X Pure Electric Car model, select Property Rules.
Click the Configure button to the right of the default rule.
On the default rules page, go to the Attributes tab, and click the Configure button to the right of Range Efficiency (rang efficiency).
In the pop-up window, select the aggregation method Aggregate within Expression and insert the following parameters:
Battery Capacity: battery capacity
Maximum Range: maximum range
Range Efficiency: rang efficiency
Enter the following in the expression field:
"rang_efficiency"="maximum_range"/"battery_capacity"
. After completion, click Confirm.
Step 2: Configure Model Views¶
On the configuration page of the Brand X Pure Electric Car model, select Model Views > Created View.
In the pop-up window, enter the following information and click Confirm:
Name: Vehicle Performance
Identifier: performance
Click the Configure button to the right of the view to enter the configuration page.
Click the Add button to the right of Sub-View, enter the following information in the pop-up window, and click Confirm:
Name: Default
Identifier: default
Select Add Elements. In the pop-up window, check the following features and click Confirm:
Maximum Speed
Range Efficiency
Return to the Model Views list, click the Configure button to the right of Car Basic Information.
Enter the default view, select Add Elements, and check the following features in the pop-up window before clicking Confirm:
Battery Capacity
Maximum Range
Results¶
In the Application Portal, select Model > Custom Models. In the model list, you can view the customized Brand X Pure Electric Car and Brand X Hybrid Car models.
Go to the configuration page of the Brand X Pure Electric Car model to view the defined property rules, car basic information model view, and vehicle performance model view.