Model + service using the spinal-model-graph to do operation for Network representation.
- Description
- API
- Interface
- Classes
- Functions
- SpinalBmsDevice ⇐
Model - SpinalBmsEndpoint ⇐
Model - SpinalBmsEndpointGroup ⇐
Model - SpinalBmsNetwork ⇐
Model - NetworkService
- networkService.init(forgeFile, configService, [autoCreate]) ⇒
Promise.<{contextId:string, networkId: string}> - networkService.createNewBmsNetwork(parentId, typeName, networkName) ⇒
Promise.<any> - networkService.createNewBmsDevice(parentId, obj) ⇒
Promise.<any> - networkService.createNewBmsEndpointGroup(parentId, obj) ⇒
Promise.<any> - networkService.createNewBmsEndpoint(parentId, obj) ⇒
Promise.<any> - networkService.updateData(obj, [date]) ⇒
Promise.<void> - networkService.updateEndpoint(node, reference, [date]) ⇒
Promise.<void> - networkService.getNetworks() ⇒
Promise.<Array.<string>> - networkService.getEndpoint(idDevice) ⇒
Promise.<Array.<string>> - networkService.getInfo(idNode) ⇒
spinal.Model - networkService.getData(idNode) ⇒
Promise.<spinal.Model> - networkService.getTimeseries(idEndpoint) ⇒
Promise.<SpinalTimeSeries> - networkService.setEndpointValue(idEndpoint, value, [date]) ⇒
Promise.<boolean> - NetworkService.NetworkService
- networkService.init(forgeFile, configService, [autoCreate]) ⇒
- InputDataEndpointDataType :
enum - InputDataEndpointType :
enum - genUID(constructor) ⇒
string
Model + service using the spinal-model-graph to do operation for Network representation.
Kind: interface
| Param | Type | Value | Comment |
| --- | --- | | |
| id | string | |
| name | string | |
| type | string | |
| path | string | |
| children | (InputDataEndpoint | InputDataEndpointGroup | InputDataDevice)[] | |
| nodeTypeName | string | BmsDevice | should equal to SpinalBmsDevice.nodeTypeName |
Kind: interface
| Param | Type | Value | Comment |
|---|---|---|---|
| id | string |
||
| name | string |
||
| type | string |
||
| path | string |
||
| children | InputDataEndpoint[] |
||
| nodeTypeName | string |
BmsEndpointGroup |
should equal to SpinalBmsEndpointGroup.nodeTypeName |
Kind: interface
| Param | Type | Value | Comment |
|---|---|---|---|
| id | string |
||
| name | string |
||
| path | string |
||
| currentValue | string |
||
| unit | (InputDataEndpoint | InputDataEndpointGroup | InputDataDevice)[] |
||
| dataType | InputDataEndpointDataType |
||
| type | InputDataEndpointType |
||
| nodeTypeName | string |
BmsEndpoint |
should equal to SpinalBmsEndpoint.nodeTypeName |
Kind: interface
| Param | Type | Value | Comment |
|---|---|---|---|
| contextName | string |
||
| contextType | string |
||
| networkType | string |
||
| networkName | string |
- SpinalBmsDevice ⇐
Model - SpinalBmsEndpoint ⇐
Model - SpinalBmsEndpointGroup ⇐
Model - SpinalBmsNetwork ⇐
Model - NetworkService
- genUID(constructor) ⇒
string
Kind: global class
Extends: Model
Export:
Properties
| Name | Type |
|---|---|
| id; | spinal.Str |
| name; | spinal.Str |
| type; | spinal.Str |
| path; | spinal.Str |
Kind: static class of SpinalBmsDevice
Creates an instance of SpinalBmsDevice.
| Param | Type | Default |
|---|---|---|
| [name] | string |
"''" |
| [type] | string |
"''" |
| [path] | string |
"''" |
| [id] | string |
"genUID('SpinalBmsDevice')" |
Kind: global class
Extends: Model
Export:
Properties
| Name | Type |
|---|---|
| id | spinal.Str |
| path | spinal.Str |
| currentValue | spinal.Str | spinal.Val |
| unit | spinal.Str |
| type | spinal.Str |
| dataType | spinal.Str |
- SpinalBmsEndpoint ⇐
Model
Kind: static class of SpinalBmsEndpoint
Creates an instance of SpinalBmsEndpoint.
| Param | Type | Default |
|---|---|---|
| [name] | string |
"''" |
| [path] | string |
"''" |
| [currentValue] | string | number |
"''" |
| [unit] | string |
"''" |
| [dataType] | string |
"''" |
| [type] | string |
"''" |
| [id] | string |
"genUID('SpinalBmsEndpoint')" |
Kind: global class
Extends: Model
Export:
Properties
| Name | Type |
|---|---|
| id; | spinal.Str |
| name; | spinal.Str |
| type; | spinal.Str |
| path; | spinal.Str |
- SpinalBmsEndpointGroup ⇐
Model
Kind: static class of SpinalBmsEndpointGroup
Creates an instance of SpinalBmsEndpointGroup.
| Param | Type | Default |
|---|---|---|
| [name] | string |
"''" |
| [type] | string |
"''" |
| [path] | string |
"''" |
| [id] | string |
"genUID('SpinalBmsNetwork')" |
Kind: global class
Extends: Model
Export:
Properties
| Name | Type |
|---|---|
| name | spinal.Str |
| type | spinal.Str |
| id | spinal.Str |
Kind: static class of SpinalBmsNetwork
Creates an instance of SpinalBmsNetwork.
| Param | Type | Default |
|---|---|---|
| [name] | string |
"''" |
| [type] | string |
"''" |
| [id] | string |
"genUID('SpinalBmsNetwork')" |
Kind: global class
Export:
- NetworkService
- instance
- .init(forgeFile, configService, [autoCreate]) ⇒
Promise.<{contextId:string, networkId: string}> - .createNewBmsNetwork(parentId, typeName, networkName) ⇒
Promise.<any> - .createNewBmsDevice(parentId, obj) ⇒
Promise.<any> - .createNewBmsEndpointGroup(parentId, obj) ⇒
Promise.<any> - .createNewBmsEndpoint(parentId, obj) ⇒
Promise.<any> - .updateData(obj, [date]) ⇒
Promise.<void> - .updateEndpoint(node, reference, [date]) ⇒
Promise.<void> - .getNetworks() ⇒
Promise.<Array.<string>> - .getEndpoint(idDevice) ⇒
Promise.<Array.<string>> - .getInfo(idNode) ⇒
spinal.Model - .getData(idNode) ⇒
Promise.<spinal.Model> - .getTimeseries(idEndpoint) ⇒
Promise.<SpinalTimeSeries> - .setEndpointValue(idEndpoint, value, [date]) ⇒
Promise.<boolean>
- .init(forgeFile, configService, [autoCreate]) ⇒
- static
- instance
networkService.init(forgeFile, configService, [autoCreate]) ⇒ Promise.<{contextId:string, networkId: string}>
Kind: instance method of NetworkService
| Param | Type | Default |
|---|---|---|
| forgeFile | spinal.Model |
|
| configService | ConfigService |
|
| [autoCreate] | boolean |
true |
Kind: instance method of NetworkService
| Param | Type |
|---|---|
| parentId | string |
| typeName | string |
| networkName | string |
Kind: instance method of NetworkService
| Param | Type |
|---|---|
| parentId | string |
| obj | InputDataDevice |
Kind: instance method of NetworkService
| Param | Type |
|---|---|
| parentId | string |
| obj | InputDataEndpointGroup |
Kind: instance method of NetworkService
| Param | Type |
|---|---|
| parentId | string |
| obj | InputDataEndpoint |
Kind: instance method of NetworkService
| Param | Type | Default |
|---|---|---|
| obj | InputDataDevice |
|
| [date] | * |
|
Kind: instance method of NetworkService
| Param | Type | Default |
|---|---|---|
| node | * |
|
| reference | InputDataEndpoint |
|
| [date] | * |
|
Kind: instance method of NetworkService
Kind: instance method of NetworkService
| Param | Type |
|---|---|
| idDevice | string |
Kind: instance method of NetworkService
| Param | Type |
|---|---|
| idNode | string |
Kind: instance method of NetworkService
| Param | Type |
|---|---|
| idNode | string |
Kind: instance method of NetworkService
| Param | Type |
|---|---|
| idEndpoint | string |
Kind: instance method of NetworkService
| Param | Type | Default |
|---|---|---|
| idEndpoint | string |
|
| value | string | boolean | number |
|
| [date] | number | string | Date |
|
Kind: static class of NetworkService
Creates an instance of NetworkService.
Kind: global function
| Param | Type |
|---|---|
| constructor | string |