All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.gratour.jtmodel.trk.AcrossAreaAddt Maven / Gradle / Ivy

Go to download

`jt-core` is a java/scala communication processing library for JT808/JT809/JT1078 standard.

The newest version!
package info.gratour.jtmodel.trk;

/**
 * 进出区域/路线报警附加信息
 */
public class AcrossAreaAddt {

    public static final int DIR__ENTER = 0;
    public static final int DIR__LEAVE = 1;

    private byte dir;
    private byte typ;
    private int areaId;

    public byte getDir() {
        return dir;
    }

    public void setDir(byte dir) {
        this.dir = dir;
    }

    public boolean isEnter() {
        return dir == DIR__ENTER;
    }

    public boolean isLeave() {
        return dir == DIR__LEAVE;
    }

    public byte getTyp() {
        return typ;
    }

    public void setTyp(byte typ) {
        this.typ = typ;
    }

    public int getAreaId() {
        return areaId;
    }

    public void setAreaId(int areaId) {
        this.areaId = areaId;
    }

    @Override
    public String toString() {
        return "AcrossAreaAddt{" +
                "dir=" + dir +
                ", typ=" + typ +
                ", areaId=" + areaId +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy