package com.utic.center.utic.traf.server.dto;

import lombok.Data;

@Data
public class LinkTrafCenterDto {
    private boolean isTrafValid;
    private String linkId;
    private String missValueYn;
    private String regDate;
    private int    linkLevel;
    private int    speed;
    private int    travelTime;
    private String trafficGrade;
    private String incidentId;
    private String dataResType;
    private String centerId;

    private String psdMissValueYn;
    private int    psdSpeed;
    private int    knnSpeed;
    private int    knnCnt;

    public LinkTrafCenterDto(String linkId, int linkLevel) {
        this.linkLevel = linkLevel;
        this.linkId = linkId;
        init();
    }

    public void init() {
        this.isTrafValid = false;
        this.missValueYn = "N";
        this.regDate = "";
        this.speed = 0;
        this.travelTime = 0;
        this.trafficGrade = "00";
        this.incidentId = "";
        this.dataResType = "0";
        this.centerId = "C00";

        this.psdMissValueYn = "N";
        this.psdSpeed = 0;
        this.knnSpeed = 0;
        this.knnCnt = 0;
    }
}
