-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
697 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 116 additions & 0 deletions
116
digital-twin-model/dtdl/dtmi/sdv/airbag_seat_massager-1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"@context": ["dtmi:dtdl:context;3"], | ||
"@type": "Interface", | ||
"@id": "dtmi:sdv:airbag_seat_massager;1", | ||
"description": "Airbag Seat Massager Interface", | ||
"extends": "dtmi:sdv:seat_massager;1", | ||
"contents": [ | ||
{ | ||
"@type": "Command", | ||
"@id": "dtmi:sdv:airbag_seat_massager:store_sequence;1", | ||
"name": "store_sequence", | ||
"request": { | ||
"name": "request", | ||
"schema": { | ||
"@type": "Object", | ||
"fields": [ | ||
{ | ||
"name": "sequence", | ||
"schema": "dtmi:sdv:massage_sequence;1" | ||
} | ||
] | ||
} | ||
}, | ||
"response": { | ||
"name": "response", | ||
"schema": { | ||
"@type": "Object", | ||
"fields": [ | ||
{ | ||
"name": "status", | ||
"schema": "dtmi:sdv:airbag_seat_massager:status;1" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"@type": "Command", | ||
"@id": "dtmi:sdv:airbag_seat_massager:perform_step;1", | ||
"name": "perfom_step", | ||
"request": { | ||
"name": "request", | ||
"schema": { | ||
"@type": "Object", | ||
"fields": [ | ||
{ | ||
"name": "sequence", | ||
"schema": "dtmi:sdv:massage_sequence;1" | ||
} | ||
] | ||
} | ||
}, | ||
"response": { | ||
"name": "response", | ||
"schema": { | ||
"@type": "Object", | ||
"fields": [ | ||
{ | ||
"name": "status", | ||
"schema": "dtmi:sdv:airbag_seat_massager:status;1" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"schemas": [ | ||
{ | ||
"@id": "dtmi:sdv:airbag_seat_massager:status;1", | ||
"@type": "Object", | ||
"fields": [ | ||
{ | ||
"name": "code", | ||
"schema": "integer" | ||
}, | ||
{ | ||
"name": "message", | ||
"schema": "string" | ||
} | ||
] | ||
}, | ||
{ | ||
"@id": "dtmi:sdv:massage_sequence;1", | ||
"@type": "Array", | ||
"elementSchema": "dtmi:sdv:massage_step;1" | ||
}, | ||
{ | ||
"@id": "dtmi:sdv:massage_step;1", | ||
"@type": "Array", | ||
"elementSchema": "dtmi:sdv:airbag_adjustments;1" | ||
}, | ||
{ | ||
"@id": "dtmi:sdv:airbag_adjustments;1", | ||
"@type": "Array", | ||
"elementSchema": "dtmi:sdv:airbag_adjustment;1" | ||
}, | ||
{ | ||
"@id": "dtmi:sdv:airbag_adjustment;1", | ||
"@type": "Object", | ||
"fields": [ | ||
{ | ||
"name": "airbag_identifier", | ||
"schema": "integer" | ||
}, | ||
{ | ||
"name": "inflation_level", | ||
"schema": "integer" | ||
}, | ||
{ | ||
"name": "duration", | ||
"schema": "duration" | ||
} | ||
] | ||
} | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
digital-twin-model/dtdl/dtmi/sdv/basic_airbag_seat_massager-1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"@context": ["dtmi:dtdl:context;3"], | ||
"@type": "Interface", | ||
"@id": "dtmi:sdv:basic_airbag_seat_massager;1", | ||
"description": "Basic Airbag Seat Massager Interface", | ||
"extends": "dtmi:sdv:airbag_seat_massager;1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"@context": ["dtmi:dtdl:context;3"], | ||
"@type": "Interface", | ||
"@id": "dtmi:sdv:cabin;1", | ||
"description": "Cabin Interface", | ||
"contents": [ | ||
{ | ||
"@type": "Relationship", | ||
"@id": "dtmi:sdv:cabin:has_infotainment;1", | ||
"target": "dtmi:sdv:infotainment;1", | ||
"name": "has_infotainment", | ||
"maxMultiplicity": 1 | ||
}, | ||
{ | ||
"@type": "Relationship", | ||
"@id": "dtmi:sdv:cabin:has_hvac;1", | ||
"target": "dtmi:sdv:hvac;1", | ||
"name": "has_hvac", | ||
"maxMultiplicity": 1 | ||
}, | ||
{ | ||
"@type": "Relationship", | ||
"@id": "dtmi:sdv:cabin:has_seat;1", | ||
"name": "has_seat", | ||
"target": "dtmi:sdv:seat;1", | ||
"properties": [ | ||
{ | ||
"@type": "Property", | ||
"@id": "dtmi:sdv:seat:seat_row;1", | ||
"name": "seat_row", | ||
"schema": "integer" | ||
}, | ||
{ | ||
"@type": "Property", | ||
"@id": "dtmi:sdv:Seat:seat_position;1", | ||
"name": "seat_position", | ||
"schema": { | ||
"@type": "Enum", | ||
"valueSchema": "string", | ||
"enumValues": [ | ||
{ | ||
"name": "left", | ||
"displayName": "left", | ||
"enumValue": "left" | ||
}, | ||
{ | ||
"name": "center", | ||
"displayName": "center", | ||
"enumValue": "center" | ||
}, | ||
{ | ||
"name": "right", | ||
"displayName": "right", | ||
"enumValue": "right" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"@context": "dtmi:dtdl:context;3", | ||
"@type": "Interface", | ||
"@id": "dtmi:sdv:camera;1", | ||
"description": "Cabin camera.", | ||
"contents": [ | ||
{ | ||
"@type": "Property", | ||
"@id": "dtmi:sdv:camera:feed;1", | ||
"name": "Feed", | ||
"description": "The camera feed inside of the cabin.", | ||
"schema": { | ||
"@type": "Object", | ||
"fields": [ | ||
{ | ||
"name": "media_type", | ||
"schema": "string" | ||
}, | ||
{ | ||
"name": "media_content", | ||
"description": "An array of bytes (represented by integers here).", | ||
"schema": { | ||
"@type": "Array", | ||
"elementSchema": "integer" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"@context": ["dtmi:dtdl:context;3"], | ||
"@type": "Interface", | ||
"@id": "dtmi:sdv:hmi;1", | ||
"description": "The Human Machine Interface.", | ||
"contents": [ | ||
{ | ||
"@type": "Command", | ||
"@id": "dtmi:sdv:hmi:show_notification;1", | ||
"name": "show_notification", | ||
"description": "Show a notification on the HMI.", | ||
"request": { | ||
"@id": "dtmi:sdv:hmi:show_notification:request;1", | ||
"name": "notification", | ||
"displayName": "Notification", | ||
"description": "The notification to show on the HMI.", | ||
"schema": "string" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"@context": ["dtmi:dtdl:context;3"], | ||
"@type": "Interface", | ||
"@id": "dtmi:sdv:hvac;1", | ||
"description": "Heat, Ventilation and Air Conditioning", | ||
"contents": [ | ||
{ | ||
"@type": "Property", | ||
"@id": "dtmi:sdv:hvac:ambient_air_temperature;1", | ||
"name": "ambient_air_temperature", | ||
"description": "The immediate surroundings' air temperature (in Fahrenheit).", | ||
"schema": "integer" | ||
}, | ||
{ | ||
"@type": "Property", | ||
"@id": "dtmi:sdv:hvac:is_air_conditioning_active;1", | ||
"name": "is_air_conditioning_active", | ||
"description": "Is air conditioning active?", | ||
"schema": "boolean" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"@context": ["dtmi:dtdl:context;3"], | ||
"@type": "Interface", | ||
"@id": "dtmi:sdv:infotainment;1", | ||
"description": "Infotainment Interface", | ||
"contents": [ | ||
{ | ||
"@type": "Relationship", | ||
"@id": "dtmi:sdv:infotainment:has_hmi;1", | ||
"target": "dtmi:sdv:hmi;1", | ||
"name": "has_hmi", | ||
"maxMultiplicity": 1 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"@context": "dtmi:dtdl:context;3", | ||
"@type": "Interface", | ||
"@id": "dtmi:sdv:obd;1", | ||
"description": "On-board Diagnostics Interface", | ||
"contents": [ | ||
{ | ||
"@type": "Property", | ||
"@id": "dtmi:sdv:obd:hybri_bBattery_remaining;1", | ||
"name": "hybrid_battery_remaining", | ||
"description": "The remaining hybrid battery life.", | ||
"schema": "integer" | ||
} | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
digital-twin-model/dtdl/dtmi/sdv/premium_airbag_seat_massager-1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"@context": ["dtmi:dtdl:context;3"], | ||
"@type": "Interface", | ||
"@id": "dtmi:sdv:premium_airbag_seat_massager;1", | ||
"description": "Premium Airbag Seat Massager Interface", | ||
"extends": "dtmi:sdv:airbag_seat_massager;1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"@context": ["dtmi:dtdl:context;3"], | ||
"@type": "Interface", | ||
"@id": "dtmi:sdv:seat;1", | ||
"description": "Seat Interface" | ||
} |
Oops, something went wrong.