RealTimeGps.java 3.38 KB
package com.bsth.entity;

import java.io.Serializable;

public class RealTimeGps implements Serializable {

	private static final long serialVersionUID = -8996943161741177815L;
	private int companyCode;
	private int lineId;
	private String deviceId;
	private String carparkNo;
	private String stopNo;
	private float lon;
	private float lat;
	private long timestamp;
	private float speed;
	private float direction;
	// 营运状态
	private byte state = (byte)-1;
	// 上下行 -1无效 0上行 1下行
	private byte upDown;
	// 站内外 -1无效 0站外 1站内
	private byte inOrOutStation;
	// 场内外 -1无效 0场外 1场内
	private byte inOrOutCarpark;
	// 车辆内部编码
	private String vehicle;
	
	private byte valid = (byte)0;
	// 版本号
	private short version;
	
	private String insideCode;
	
	private long serverTimestamp;
	private String sectionCode;
	
	public String getSectionCode() {
		return sectionCode;
	}

	public void setSectionCode(String sectionCode) {
		this.sectionCode = sectionCode;
	}

	public short getVersion() {
		return version;
	}

	public void setVersion(short version) {
		this.version = version;
	}

	public long getServerTimestamp() {
		return serverTimestamp;
	}

	public void setServerTimestamp(long serverTimestamp) {
		this.serverTimestamp = serverTimestamp;
	}

	public byte getValid() {
		return valid;
	}

	public void setValid(byte valid) {
		this.valid = valid;
	}

	public String getVehicle() {
		return vehicle;
	}

	public void setVehicle(String vehicle) {
		this.vehicle = vehicle;
	}

	public byte getInOrOutStation() {
		return inOrOutStation;
	}

	public void setInOrOutStation(byte inOrOutStation) {
		this.inOrOutStation = inOrOutStation;
	}

	public byte getInOrOutCarpark() {
		return inOrOutCarpark;
	}

	public void setInOrOutCarpark(byte inOrOutCarpark) {
		this.inOrOutCarpark = inOrOutCarpark;
	}

	public int getCompanyCode() {
		return companyCode;
	}
	
	public void setCompanyCode(int companyCode) {
		this.companyCode = companyCode;
	}
	
	public int getLineId() {
		return lineId;
	}
	
	public void setLineId(int lineId) {
		this.lineId = lineId;
	}
	
	public String getDeviceId() {
		return deviceId;
	}
	
	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}
	
	public String getCarparkNo() {
		return carparkNo;
	}
	
	public void setCarparkNo(String carparkNo) {
		this.carparkNo = carparkNo;
	}
	
	public String getStopNo() {
		return stopNo;
	}
	
	public void setStopNo(String stopNo) {
		this.stopNo = stopNo;
	}
	
	public float getLon() {
		return lon;
	}
	
	public void setLon(float lon) {
		this.lon = lon;
	}
	
	public float getLat() {
		return lat;
	}
	
	public void setLat(float lat) {
		this.lat = lat;
	}
	
	public long getTimestamp() {
		return timestamp;
	}
	
	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}
	
	public float getSpeed() {
		return speed;
	}
	
	public void setSpeed(float speed) {
		this.speed = speed;
	}
	
	public float getDirection() {
		return direction;
	}
	
	public void setDirection(float direction) {
		this.direction = direction;
	}
	
	public byte getState() {
		return state;
	}
	
	public void setState(byte state) {
		this.state = state;
	}

	public byte getUpDown() {
		return upDown;
	}

	public void setUpDown(byte upDown) {
		this.upDown = upDown;
	}

	public String getInsideCode() {
		return insideCode;
	}

	public void setInsideCode(String insideCode) {
		this.insideCode = insideCode;
	}
}