SafeDriv.java 2.45 KB
package com.bsth.data.safe_driv;

/**
 * 安全驾驶
 * Created by panzhao on 2017/4/6.
 */
public class SafeDriv {

    /**
     * 时间
     * 2017-04-06 08:00:00.0
     */
    private String Startime;

    /**
     * 时间戳
     */
    private Long ts;

    /**
     * 设备编号
     */
    private String sbbh;

    /**
     * 线路名称
     */
    private String xlmc;

    private String xlbm;

    /**
     * 车辆自编号
     */
    private String clzbh;

    /**
     * 车牌号
     */
    private String cph;

    /**
     * 检查属性
     * 双脱手 0 单脱手 1 其他为0都是异常
     */
    private String jctype;

    /**
     * 异常种类
     * 手部检测: 1
     * 脸部检测: 5
     * 摄像头检测: 2
     * 安全带检测: 3
     * 袖章检测: 4
     */
    private String yczltype;

    @Override
    public int hashCode() {
        return ("safe_" + (this.getClzbh() + this.getStartime())).hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        SafeDriv s2 = (SafeDriv)obj;
        return (this.getClzbh() + this.getStartime()).equals(s2.getClzbh() + s2.getStartime());
    }

    public String getStartime() {
        return Startime;
    }

    public void setStartime(String startime) {
        Startime = startime;
    }

    public String getSbbh() {
        return sbbh;
    }

    public void setSbbh(String sbbh) {
        this.sbbh = sbbh;
    }

    public String getXlmc() {
        return xlmc;
    }

    public void setXlmc(String xlmc) {
        this.xlmc = xlmc;
    }

    public String getClzbh() {
        return clzbh;
    }

    public void setClzbh(String clzbh) {
        this.clzbh = clzbh;
    }

    public String getCph() {
        return cph;
    }

    public void setCph(String cph) {
        this.cph = cph;
    }

    public String getJctype() {
        return jctype;
    }

    public void setJctype(String jctype) {
        this.jctype = jctype;
    }

    public String getYczltype() {
        return yczltype;
    }

    public void setYczltype(String yczltype) {
        this.yczltype = yczltype;
    }

    public Long getTs() {
        return ts;
    }

    public void setTs(Long ts) {
        this.ts = ts;
    }

    public String getXlbm() {
        return xlbm;
    }

    public void setXlbm(String xlbm) {
        this.xlbm = xlbm;
    }
}