A.3 Example of ModuleClass "binarySwitch"

The [binarySwitch] resource is used to share information regarding the modelled binary switch module as a ModuleClass. The [binarySwitch] resource is a specialization of the <flexContainer> resource.

binarySwitch

Figure A.3-1: Structure of [binarySwitch] resource

The [binarySwitch] resource contains the child resource specified in Table A.3-1.

Table A.3-1: Child resources of [binarySwitch] resource

Child Resources of [binarySwitch] Child Resource Type Multiplicity Description
[variable] <flexContainer> as defined in the specialization [toggle] 0..1 This resource is used to map 'toggle' Action defined in clause 5.3.1.12.
[variable] <subscription> 0..n See clause 9.6.8 in oneM2M TS-0001 [i.3].

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

Table A.3-2: Attributes of [binarySwitch] resource

Attributes of [binarySwitch] 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.moduleclass.binaryswitch"
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 RW Not applicable to a ModuleClass specialization. This attribute is not present in an instantiation of this resource.
dataGenerationTime 0..1 RO See clause 6.2.3.
powerState 1 RW See clause 5.3.1.12.