高级算法 部分
This commit is contained in:
@@ -42,6 +42,11 @@
|
||||
<groupId>org.influxdb</groupId>
|
||||
<artifactId>influxdb-java</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.sun.jna</groupId>
|
||||
<artifactId>jna</artifactId>
|
||||
<version>3.0.9</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.njcn.event.pojo.po;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @version 1.0.0
|
||||
* @date 2022年08月18日 13:42
|
||||
* 电压区域综合评估基本类
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class BalanceInfo implements Serializable {
|
||||
@Data
|
||||
public class PointInfo {
|
||||
private Integer pointId;
|
||||
private String pointName;
|
||||
private QtIdx qtIdx;
|
||||
private float civ;
|
||||
private int l;
|
||||
|
||||
public PointInfo() {
|
||||
super();
|
||||
qtIdx = new QtIdx();
|
||||
}
|
||||
}
|
||||
@ApiModelProperty("区域的index")
|
||||
private String areaIndex;
|
||||
@ApiModelProperty("区域名称")
|
||||
private String areaName;
|
||||
@ApiModelProperty("系统最终的评估分")
|
||||
private float ci;
|
||||
@ApiModelProperty("监测点的详细信息")
|
||||
private List<PointInfo> list;
|
||||
@ApiModelProperty("标识是否经过计算,默认为0-未计算,1-计算")
|
||||
private int isCount;
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.njcn.event.pojo.po;
|
||||
|
||||
import com.sun.jna.Structure;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @version 1.0.0
|
||||
* @date 2022年08月18日 13:45
|
||||
* //单个监测点的暂降事件计算评价指标
|
||||
*/
|
||||
public class QtIdx extends Structure {
|
||||
@ApiModelProperty("暂降幅值")
|
||||
public float r_esm;
|
||||
@ApiModelProperty("sarifi-90")
|
||||
public int sarfi_90;
|
||||
@ApiModelProperty("sarifi-50")
|
||||
public int sarifi_50;
|
||||
@ApiModelProperty("暂降能量")
|
||||
public float r_asei;
|
||||
@ApiModelProperty("严重程度")
|
||||
public float r_assi;
|
||||
|
||||
public static class ByReference extends QtIdx implements Structure.ByReference {
|
||||
|
||||
}
|
||||
|
||||
public static class ByValue extends QtIdx implements Structure.ByValue {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List getFieldOrder() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj == null || !(obj instanceof QtIdx))
|
||||
return false;
|
||||
if (this == obj)
|
||||
return true;
|
||||
|
||||
QtIdx instance = (QtIdx) obj;
|
||||
|
||||
return (r_esm == instance.r_esm) && (sarfi_90 == instance.sarfi_90) && (sarifi_50 == instance.sarifi_50) && (r_asei == instance.r_asei) && (r_assi == instance.r_assi);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.njcn.event.pojo.po;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @version 1.0.0
|
||||
* @date 2022年08月19日 11:10
|
||||
*/
|
||||
@Data
|
||||
public class Sarifi implements Serializable {
|
||||
private Float sarifiValue;
|
||||
private Float time;
|
||||
private Float pt1;
|
||||
private Float pt2;
|
||||
}
|
||||
Reference in New Issue
Block a user