package com.its.vds.entity;

import lombok.*;

import java.io.Serializable;

/**
 *  Entity Class
 */
@Getter
@Setter
@Builder
@NoArgsConstructor//(access = AccessLevel.PROTECTED)
@AllArgsConstructor
public class TbVdsDtctClct implements Serializable {
    private static final long serialVersionUID = 1L;

    private String clctDt;
    private Long vdsDtctNmbr;
    private Integer trafClctCycl;
    private Integer tfvl;
    private Integer sTfvl;
    private Integer mTfvl;
    private Integer lTfvl;
    private Integer sped;
    private Double avrgOcpyRate;
    private Integer avrgLngt;
    private Integer hdwy;
    private Double spceOcpyRate;
    private Integer spceAvrgSped;
    private boolean isValid;

    public void initVal() {
        this.trafClctCycl = 0;
        this.tfvl         = 0;
        this.sTfvl        = 0;
        this.mTfvl        = 0;
        this.lTfvl        = 0;
        this.sped         = 0;
        this.avrgOcpyRate = 0.;
        this.avrgLngt     = 0;
        this.hdwy         = 0;
        this.spceOcpyRate = 0.;
        this.spceAvrgSped = 0;
        this.isValid      = false;
    }

}
