public class GeneralRCIManager extends java.lang.Object implements IRCIExtension
The RCI manager loads the base platform descriptor file embedded in the jar file.
This class allows the extension of the RCI base descriptor by the
applications that implements the interface IGeneralRCIExtension.
This implementation must be provided to the
CloudConnector constructor.
This manager will call the different methods of the
IGeneralRCIExtension when getting or setting an RCI value if the
parameter "extend_rci" is set to True in the
connector_config.txt file.
The location of the custom descriptor in the application is determined by the settings "descriptor_type" and "descriptor_loc":
IGeneralRCIExtension,
IRCIExtension| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DESCRIPTOR_TYPE_EMBEDDED
Embedded RCI descriptor: "embedded".
|
static java.lang.String |
DESCRIPTOR_TYPE_EXTERNAL
External RCI descriptor: "external".
|
static java.lang.String |
PARAM_DESCRIPTOR_LOC
'Descriptor location' setting name: "descriptor_loc".
|
static java.lang.String |
PARAM_DESCRIPTOR_TYPE
'Descriptor type' setting name: "descriptor_type".
|
static java.lang.String |
PARAM_EXTEND_RCI
'Extend RCI' setting name: "extend_rci".
|
| Constructor and Description |
|---|
GeneralRCIManager(IPlatformCustomization platformCustomization)
Class constructor.
|
GeneralRCIManager(IPlatformCustomization platformCustomization,
IGeneralRCIExtension generalRCIExtension)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getDescriptorFile()
Retrieves the descriptor file as input stream
in order to be used by the RCI facility.
|
java.lang.String |
getParameterValue(java.lang.String parameter)
Retrieves the value of the given parameter name.
|
java.lang.String |
getSettingValue(java.lang.String group,
java.lang.String setting,
int index,
java.lang.String name)
Retrieves the value of the given setting name included in the
given setting group.
|
java.lang.String |
handleZigbeeRequest(java.lang.String data)
Handles a ZigBee target request with the given data.
|
java.lang.String |
setSettingValue(java.lang.String group,
java.lang.String setting,
java.lang.String value,
int index,
java.lang.String name)
Sets the value of the given setting name included in the
given setting group.
|
public static final java.lang.String DESCRIPTOR_TYPE_EMBEDDED
public static final java.lang.String DESCRIPTOR_TYPE_EXTERNAL
public static final java.lang.String PARAM_DESCRIPTOR_LOC
This setting specifies the location of the custom descriptor file.
public static final java.lang.String PARAM_DESCRIPTOR_TYPE
This setting specifies the type of the custom descriptor file:
DESCRIPTOR_TYPE_EMBEDDED ("embedded")
or DESCRIPTOR_TYPE_EXTERNAL ("external").
public static final java.lang.String PARAM_EXTEND_RCI
This setting allows the custom extension of the base descriptor.
public GeneralRCIManager(IPlatformCustomization platformCustomization)
platformCustomization - Platform customization.public GeneralRCIManager(IPlatformCustomization platformCustomization, IGeneralRCIExtension generalRCIExtension)
platformCustomization - Platform customization.generalRCIExtension - RCI extension used to extend RCI functionality.public java.io.InputStream getDescriptorFile()
IRCIExtensiongetDescriptorFile in interface IRCIExtensionpublic java.lang.String getParameterValue(java.lang.String parameter)
parameter - the parameter name to get its value.public java.lang.String getSettingValue(java.lang.String group,
java.lang.String setting,
int index,
java.lang.String name)
IRCIExtensiongetSettingValue in interface IRCIExtensiongroup - Name of the group where the setting is included.setting - Name of the setting to retrieve its value.index - In case of multiple instances of the settings group, the group index for arrays.name - In case of multiple instances of the settings group, the group name for dictionaries.public java.lang.String handleZigbeeRequest(java.lang.String data)
IRCIExtensionhandleZigbeeRequest in interface IRCIExtensiondata - ZigBee request data in XML format.public java.lang.String setSettingValue(java.lang.String group,
java.lang.String setting,
java.lang.String value,
int index,
java.lang.String name)
IRCIExtensionsetSettingValue in interface IRCIExtensiongroup - Name of the group where the setting is included.setting - Name of the setting to set its value.value - The new setting value.index - In case of multiple instances of the settings group, the group index for arrays.name - In case of multiple instances of the settings group, the group name for dictionaries.© Copyright 2014 Etherios, Inc. All rights reserved. Etherios, Inc. is a Division of Digi International Inc.