package com.inspect.patrol.domain;

import com.inspect.base.core.annotation.Excel;
import com.inspect.base.core.web.domain.BaseEntity;

import java.util.List;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@Setter
@Getter
public class PatrolLinkageStrategy extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long linkageStrategyId;
    @Excel(
            name = "${comment}",
            readConverterExp = "$column.readConverterExp()"
    )
    private Long linkagePosId;
    @Excel(
            name = "触发信号类型：见trigger_signal_type"
    )
    private String triggerSignalType;
    @Excel(
            name = "触动信号名称"
    )
    private String linkageSignalName;
    @Excel(
            name = "属性：见linkage_attribute"
    )
    private String linkageAttribute;
    @Excel(
            name = "值：见linkage_value"
    )
    private String linkageValue;
    private List<PatrolLinkageStrategyRef> patrolLinkageStrategyRefs;
    private List<PatrolLinkageStrategyReverse> patrolLinkageStrategyReverses;
    @Excel(
            name = "是否有效"
    )
    private String isEnable;
    private String deviceName;
    private String stationNo;
    private String monitorIndexNo;
    private String linkageSignal;
    private String phyAssetId;
    private String deviceId;

    @Override
    public String toString() {
        return "PatrolLinkageStrategy{" +
                "linkageStrategyId=" + linkageStrategyId +
                ", linkagePosId=" + linkagePosId +
                ", triggerSignalType='" + triggerSignalType + '\'' +
                ", linkageSignalName='" + linkageSignalName + '\'' +
                ", linkageAttribute='" + linkageAttribute + '\'' +
                ", linkageValue='" + linkageValue + '\'' +
                ", patrolLinkageStrategyRefs=" + patrolLinkageStrategyRefs +
                ", patrolLinkageStrategyReverses=" + patrolLinkageStrategyReverses +
                ", isEnable='" + isEnable + '\'' +
                ", deviceName='" + deviceName + '\'' +
                ", stationNo='" + stationNo + '\'' +
                ", monitorIndexNo='" + monitorIndexNo + '\'' +
                ", linkageSignal='" + linkageSignal + '\'' +
                ", phyAssetId='" + phyAssetId + '\'' +
                ", deviceId='" + deviceId + '\'' +
                '}';
    }
}
