package com.imdroid.sideslope.sal;

import lombok.Data;

/**
 * 基站 & 测站设备
 *
 * @author Layton
 * @date 2023/2/3 20:39
 */
@Data
public class Device {

    /**
     * 基站
     */
    public static final int DEVICE_BASE_STATION = 1;

    /**
     * 测站
     */
    public static final int DEVICE_ROVER = 0;

    private String name;
    private Integer tenantId;

    private String deviceId;

    private String parentId;
    private String projectId;
    private String fwdId;

    private Integer deviceType;

    private Integer calcGroupId;
    private Short opMode;

    int d3xxbytes = 0;
    int b562bytes = 0;

    public void updateD331Bytes(int bytes){
        d3xxbytes += bytes;
    }

    public void updateD341Bytes(int bytes){
        b562bytes += bytes;
    }

    public void clearStat(){
        d3xxbytes = 0;
        b562bytes = 0;
    }

}
