Package org.osgi.service.enocean
Interface EnOceanRPC
-
public interface EnOceanRPCA very basic interface for RPCs.- Author:
- $Id: e47e610ccf4c561b40580e50a9636b8d344bc436 $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFUNCTION_IDThe Function ID property string, used in EventAdmin RPC broadcasting.static java.lang.StringMANUFACTURER_IDThe Manufacturer ID property string, used in EventAdmin RPC broadcasting.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetFunctionId()Gets the functionID for this RPC.intgetManufacturerId()Gets the manufacturerID for this RPC.java.lang.StringgetName()Get a friendly name for the RPCbyte[]getPayload()Gets the current payload of the RPC.intgetSenderId()Sets the RPC's senderID.voidsetSenderId(int chipId)Sets the RPC's senderID.
-
-
-
Field Detail
-
MANUFACTURER_ID
static final java.lang.String MANUFACTURER_ID
The Manufacturer ID property string, used in EventAdmin RPC broadcasting.- See Also:
- Constant Field Values
-
FUNCTION_ID
static final java.lang.String FUNCTION_ID
The Function ID property string, used in EventAdmin RPC broadcasting.- See Also:
- Constant Field Values
-
-
Method Detail
-
getManufacturerId
int getManufacturerId()
Gets the manufacturerID for this RPC.- Returns:
- manufacturer id.
-
getFunctionId
int getFunctionId()
Gets the functionID for this RPC.- Returns:
- function id.
-
getPayload
byte[] getPayload()
Gets the current payload of the RPC.- Returns:
- the payload, in bytes, of this RPC.
-
getSenderId
int getSenderId()
Sets the RPC's senderID. This member has to belong toEnOceanRPCinterface, for the object may be sent as a standalone using EventAdmin for instance.- Returns:
- sender id.
-
setSenderId
void setSenderId(int chipId)
Sets the RPC's senderID.- Parameters:
chipId-
-
getName
java.lang.String getName()
Get a friendly name for the RPC- Returns:
- the name.
-
-