Back to project page mitlocate.
The source code is released under:
MIT License
If you think the Android project mitlocate 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 edu.mit.locate.apeditor; /* www .ja v a2 s. c o m*/ public class APScanResult { private String bssid, comment, building, floor, signal; private int type; public void setBSSID(String b) { bssid = b; } public String getBSSID() { return bssid; } public void setType(String t) { type = Integer.parseInt(t); } public String getType() { switch(type){ case 0: return "standard"; case 1: return "shuttle"; default: return "unknown"; } } public void setComment(String h) { comment = h; } public String getComment() { return comment; } public void setBuilding(String b) { building = b; } public String getBuilding() { return building; } public void setFloor(String f) { floor = f; } public String getFloor() { return floor; } public void setSignal(String s) { signal = s; } public String getSignal() { return signal; } public String getBSSIDComment() { return bssid.toUpperCase() + (comment.equals("") ? "" : " ("+comment+")"); } public String getBldgFloorType() { return (building.equals("")?"unknown building":"building "+building) + ", " + (floor.equals("")?"unknown floor":"floor "+floor+" ("+getType()+")"); } }