package com.qiwu.inference.auto.pojo; import lombok.Getter; import lombok.Setter; import java.io.Serializable; import java.util.Objects; @Getter @Setter public class Clue implements Serializable { private static final long serialVersionUID = 1L; /** * id */ private Integer id; /** * 线索id */ private int clueId; /** * 线索名称 */ private String clueName; /** * 主体 */ private int subject; /** * 客体 */ private int object; /** * 描述 */ private String description; /** * 类型: 1:身份 2:场所 3:性格爱好 4:行为 5:关系 6:任务 9: 关键线索 */ private int type; /** * 信息级别 */ private int infoLevel; /** * 关联人物 */ private int associatedPerson; /** * 线索模板 */ private String clueTemplate; /** * 信任度 */ private int trustDegree=100; /** * 威胁度 */ private int deterrenceDegree=100; /** * 1 表示不满足阈值条件 2表示满足阈值 3表示可以解锁任务 */ private int status=1; //private DemandTask demandTask; @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Clue clue = (Clue) o; return Objects.equals(id, clue.id) && clueId == clue.clueId && subject == clue.subject && clueName.equals(clue.clueName); } @Override public int hashCode() { return Objects.hash(id, clueId, clueName, subject); } }