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 1: Customize the Shared Model


Operation Personnel

Operation Location

Device Integration and Management Personnel

Application Portal


This job explains how device integration and management personnel can customize the standard Car model.

  1. In the Developer Console of the Application Portal, select Model > Shared Models.

  2. Click the Edit button to the right of the Car model to enter the model configuration interface.

  3. Click the custom Custom Configuration button in the top left corner to switch to the custom configuration interface.

  4. On the model definition page, select Modify > Feature. In the pop-up window, refer to the following information, select features, and modify their names. After completing the changes, click Confirm.

      • Select Feature (Identifier)

      • Modify Feature Name

      • Size (size1)

      • Wheel Size

      • Size (size2)

      • Body Size


  1. On the model definition page, select Create > Feature. In the pop-up window, refer to the following information and click Save after completing the configuration.

    • Type: Attribute

    • Name: Maximum Speed

    • Identifier: max_speed

    • Data Type: float

    • Description: The maximum speed of the Car

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 1: Inherit the Shared Model

This step involves inheriting the model elements of the standard Car model, including the custom elements defined in Job 1.

  1. In the Developer Console of the Application Portal, go to the Model > Shared Models tab. Select the modified model and click … > Inherit.

  2. In the pop-up window, configure the specific brand’s pure electric Car and hybrid Car based on the following information, and then select Create.


  • Brand X Pure Electric Car

    • Group: Automobile Manufacturing

    • Name: Brand X Pure Electric Car

    • Business Identifier: electric_car

    • Model Purpose: Leave blank

    • Description: A pure electric car of a specific brand

  • Brand X Hybrid Car

    • Group: Automobile Manufacturing

    • Name: Brand X Hybrid Car

    • Business Identifier: hybrid_car

    • Model Purpose: Leave blank

    • Description: A hybrid car of 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.

  1. 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.

  2. 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

  • Type: Attribute

  • Name: Battery Capacity

  • Identifier: battery_capacity

  • Data Type: float

  • Description: Battery capacity

Maximum Range

  • Type: Attribute

  • Name: Maximum Range

  • Identifier: maximum_range

  • Data Type: float

  • Description: Maximum range

Range Efficiency

  • Type: Attribute

  • Name: Range Efficiency

  • Identifier: rang_efficiency

  • Data Type: float

  • Description: 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

  1. On the configuration page of the Brand X Pure Electric Car model, select Property Rules.

  2. Click the Configure button_model button to the right of the default rule.

  3. On the default rules page, go to the Attributes tab, and click the Configure button_model button to the right of Range Efficiency (rang efficiency).

  4. 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

  5. Enter the following in the expression field: "rang_efficiency"="maximum_range"/"battery_capacity". After completion, click Confirm.

Step 2: Configure Model Views

  1. On the configuration page of the Brand X Pure Electric Car model, select Model Views > Created View.

  2. In the pop-up window, enter the following information and click Confirm:

    • Name: Vehicle Performance

    • Identifier: performance

  3. Click the Configure button_model button to the right of the view to enter the configuration page.

  4. Click the Add add button to the right of Sub-View, enter the following information in the pop-up window, and click Confirm:

    • Name: Default

    • Identifier: default

  5. Select Add Elements. In the pop-up window, check the following features and click Confirm:

    • Maximum Speed

    • Range Efficiency

  6. Return to the Model Views list, click the Configure button_model button to the right of Car Basic Information.

  7. 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.