package com.njcn.advance.pojo.po.govern.voltage;

import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.db.bo.BaseEntity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author hongawen
 * @since 2024-02-29
 */
@Getter
@Setter
@TableName("sg_event")
@NoArgsConstructor
@AllArgsConstructor
public class SgEvent  implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
     * 暂降事件id
     */
    private String id;

    /**
     * 生产线id
     */
    private String productLineId;

    /**
     * 进线id
     */
    private String incomingLineId;

    /**
     * 暂降起始时间
     */
    private LocalDateTime startTime;

    /**
     * 事件类型
     */
    private String eventType;

    /**
     * 持续时间(单位：秒)
     */
    private Double duration;

    /**
     * 特征幅值
     */
    private Double featureAmplitude;

    /**
     * 预估损失(单位：万元)
     */
    private Double estimatedLoss;

    /**
     * 事件描述
     */
    private String eventDescribe;

    /**
     * 波形文件是否从装置招到本地(0：未招，1：已招)默认值为0
     */
    private Integer fileFlag;

    /**
     * 波形路径
     */
    private String wavePath;

    /**
     * 数据来源（0-离线导入 1-监测点实际数据同步）
     */
    private Integer dataSource;

    private Integer state;


    public SgEvent(String incomingLineId,  Double duration, Double featureAmplitude, String eventDescribe, Integer dataSource) {
        this.incomingLineId = incomingLineId;
        this.startTime = startTime;
        this.duration = duration;
        this.featureAmplitude = featureAmplitude;
        this.eventDescribe = eventDescribe;
        this.dataSource = dataSource;
    }
}
