public class ContextHubInfo extends Object
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<ContextHubInfo> |
CREATOR |
Constructor and Description |
---|
ContextHubInfo() |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
int |
getId()
get the context hub unique identifer
|
int |
getMaxPacketLengthBytes()
returns the maximum number of bytes that can be sent per message to the hub
|
MemoryRegion[] |
getMemoryRegions()
get the various memory regions on this hub
|
String |
getName()
get a string as a hub name
|
float |
getPeakMips()
get the peak processing mips the hub can support
|
float |
getPeakPowerDrawMw()
get the peak powe draw of the hub.
|
int |
getPlatformVersion()
get platform version
|
float |
getSleepPowerDrawMw()
get the power draw of the hub in sleep mode.
|
int |
getStaticSwVersion()
get static platform version number
|
float |
getStoppedPowerDrawMw()
get the stopped power draw in milliwatts
This assumes that the hub enter a stopped state - which is
different from the sleep state.
|
int[] |
getSupportedSensors()
get the sensors supported by this hub
|
String |
getToolchain()
get tool chain string
|
int |
getToolchainVersion()
get the tool chain version
|
String |
getVendor()
get a string as the vendor name
|
void |
setId(int id)
set the context hub unique identifer
|
void |
setMaxPacketLenBytes(int bytes)
set the context hub unique identifer
|
void |
setMemoryRegions(MemoryRegion[] memoryRegions)
set memory regions for this hub
|
void |
setName(String name)
set a string as the hub name
|
void |
setPeakMips(float peakMips)
set the peak mips that this hub can support
|
void |
setPeakPowerDrawMw(float peakPowerDrawMw)
set the peak power draw of the hub
|
void |
setPlatformVersion(int platformVersion)
set platform version
|
void |
setSleepPowerDrawMw(float sleepPowerDrawMw)
Set the sleep power draw in milliwatts
|
void |
setStaticSwVersion(int staticSwVersion)
set platform software version
|
void |
setStoppedPowerDrawMw(float stoppedPowerDrawMw)
Set the power consumed by the hub in stopped state
|
void |
setSupportedSensors(int[] supportedSensors)
set the supported sensors on this hub
|
void |
setToolchain(String toolchain)
set tool chain string
|
void |
setToolchainVersion(int toolchainVersion)
set the tool chain version number
|
void |
setVendor(String vendor)
set a string as the vendor name
|
String |
toString()
Returns a string representation of the object.
|
void |
writeToParcel(Parcel out,
int flags) |
public static final Parcelable.Creator<ContextHubInfo> CREATOR
public int getMaxPacketLengthBytes()
public void setMaxPacketLenBytes(int bytes)
bytes
- - Maximum number of bytes per messagepublic int getId()
public void setId(int id)
id
- - unique system wide identifier for the hubpublic String getName()
public void setName(String name)
name
- - the name for the hubpublic String getVendor()
public void setVendor(String vendor)
vendor
- - a name for the vendorpublic String getToolchain()
public void setToolchain(String toolchain)
toolchain
- - description of the tool chainpublic int getPlatformVersion()
public void setPlatformVersion(int platformVersion)
platformVersion
- - platform version numberpublic int getStaticSwVersion()
public void setStaticSwVersion(int staticSwVersion)
staticSwVersion
- - platform static s/w version numberpublic int getToolchainVersion()
public void setToolchainVersion(int toolchainVersion)
toolchainVersion
- - tool chain version numberpublic float getPeakMips()
public void setPeakMips(float peakMips)
peakMips
- - peak mips this hub can deliverpublic float getStoppedPowerDrawMw()
public void setStoppedPowerDrawMw(float stoppedPowerDrawMw)
stoppedPowerDrawMw
- - stopped power in milli wattspublic float getSleepPowerDrawMw()
public void setSleepPowerDrawMw(float sleepPowerDrawMw)
sleepPowerDrawMw
- - sleep power draw in milliwatts.public float getPeakPowerDrawMw()
public void setPeakPowerDrawMw(float peakPowerDrawMw)
peakPowerDrawMw
- - peak power draw of the hub in
milliwatts.public int[] getSupportedSensors()
ContextHubManager
public MemoryRegion[] getMemoryRegions()
MemoryRegion
public void setSupportedSensors(int[] supportedSensors)
supportedSensors
- - supported sensors on this hubpublic void setMemoryRegions(MemoryRegion[] memoryRegions)
memoryRegions
- - memory regions informationMemoryRegion
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public int describeContents()
public void writeToParcel(Parcel out, int flags)