Android Open Source - mitlocate A P Scan Result






From Project

Back to project page mitlocate.

License

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.

Java Source Code

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()+")"); }
}




Java Source Code List

edu.mit.locate.APEditorActivity.java
edu.mit.locate.BootLocationService.java
edu.mit.locate.LoginActivity.java
edu.mit.locate.MITHttpsClient.java
edu.mit.locate.MITLocationService.java
edu.mit.locate.MainActivity.java
edu.mit.locate.alerts.Alert.java
edu.mit.locate.alerts.AlertsListAdapter.java
edu.mit.locate.alerts.AlertsTab.java
edu.mit.locate.apeditor.APListAdapter.java
edu.mit.locate.apeditor.APScanResult.java
edu.mit.locate.friends.FriendActivity.java
edu.mit.locate.friends.Friend.java
edu.mit.locate.friends.FriendsListAdapter.java
edu.mit.locate.friends.FriendsTab.java
edu.mit.locate.tabs.IconPagerAdapter.java
edu.mit.locate.tabs.IcsLinearLayout.java
edu.mit.locate.tabs.NavigationTab.java
edu.mit.locate.tabs.PageIndicator.java
edu.mit.locate.tabs.SearchTab.java
edu.mit.locate.tabs.SettingsTab.java
edu.mit.locate.tabs.TabPageIndicator.java
edu.mit.locate.tabs.TabPagerAdapter.java