Android Open Source - Realtime-Port-Authority Bus






From Project

Back to project page Realtime-Port-Authority.

License

The source code is released under:

Apache License

If you think the Android project Realtime-Port-Authority 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 rectangledbmi.com.pittsburghrealtimetracker.world;
/* w  w w .  j  a v  a  2 s  .  co m*/
public class Bus {

    private String vid;
    private String lat;
    private String lon;
    private String msg;
    private String tmstmp;
    private String hdg;
    private String pid;
    private String rt;
    private String des;
    private String pdist;
    private String dly;
    private String spd;
    private String tablockid;
    private String tatripid;

    public float getLat() {
        return Float.parseFloat(lat);
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getRt() { return rt; }

    public void setRt(String rt) {
        this.rt = rt;
    }

    public float getLon() {
        return Float.parseFloat(lon);
    }

    public void setLon(String lon) {
        this.lon = lon;
    }

    public int getVid() {
        return Integer.parseInt(vid);
    }

    public void setVid(String vid) {
        this.vid = vid;
    }

    public int getSpd() { return Integer.parseInt(spd); }

    public boolean isDly() { return "true".equals(dly); }

    public void setSpd(String spd) {
        this.spd = spd;
    }

    public int getHdg() { return Integer.parseInt(hdg); }

    public void setHdg(String hdg) {
        this.hdg = hdg;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setTmStmp(String tmStmp) {
        this.tmstmp = tmStmp;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public void setPdist(String pdist) {
        this.pdist = pdist;
    }

    public void setDly(String dly) {
        this.dly = dly;
    }

    public void setTablockid(String tablockid) {
        this.tablockid = tablockid;
    }

    public void setTatripid(String tatripid) {
        this.tatripid = tatripid;
    }

    @Override
    public String toString() {
        return vid + "\t" + lat + "\t" + lon + "\t" + tmstmp + "\t" + hdg
                + "\t" + pid + "\t" + rt + "\t" + des + "\t" + pdist + "\t"
                + spd + "\t" + tablockid + "\t" + tatripid;
    }
}




Java Source Code List

.Globals.java
.PortAuthorityRealtime.java
rectangledbmi.com.pittsburghrealtimetracker.AboutActivity.java
rectangledbmi.com.pittsburghrealtimetracker.ApplicationTest.java
rectangledbmi.com.pittsburghrealtimetracker.BusInformationDialog.java
rectangledbmi.com.pittsburghrealtimetracker.NavigationDrawerFragment.java
rectangledbmi.com.pittsburghrealtimetracker.SelectTransit.java
rectangledbmi.com.pittsburghrealtimetracker.handlers.BusNotRunningException.java
rectangledbmi.com.pittsburghrealtimetracker.handlers.BusSaxHandler.java
rectangledbmi.com.pittsburghrealtimetracker.handlers.BusXMLPullParser.java
rectangledbmi.com.pittsburghrealtimetracker.handlers.InputSave.java
rectangledbmi.com.pittsburghrealtimetracker.handlers.PredictionsXMLPullParser.java
rectangledbmi.com.pittsburghrealtimetracker.handlers.RequestLine.java
rectangledbmi.com.pittsburghrealtimetracker.handlers.RequestPredictions.java
rectangledbmi.com.pittsburghrealtimetracker.handlers.RequestRoutes.java
rectangledbmi.com.pittsburghrealtimetracker.handlers.RequestTask.java
rectangledbmi.com.pittsburghrealtimetracker.handlers.RouteSaxHandler.java
rectangledbmi.com.pittsburghrealtimetracker.handlers.TransitSAXHandler.java
rectangledbmi.com.pittsburghrealtimetracker.handlers.containers.ETAContainer.java
rectangledbmi.com.pittsburghrealtimetracker.handlers.containers.RequestLineContainer.java
rectangledbmi.com.pittsburghrealtimetracker.handlers.extend.CheckableRelativeLayout.java
rectangledbmi.com.pittsburghrealtimetracker.handlers.extend.ColoredArrayAdapter.java
rectangledbmi.com.pittsburghrealtimetracker.handlers.extend.ETAWindowAdapter.java
rectangledbmi.com.pittsburghrealtimetracker.world.Bus.java
rectangledbmi.com.pittsburghrealtimetracker.world.LineInfo.java
rectangledbmi.com.pittsburghrealtimetracker.world.Prediction.java
rectangledbmi.com.pittsburghrealtimetracker.world.Route.java
rectangledbmi.com.pittsburghrealtimetracker.world.TransitStop.java