Unit 3: Customizing Specific Car Brand Models¶
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: Inheriting and Editing Models Created in This OU¶
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: Editing the Model Created in This OU¶
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 Models Created in This OU 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 New > Property. In the pop-up window, refer to the following configurations, and click Save after completing them.
Property |
Property Configuration |
---|---|
Battery Capacity |
|
Maximum Length |
|
Range Efficiency |
|
Job 3: Configuring 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: Configuring 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 Attribute tab, and click the Configure
button to the right of Range Efficiency (rang efficiency).
In the pop-up window, select the aggregation method Configure Expression for Property 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 OK.
Step 2: Configuring Model Views¶
On the configuration page of the Brand X Pure Electric Car model, select Model View > New View.
In the pop-up window, enter the following information and click OK:
Name: Vehicle Performance
Identifier: performance
Click the Configure
button to the right of the view to enter the configuration page.
Click the Add Sub-View
button to the right of Sub-View, enter the following information in the pop-up window, and click OK:
Name: Default
Identifier: default
Select Add Elements. In the pop-up window, check the following properties 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 Element, and check the following properties in the pop-up window before clicking OK:
Battery Capacity
Maximum Range
Results¶
In the Application Portal, select Model > Models Created in This OU. 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.