info.gratour.jtmodel.trk.AdasTyreState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jt-core Show documentation
Show all versions of jt-core Show documentation
`jt-core` is a java/scala communication processing library for JT808/JT809/JT1078 standard.
The newest version!
/*******************************************************************************
* Copyright (c) 2019, 2020 lucendar.com.
* All rights reserved.
*
* Contributors:
* KwanKin Yau ([email protected]) - initial API and implementation
*******************************************************************************/
package info.gratour.jtmodel.trk;
import java.util.List;
public class AdasTyreState {
public static final byte FLAG__NOT_AVAILABLE = 0;
public static final byte FLAG__START = 1;
public static final byte FLAG__END = 2;
private int almId;
private byte flag;
private short spd;
private short alt;
private double lat;
private double lng;
private long tm;
private short vehSt;
private String almNo;
private List pressureAlarmInfoList;
public int getAlmId() {
return almId;
}
public void setAlmId(int almId) {
this.almId = almId;
}
public byte getFlag() {
return flag;
}
public void setFlag(byte flag) {
this.flag = flag;
}
public boolean flagIsStartOrNA() {
return flag == FLAG__NOT_AVAILABLE || flag == FLAG__START;
}
public short getSpd() {
return spd;
}
public void setSpd(short spd) {
this.spd = spd;
}
public short getAlt() {
return alt;
}
public void setAlt(short alt) {
this.alt = alt;
}
public double getLat() {
return lat;
}
public void setLat(double lat) {
this.lat = lat;
}
public double getLng() {
return lng;
}
public void setLng(double lng) {
this.lng = lng;
}
public long getTm() {
return tm;
}
public void setTm(long tm) {
this.tm = tm;
}
public short getVehSt() {
return vehSt;
}
public void setVehSt(short vehSt) {
this.vehSt = vehSt;
}
public String getAlmNo() {
return almNo;
}
public void setAlmNo(String almNo) {
this.almNo = almNo;
}
public List getPressureAlarmInfoList() {
return pressureAlarmInfoList;
}
public void setPressureAlarmInfoList(List pressureAlarmInfoList) {
this.pressureAlarmInfoList = pressureAlarmInfoList;
}
@Override
public String toString() {
return "AdasTyreState{" +
"almId=" + almId +
", flag=" + flag +
", spd=" + spd +
", alt=" + alt +
", lat=" + lat +
", lng=" + lng +
", tm=" + tm +
", vehSt=" + vehSt +
", almNo=" + almNo +
", pressureAlarmInfoList=" + pressureAlarmInfoList +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy