Package org.osgi.service.enocean
Interface EnOceanRPC
-
public interface EnOceanRPC
A very basic interface for RPCs.- Author:
- $Id: e47e610ccf4c561b40580e50a9636b8d344bc436 $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FUNCTION_ID
The Function ID property string, used in EventAdmin RPC broadcasting.static java.lang.String
MANUFACTURER_ID
The Manufacturer ID property string, used in EventAdmin RPC broadcasting.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getFunctionId()
Gets the functionID for this RPC.int
getManufacturerId()
Gets the manufacturerID for this RPC.java.lang.String
getName()
Get a friendly name for the RPCbyte[]
getPayload()
Gets the current payload of the RPC.int
getSenderId()
Sets the RPC's senderID.void
setSenderId(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 toEnOceanRPC
interface, 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.
-
-