Back to project page Sensoria.
The source code is released under:
MIT License
If you think the Android project Sensoria listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.grocs.sensors.ui; /*from w ww . j a v a 2 s. c o m*/ import com.grocs.sensors.common.ISensorData; import com.grocs.sensors.common.ISensorDescription; public class SensorEntry { private final ISensorData fData; private final ISensorDescription fDescription; public SensorEntry(ISensorData data) { fData = data; fDescription = data.getDescription(); } public SensorEntry(ISensorDescription description) { fData = null; fDescription = description; } public boolean isSection() { return (null == fData); } public String getName() { return isSection() ? fDescription.getType() : fData.getSensor().getName(); } public ISensorData getSensorData() { return fData; } public ISensorDescription getSensorDescription() { return fDescription; } public String toString() { return "data:" + fData + ", description:" + fDescription; } }