Back to project page CopresenceDataCollector.
The source code is released under:
Copyright (c) 2014, Xiang Gao All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Re...
If you think the Android project CopresenceDataCollector 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 org.sesy.coco.datacollector.plugin; /* w w w .java2s . com*/ public interface PlugInterface { public String getSensorData(); // @return: JSON string with data entry: Timestamp|Fingerprint_structure_string public double getDistance(String json1, String json2); // @param: JSON strings within identical time period // @return: unified distance (0-1) between two data Objects, // data Objects can be transformed to&from JSON strings using GSON library public int checkPluginState(); // @return: integer defined for states of sensors: 0 - not supported, 1 - supported but not enabled, 2 - enabled public String getPluginID(); // @return: the identity of plugin (technique) such as "GPS", "WIFI", "Audio" }