A.2 Example for Device model "deviceAirConditioner"

The present clause explains the creation process for the device typed 'deviceAirConditioner' (see clause 5.5.4.1 for device model definition of 'deviceAirConditioner').

Using the definition, 'deviceAirConditioner' model is mapped to [deviceAirConditioner] resource which is a specialization of <flexContainer> resource (see Figure A.2-1).

deviceAirConditioner

Figure A.2-1: Structure of [deviceAirConditioner] resource

The AE creates the [deviceAirConditioner] specialization of <flexContainer> resource for the Device model [deviceAirConditioner] resource.

The [deviceAirConditioner] resource contains the child resource specified in Table A.2-1.

Table A.2-1: Child resources of [deviceAirConditioner] resource

Child Resources of [deviceAirConditioner] Child Resource Type Multiplicity Description
[variable] <flexContainer> as defined in the specialization [binarySwitch] 0..1 This resource is used to map 'binarySwitch' ModuleClass defined in clause 5.3.1.12.
[variable] <flexContainer> as defined in the specialization [runState] 0..1 This resource is used to map 'runState' ModuleClass defined in clause 5.3.1.75.
[variable] <flexContainer> as defined in the specialization [airConJobMode] 0..1 This resource is used to map 'airConJobMode' ModuleClass defined in clause 5.3.1.3.
[variable] <flexContainer> as defined in the specialization [airConOperationMode] 0..1 This resource is used to map 'airConOperationMode' ModuleClass defined in clause 5.3.1.57.
[variable] <flexContainer> as defined in the specialization [airCleanOperationMode] 0..1 This resource is used to map 'airCleanOperationMode' ModuleClass defined in clause 5.3.1.57.
[variable] <flexContainer> as defined in the specialization [temperature] 0..1 This resource is used to map 'temperature' ModuleClass defined in clause 5.3.1.87.
[variable] <flexContainer> as defined in the specialization [timer] 0..1 This resource is used to map 'timer' ModuleClass defined in clause 5.3.1.90.
[variable] <flexContainer> as defined in the specialization [sleepTimer] 0..1 This resource is used to map 'sleepTimer' ModuleClass defined in clause 5.3.1.90.
[variable] <flexContainer> as defined in the specialization [turbo] 0..1 This resource is used to map 'turbo' ModuleClass defined in clause 5.3.1.91.
[variable] <flexContainer> as defined in the specialization [airFlow] 0..1 This resource is used to map 'airFlow' ModuleClass defined in clause 5.3.1.4.
[variable] <flexContainer> as defined in the specialization [powerSave] 0..1 This resource is used to map 'powerSave' ModuleClass defined in clause 5.3.1.66.
[variable] <flexContainer> as defined in the specialization [airQualitySensor] 0..1 This resource is used to map 'airQualitySensor' ModuleClass defined in clause 5.3.1.6.
[variable] <flexContainer> as defined in the specialization [filterInfo] 0..1 This resource is used to map 'filterInfo' ModuleClass defined in clause 5.3.1.35.
[variable] <subscription> 0..n See clause 9.6.8 in oneM2M TS-0001 [i.3]

The [deviceAirConditioner] resource contains the attributes specified in Table A.2-2.

Table A.2-2: Attributes of [deviceAirConditioner] resource

Attributes of [deviceAirConditioner] Multiplicity RW/RO/WO Description
resourceType 1 RO See clause 9.6.1.3 in oneM2M TS-0001 [i.3].
resourceID 1 RO See clause 9.6.1.3 in oneM2M TS-0001 [i.3].
resourceName 1 RO See clause 9.6.1.3 in oneM2M TS-0001 [i.3].
parentID 1 RO See clause 9.6.1.3 in oneM2M TS-0001 [i.3].
expirationTime 1 RW See clause 9.6.1.3 in oneM2M TS-0001 [i.3].
accessControlPolicyIDs 0..1 (L) RW See clause 9.6.1.3 in oneM2M TS-0001 [i.3].
creationTime 1 RO See clause 9.6.1.3 in oneM2M TS-0001 [i.3].
lastModifiedTime 1 RO See clause 9.6.1.3 in oneM2M TS-0001 [i.3].
labels 0..1 RW See clause 9.6.1.3 in oneM2M TS-0001 [i.3].
dynamicAuthorizationConsultationIDs 0..1 (L) RW See clause 9.6.1.3 in oneM2M TS-0001 [i.3].
stateTag 1 RO See clause 9.6.1.3 in oneM2M TS-0001 [i.3].
creator 0..1 RW See clause 9.6.35 in oneM2M TS-0001 [i.3].
containerDefinition 1 WO The value is "org.onem2m.home.device.airconditioner".
ontologyRef 0..1 RW See clause 9.6.35 in oneM2M TS-0001 [i.3].
contentSize 1 RO See clause 9.6.35 in oneM2M TS-0001 [i.3].
nodeLink 0..1 RO nodeLink attribute links to a <node> resource that is hosted on the same hosting CSE of the <flexContainer>. See clause 6.2.2 and 6.2.5 for more details.