Java SDK and Eclipse plugin for simulator.
[platform/upstream/iotivity.git] / service / simulator / java / eclipse-plugin / ServiceProviderPlugin / resource / Light / simple-light.json
1 {
2   "id": "simple.light#",
3   "$schema": "http://json-schema.org/schema#",
4   "title": "Simple Light",
5   "$ref": "#/definitions/light",
6   "definitions": {
7     "light": {
8       "type": "object",
9       "properties": {
10                 "resourceType": {
11           "type": "string",
12           "description": "Description about resource type",
13           "default": "sample.light"
14         },
15                 "power": {
16                   "type": "string",
17                   "description": "Light status",
18                   "default": "on",
19                   "enum": ["on","off"],
20                   "update_frequency": 1000
21                   },
22                 "intensity": {
23                   "type": "integer",
24                   "description": "brightness of the light",
25                   "default": 1,
26                   "minimum": 1,
27           "maximum": 20,                  
28                   "update_frequency": 1001
29                   }
30                  }
31                 }
32         },      
33   "required": [ "resourceType", "power" ]
34 }