2014-12-01 18:24:38 +00:00
|
|
|
{
|
|
|
|
"name": "Sine Wave Generator",
|
|
|
|
"description": "Example of a component that produces dataa.",
|
|
|
|
"extensions": {
|
|
|
|
"components": [
|
|
|
|
{
|
|
|
|
"implementation": "SinewaveTelemetryProvider.js",
|
|
|
|
"type": "provider",
|
|
|
|
"provides": "telemetryService",
|
|
|
|
"depends": [ "$q", "$timeout" ]
|
2015-10-22 19:51:10 +00:00
|
|
|
},
|
|
|
|
{
|
2015-10-22 22:26:22 +00:00
|
|
|
"implementation": "SinewaveTimeProvider.js",
|
2015-10-22 19:51:10 +00:00
|
|
|
"type": "provider",
|
2015-10-22 22:26:22 +00:00
|
|
|
"provides": "timeService"
|
2014-12-01 18:24:38 +00:00
|
|
|
}
|
|
|
|
],
|
2015-06-06 00:15:02 +00:00
|
|
|
"capabilities": [
|
|
|
|
{
|
|
|
|
"key": "limit",
|
|
|
|
"implementation": "SinewaveLimitCapability.js"
|
|
|
|
}
|
|
|
|
],
|
2014-12-01 18:24:38 +00:00
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"key": "generator",
|
|
|
|
"name": "Sine Wave Generator",
|
|
|
|
"glyph": "T",
|
|
|
|
"description": "A sine wave generator",
|
2015-01-22 00:17:37 +00:00
|
|
|
"features": "creation",
|
2014-12-01 18:24:38 +00:00
|
|
|
"model": {
|
|
|
|
"telemetry": {
|
|
|
|
"period": 10
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"telemetry": {
|
2015-06-09 16:31:22 +00:00
|
|
|
"source": "generator",
|
|
|
|
"domains": [
|
|
|
|
{
|
|
|
|
"key": "time",
|
|
|
|
"name": "Time"
|
2015-09-23 23:43:58 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "yesterday",
|
|
|
|
"name": "Yesterday"
|
2015-10-22 19:51:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "index",
|
|
|
|
"name": "Index",
|
|
|
|
"system": "generator.index"
|
2015-06-09 16:31:22 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"ranges": [
|
|
|
|
{
|
|
|
|
"key": "sin",
|
|
|
|
"name": "Sine"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "cos",
|
|
|
|
"name": "Cosine"
|
|
|
|
}
|
|
|
|
]
|
2014-12-01 18:24:38 +00:00
|
|
|
},
|
|
|
|
"properties": [
|
|
|
|
{
|
2014-12-04 00:21:00 +00:00
|
|
|
"name": "Period",
|
|
|
|
"control": "textfield",
|
2015-03-11 05:36:35 +00:00
|
|
|
"cssclass": "l-small l-numeric",
|
2014-12-01 18:24:38 +00:00
|
|
|
"key": "period",
|
|
|
|
"required": true,
|
|
|
|
"property": [ "telemetry", "period" ],
|
|
|
|
"pattern": "^\\d*(\\.\\d*)?$"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2015-10-22 20:07:04 +00:00
|
|
|
],
|
|
|
|
"constants": [
|
|
|
|
{
|
|
|
|
"key": "TIME_CONDUCTOR_DOMAINS",
|
|
|
|
"value": [
|
|
|
|
{ "key": "time", "name": "Time" },
|
|
|
|
{ "key": "yesterday", "name": "Yesterday" },
|
|
|
|
{ "key": "index", "name": "Index", "system": "generator.index" }
|
|
|
|
],
|
|
|
|
"priority": -1,
|
|
|
|
"comment": "Placeholder; to be replaced by inspection of available domains."
|
|
|
|
}
|
2014-12-01 18:24:38 +00:00
|
|
|
]
|
|
|
|
}
|
2015-09-23 23:43:58 +00:00
|
|
|
}
|