{ "title": "falldetector.basic", "description": "Simple fall detection device", "lang": "en", "documentation": "http://recherche.imt-atlantique.fr/xaal/documentation/", "ref": "http://recherche.imt-atlantique.fr/xaal/documentation/falldetector.basic", "license": "Copyright Christophe Lohr IMT Atlantique 2017 - Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.", "extends": "basic.basic", "attributes": { "falls": { "description": "List of detected falls", "unit": "List of objects {delay,zone,x,y} whose semantic is device-dependent; Each object means a fall; An empty object means a detecting fall with no additional info; An empty list means no detected fall.", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "array", "items": { "type": "object", "properties": { "delay": { "type": "integer", "minimum": 0 }, "zone": { "type": "string" }, "x": { "type": "number" }, "y": { "type": "number" } } } } } }, "methods": { "getAttributes": { "description": "Return the list of detected falls", "parameters": { "attributes": { "description": "List of wanted attributes", "unit": "", "direction": "in", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "array", "items": { "enum": [ "falls" ] }, "additionalItems": false } }, "falls": { "description": "List of detected falls", "unit": "List of objects {delay,zone,x,y} whose semantic is device-dependent; Each object means a fall; An empty object means a detecting fall with no additional info; An empty list means no detected fall.", "direction": "out", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "array", "items": { "type": "object", "properties": { "delay": { "type": "integer", "minimum": 0 }, "zone": { "type": "string" }, "x": { "type": "number" }, "y": { "type": "number" } } } } } }, "relatedAttributes": [ ] } }, "notifications": { "attributesChange": { "description": "Report attributes that have changed", "parameters": { "falls": { "description": "List of detected falls", "unit": "List of objects {delay,zone,x,y} whose semantic is device-dependent; Each object means a fall; An empty object means a detecting fall with no additional info; An empty list means no detected fall.", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "array", "items": { "type": "object", "properties": { "delay": { "type": "integer", "minimum": 0 }, "zone": { "type": "string" }, "x": { "type": "number" }, "y": { "type": "number" } } } } } } }, "alert": { "description": "Fall detection alert", "parameters": { "falls": { "description": "List of detected falls", "unit": "List of objects {delay,zone,x,y} whose semantic is device-dependent; Each object means a fall; An empty object means a detecting fall with no additional info; An empty list means no detected fall.", "type": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "array", "items": { "type": "object", "properties": { "delay": { "type": "integer", "minimum": 0 }, "zone": { "type": "string" }, "x": { "type": "number" }, "y": { "type": "number" } } } } } } } } }