Skip to content

Commit 3049cc8

Browse files
authored
Merge pull request #39 from UlfBj/master
Example files update
2 parents ff6e55d + 0a59e22 commit 3049cc8

2 files changed

Lines changed: 94 additions & 42 deletions

File tree

Lines changed: 47 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,63 @@
1+
# The service tree example builds on input from the Capabilities project:
2+
# https://covesa.atlassian.net/wiki/spaces/WIK4/pages/39059848/Capabilities+Project+-+Seating+Capabilities#CapabilitiesProject-SeatingCapabilities-InformationTypes
3+
14
VehicleService:
25
type: branch
36
description: The Vehicle services.
47

5-
VehicleService.ExteriorLighting:
8+
VehicleService.Seating:
69
type: branch
7-
description: The Exterior lighting service.
10+
description: The Seating service group.
811

9-
VehicleService.ExteriorLighting.Properties:
10-
type: branch
11-
description: The common properties of Exterior lighting service.
12+
VehicleService.Seating.MoveSeat:
13+
type: procedure
14+
description: Performs all supported seat movements.
1215

13-
VehicleService.ExteriorLighting.Properties. HeadLampsLayout:
14-
type: attribute
16+
VehicleService.Seating.MoveSeat.Input:
17+
type: iostruct
18+
description: Input parameters= (SeatId, MovementType, Position, Credentials).
19+
20+
VehicleService.Seating.MoveSeat.Input.SeatId:
21+
type: property
22+
datatype: Types.Struct.Seating.SeatId
23+
description: Seat identity.
24+
25+
VehicleService.Seating.MoveSeat.Input.MovementType:
26+
type: property
1527
datatype: string
16-
default: ["Left", "Right"]
17-
description: The head lamp properties.
28+
description: Type of movement. Supported types are retrieved via GetPropertiesSeating().
1829

19-
VehicleService.ExteriorLighting.HeadLampsOnOff:
20-
type: procedure
21-
description: Microservice name=HeadLampsOnOff, Input=Switch, Output=None.
30+
VehicleService.Seating.MoveSeat.Input.Position:
31+
type: property
32+
datatype: Types.Common.Percentage
33+
description: Final position of the movement, expressed as a percentage.
2234

23-
VehicleService.ExteriorLighting.HeadLampsOnOff.Version:
24-
type: attribute
35+
VehicleService.Seating.MoveSeat.Input.Credentials:
36+
type: property
2537
datatype: string
26-
default: 1.0.0
27-
description: The HeadLampsOnOff microservice version.
38+
description: A token with client credentials. Optional parameter.
2839

29-
VehicleService.ExteriorLighting.HeadLampsOnOff.Input:
40+
VehicleService.Seating.MoveSeat.Output:
3041
type: iostruct
31-
description: An iostruct type containing the input parameter(s).
42+
description: Output parameters= (Status, Position, ServiceId).
3243

33-
VehicleService.ExteriorLighting.HeadLampsOnOff.Input.Switch:
34-
type: symlink
35-
path: Vehicle.Body.Lights.IsHighBeamSwitchOn
36-
domain: Automotive.Vehicle.Car.ResourceData
37-
version: 3.0.0+
38-
description: The reference in the VSS data tree is set to the input value.
44+
VehicleService.Seating.MoveSeat.Output.Status:
45+
type: property
46+
datatype: Types.Enum.Common.Status
47+
description: Status of the MoveSeat service.
3948

40-
VehicleService.Version:
41-
type: branch
42-
description: Supported Version.
49+
VehicleService.Seating.MoveSeat.Output.Position:
50+
type: property
51+
datatype: Types.Common.Percentage
52+
description: Final position of the movement, expressed as a percentage.
53+
54+
VehicleService.Seating.MoveSeat.Input.ServiceId:
55+
type: property
56+
datatype: uint32
57+
description: A reference to the service execution session.
4358

44-
# Here follows the mandatory Major, Minor, and Patch nodes with the version of the entire VehicleService file.
59+
VehicleService.Seating.MoveSeat.Version:
60+
type: attribute
61+
datatype: string
62+
default: 1.0.0
63+
description: The MoveSeat service version.

examples/TypeDefinition_example.v1.0.0.vspec

Lines changed: 47 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,63 @@ Types:
22
type: branch
33
description: Root node for the datatype definition tree.
44

5-
Types.Location:
5+
Types.Struct:
6+
type: branch
7+
description: Struct definitions.
8+
9+
Types.Struct.Seating:
10+
type: branch
11+
description: Seating related struct definitions.
12+
13+
Types.Struct.Seating.SeatId:
614
type: struct
7-
description: A struct containing Lat/Long data.
15+
description: Identity by position.
816

9-
Types.Location.Latitude:
10-
datatype: double
17+
Types.Struct.Seating.SeatId.Row:
1118
type: property
12-
min: -90
13-
max: 90
14-
unit: degrees
15-
description: Current latitude of vehicle in WGS 84 geodetic coordinates, as measured at the position of GNSS receiver antenna.
19+
datatype: string
20+
description: Row name.
1621

17-
Types.Location.Longitude:
18-
datatype: double
22+
Types.Struct.Seating.SeatId.Column:
1923
type: property
20-
min: -180
21-
max: 180
22-
unit: degrees
23-
description: Current longitude of vehicle in WGS 84 geodetic coordinates, as measured at the position of GNSS receiver antenna.
24+
datatype: string
25+
description: Column name.
26+
27+
Types.Enum:
28+
type: branch
29+
description: Enum definitions.
30+
31+
Types.Enum.Service:
32+
type: branch
33+
description: Service enum definitions.
34+
35+
Types.Enum.Service.Status:
36+
type: attribute
37+
datatype: uint8
38+
enum:
39+
SUCCESSFUL: 0
40+
ONGOING: 1
41+
CANCELED: 2
42+
FAILED: -1
43+
default: 0
44+
description: The execution status of a service.
2445

2546
Types.Version:
2647
type: branch
2748
description: Supported Version.
2849

50+
Types.Common:
51+
type: branch
52+
description: Common definitions.
53+
54+
Types.Common.Percentage:
55+
type: attribute
56+
datatype: float
57+
unit: percent
58+
min: 0
59+
max: 100
60+
description: Percent definition.
61+
2962
Types.Version.Major:
3063
datatype: uint32
3164
type: attribute

0 commit comments

Comments
 (0)