From fde6a8b6842de6e0d450f60fbad3c010ad3ee0db Mon Sep 17 00:00:00 2001 From: caixiang <939387484@qq.com> Date: Wed, 27 Jul 2022 20:04:38 +0800 Subject: [PATCH] mark --- .../com/cnbm/influx/constant/Constant.java | 1 + .../java/com/cnbm/influx/param/BaseParam.java | 2 + .../ProcessInspectionController.java | 48 +++++- .../cnbm/processInspection/dto/GraphArg.java | 32 ++++ .../dto/InterpretationListArg.java | 18 +++ .../MeanStandardDeviationGraph.java | 82 +++++++++- .../common/StatisticalControlledTest.java | 145 ++++++++++++++++-- .../entity/InterpretationListArg.java | 20 +++ .../cnbm/qualityPlanning/entity/Point.java | 25 ++- .../qualityPlanning/entity/XbarSPoint.java | 38 ++++- 10 files changed, 384 insertions(+), 27 deletions(-) create mode 100644 ym-process-inspection/src/main/java/com/cnbm/processInspection/dto/GraphArg.java create mode 100644 ym-process-inspection/src/main/java/com/cnbm/processInspection/dto/InterpretationListArg.java create mode 100644 ym-quality-planning/src/main/java/com/cnbm/qualityPlanning/entity/InterpretationListArg.java diff --git a/ym-influx/src/main/java/com/cnbm/influx/constant/Constant.java b/ym-influx/src/main/java/com/cnbm/influx/constant/Constant.java index f8ed653..113d69f 100644 --- a/ym-influx/src/main/java/com/cnbm/influx/constant/Constant.java +++ b/ym-influx/src/main/java/com/cnbm/influx/constant/Constant.java @@ -18,6 +18,7 @@ public class Constant { public static final LogLevel readTimeout = LogLevel.BODY; public static final LogLevel writeTimeout = LogLevel.BODY; public static final LogLevel connectTimeout = LogLevel.BODY; + public static final String measurement = "Weight"; } diff --git a/ym-influx/src/main/java/com/cnbm/influx/param/BaseParam.java b/ym-influx/src/main/java/com/cnbm/influx/param/BaseParam.java index efcc9d4..e1807bc 100644 --- a/ym-influx/src/main/java/com/cnbm/influx/param/BaseParam.java +++ b/ym-influx/src/main/java/com/cnbm/influx/param/BaseParam.java @@ -21,4 +21,6 @@ public class BaseParam implements Serializable { @NotNull(message = "查询时间段不能为空") private Range range; + + } diff --git a/ym-process-inspection/src/main/java/com/cnbm/processInspection/controller/ProcessInspectionController.java b/ym-process-inspection/src/main/java/com/cnbm/processInspection/controller/ProcessInspectionController.java index ff9bc96..fd97caf 100644 --- a/ym-process-inspection/src/main/java/com/cnbm/processInspection/controller/ProcessInspectionController.java +++ b/ym-process-inspection/src/main/java/com/cnbm/processInspection/controller/ProcessInspectionController.java @@ -1,5 +1,6 @@ package com.cnbm.processInspection.controller; +import com.cnbm.basic.dto.FactoryDTO; import com.cnbm.basic.dto.UnitDTO; import com.cnbm.basic.entity.ProductFeatures; import com.cnbm.common.spc.math.StandardDiviation; @@ -13,23 +14,30 @@ import com.cnbm.influx.param.QueryDataParam; import com.cnbm.influx.param.Range; import com.cnbm.influx.param.Tag; import com.cnbm.influx.template.Event; +import com.cnbm.processInspection.dto.GraphArg; +import com.cnbm.processInspection.dto.InterpretationListArg; import com.cnbm.processInspection.dto.XbarSGraphData; import com.cnbm.processInspection.graphAnalyzed.MeanStandardDeviationGraph; +import com.cnbm.qualityPlanning.common.StatisticalControlledTest; +import com.cnbm.qualityPlanning.entity.ControlLimit; +import com.cnbm.qualityPlanning.entity.Point; import com.cnbm.qualityPlanning.entity.SpecificationLimit; +import com.cnbm.qualityPlanning.entity.XbarSPoint; import com.influxdb.client.domain.WritePrecision; -import com.influxdb.client.write.Point; import com.influxdb.query.FluxRecord; import com.influxdb.query.FluxTable; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.math.BigDecimal; import java.time.Instant; import java.util.ArrayList; +import java.util.Date; import java.util.List; import java.util.Random; @@ -40,8 +48,8 @@ public class ProcessInspectionController { - @PostMapping("/XbarSGraph") - public R xbarSGraph() throws Exception { + @PostMapping("/XbarSGraphTest") + public R xbarSGraphTest() throws Exception { ProductFeatures productFeatures = new ProductFeatures(); productFeatures.setSl(new Float(5)); productFeatures.setUsl(new Float(10)); @@ -55,6 +63,40 @@ public class ProcessInspectionController { queryDataParam.setMeasurement("Weight"); queryDataParam.setRange(new Range(DataUtils.getBeforeDate(10).toInstant(), Instant.now())); meanStandardDeviationGraph.initialDate(queryDataParam); + + XbarSGraphData xbarSGraphData = new XbarSGraphData( + meanStandardDeviationGraph.getMsdGraphEntity(), + meanStandardDeviationGraph.getXbarCL(), + meanStandardDeviationGraph.getSCL(), + meanStandardDeviationGraph.getSpecificationLimit(), + meanStandardDeviationGraph.getProcessCapacity(), + new StandardDiviation(meanStandardDeviationGraph.getXigma(),meanStandardDeviationGraph.getTotalXigma()) + ); + + return R.ok("成功",xbarSGraphData); + } + + + //筛选条件顺序: + // ① 先工厂(产品表) => ② 检验类型(产品表)=> ③ 产品名(产品表)=> ④ 工序(产品表)=> ⑤ 特性(检验参数name)( product_features 表) ;; + // ① 时间段(influxdb,必填);② 样本大小(界面上可以设置,如果要自己设置,就要更新 ProductFeatures.name) + //条件:1.检验时间段(influxdb里面) ; 7.样本大小(这个可选,也可以 用默认,产品那里配置。) + // 2.工厂(先放一下) ; + // 3.检验类型(产品表) ; 4.产品名 (产品表); 5.工艺流程(就是工序 ,也是设备名,用到工序表); 6.特性(product_features.name ,也是influxdb中的argName) ; + @PostMapping("/XbarSGraph") + public R xbarSGraph(@RequestBody GraphArg graphArg) throws Exception { + + ProductFeatures productFeatures = graphArg.getProductFeatures(); + + MeanStandardDeviationGraph meanStandardDeviationGraph = new MeanStandardDeviationGraph(productFeatures); + if(graphArg.getInterpretationScheme()!=null){ + meanStandardDeviationGraph.isNeedInterpretation(graphArg.getInterpretationScheme()); + } + QueryDataParam queryDataParam = new QueryDataParam(); + queryDataParam.setMeasurement(Constant.measurement); + queryDataParam.setRange(new Range(graphArg.getBegin().toInstant(), graphArg.getEnd().toInstant())); + meanStandardDeviationGraph.initialDate(queryDataParam); + XbarSGraphData xbarSGraphData = new XbarSGraphData( meanStandardDeviationGraph.getMsdGraphEntity(), meanStandardDeviationGraph.getXbarCL(), diff --git a/ym-process-inspection/src/main/java/com/cnbm/processInspection/dto/GraphArg.java b/ym-process-inspection/src/main/java/com/cnbm/processInspection/dto/GraphArg.java new file mode 100644 index 0000000..b35a7ff --- /dev/null +++ b/ym-process-inspection/src/main/java/com/cnbm/processInspection/dto/GraphArg.java @@ -0,0 +1,32 @@ +package com.cnbm.processInspection.dto; + +import com.cnbm.basic.entity.ProductFeatures; +import com.cnbm.influx.param.Range; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.Date; +import java.util.List; + +/** + * @Desc: "" + * @Author: caixiang + * @DATE: 2022/7/26 14:44 + */ +@Data +@ApiModel(value = "控制图 查询参数类") +public class GraphArg { + @ApiModelProperty(value = "检验特性,,全量传过来") + private ProductFeatures productFeatures; + + @ApiModelProperty(value = "查询时间段,开始") + private Date begin; + + @ApiModelProperty(value = "查询时间段,结束") + private Date end; + + @ApiModelProperty(value = "判读方案列表") + private List interpretationScheme; + +} diff --git a/ym-process-inspection/src/main/java/com/cnbm/processInspection/dto/InterpretationListArg.java b/ym-process-inspection/src/main/java/com/cnbm/processInspection/dto/InterpretationListArg.java new file mode 100644 index 0000000..7f3e43f --- /dev/null +++ b/ym-process-inspection/src/main/java/com/cnbm/processInspection/dto/InterpretationListArg.java @@ -0,0 +1,18 @@ +package com.cnbm.processInspection.dto; + +import lombok.Data; + +import java.util.ArrayList; +import java.util.List; + +/** + * @Desc: "" + * @Author: caixiang + * @DATE: 2022/7/27 15:56 + */ +@Data +public class InterpretationListArg { + private Integer number; + private Integer arg1; + private Integer arg2; +} diff --git a/ym-process-inspection/src/main/java/com/cnbm/processInspection/graphAnalyzed/MeanStandardDeviationGraph.java b/ym-process-inspection/src/main/java/com/cnbm/processInspection/graphAnalyzed/MeanStandardDeviationGraph.java index 2a574a3..b85cb3e 100644 --- a/ym-process-inspection/src/main/java/com/cnbm/processInspection/graphAnalyzed/MeanStandardDeviationGraph.java +++ b/ym-process-inspection/src/main/java/com/cnbm/processInspection/graphAnalyzed/MeanStandardDeviationGraph.java @@ -4,19 +4,16 @@ import com.cnbm.basic.entity.ProductFeatures; import com.cnbm.common.spc.math.Math; import com.cnbm.common.spc.math.StandardDiviation; import com.cnbm.common.spc.util.DataUtils; -import com.cnbm.common.utils.DateUtils; import com.cnbm.influx.config.InfluxClient; import com.cnbm.influx.constant.Constant; -import com.cnbm.influx.param.PageInfo; import com.cnbm.influx.param.QueryDataParam; import com.cnbm.influx.param.Range; import com.cnbm.influx.param.Tag; import com.cnbm.processInspection.controlCoefficientConstant.XBarSCoefficients; -import com.cnbm.qualityPlanning.entity.ControlLimit; -import com.cnbm.qualityPlanning.entity.ProcessCapability; -import com.cnbm.qualityPlanning.entity.SpecificationLimit; -import com.cnbm.qualityPlanning.entity.XbarSPoint; +import com.cnbm.processInspection.dto.InterpretationListArg; +import com.cnbm.qualityPlanning.common.StatisticalControlledTest; +import com.cnbm.qualityPlanning.entity.*; import com.influxdb.query.FluxRecord; import com.influxdb.query.FluxTable; import lombok.Data; @@ -51,6 +48,8 @@ public class MeanStandardDeviationGraph { //母体的 xigma ,全局计算的; private Double totalXigma; + //需要去检验的 判读方案 eg:[1,2,3,4,6] + private List interpretationScheme; private Double sbar; private Double xbarbar; @@ -88,6 +87,10 @@ public class MeanStandardDeviationGraph { return res; } + public void isNeedInterpretation(List list){ + this.interpretationScheme = list; + } + /** * name : 初始化数据函数 * desc : 从influxdb 里面读取数据,然后 加工处理成 我需要的 @@ -131,7 +134,8 @@ public class MeanStandardDeviationGraph { new Double(0), xbar, s, - r + r, + doubleListList.get(i) ) ); } @@ -145,8 +149,72 @@ public class MeanStandardDeviationGraph { Double sbar = Math.getMean(toDoubleArray(sArray.toArray())); Double rbar = Math.getMean(toDoubleArray(rArray.toArray())); this.msdGraphEntity = new MSDGraphEntity(list,xbarbar,sbar,rbar); + + //4.判读方案 校验 + // 开始 + if(this.interpretationScheme != null){ + List forXBar = new ArrayList<>(); + List forS = new ArrayList<>(); + for(XbarSPoint x:list){ + forXBar.add(new Point(x.getPosition(),x.getXbar())); + forS.add(new Point(x.getPosition(),x.getS())); + } + ControlLimit xbarcl = getXbarCL(); + ControlLimit scl = getSCL(); + + for(InterpretationListArg arg : this.interpretationScheme){ + switch (arg.getNumber())//值必须是整型或者字符型 + { + case 1: + StatisticalControlledTest.rule1(forXBar,xbarcl); + StatisticalControlledTest.rule1(forS,scl); + break; + case 2: + StatisticalControlledTest.rule2(forXBar,xbarcl,arg.getArg1()); + StatisticalControlledTest.rule2(forS,scl,arg.getArg1()); + break; + case 3: + StatisticalControlledTest.rule3(forXBar,arg.getArg1()); + StatisticalControlledTest.rule3(forS,arg.getArg1()); + break; + case 4: + StatisticalControlledTest.rule4(forXBar,arg.getArg1()); + StatisticalControlledTest.rule4(forS,arg.getArg1()); + break; + case 5: + StatisticalControlledTest.rule5(forXBar,xbarcl,arg.getArg1(), arg.getArg2()); + StatisticalControlledTest.rule5(forS,scl,arg.getArg1(), arg.getArg2()); + break; + case 6: + StatisticalControlledTest.rule6(forXBar,xbarcl,arg.getArg1(), arg.getArg2()); + StatisticalControlledTest.rule6(forS,scl,arg.getArg1(), arg.getArg2()); + break; + case 7: + StatisticalControlledTest.rule7(forXBar,xbarcl,arg.getArg1()); + StatisticalControlledTest.rule7(forS,scl, arg.getArg1()); + + break; + case 8: + StatisticalControlledTest.rule8(forXBar,xbarcl, arg.getArg1()); + StatisticalControlledTest.rule8(forS,scl, arg.getArg1()); + break; + default: + break; + } + } + + for(int i=0;i createData2(){ XbarSPoint point = new XbarSPoint(1, new Double(2.5)); + point.setS(new Double(2.5)); XbarSPoint point2 = new XbarSPoint(2, new Double(2.5)); + point2.setS(new Double(2.5)); XbarSPoint point3 = new XbarSPoint(3, new Double(2.5)); + point3.setS(new Double(2.5)); XbarSPoint point4 = new XbarSPoint(4, new Double(2.5)); + point4.setS(new Double(2.5)); XbarSPoint point5 = new XbarSPoint(5, new Double(2.5)); + point5.setS(new Double(2.5)); XbarSPoint point6 = new XbarSPoint(6, new Double(2.5)); + point6.setS(new Double(2.5)); XbarSPoint point7 = new XbarSPoint(7, new Double(2.5)); + point7.setS(new Double(2.5)); XbarSPoint point8 = new XbarSPoint(8, new Double(2)); + point8.setS(new Double(2)); XbarSPoint point9 = new XbarSPoint(9, new Double(2.5)); + point9.setS(new Double(2.5)); XbarSPoint point10 = new XbarSPoint(10, new Double(2.5)); + point10.setS(new Double(2.5)); XbarSPoint point11 = new XbarSPoint(11, new Double(2.5)); + point11.setS(new Double(2.5)); XbarSPoint point12 = new XbarSPoint(12, new Double(2.5)); + point12.setS(new Double(2.5)); XbarSPoint point13 = new XbarSPoint(13,new Double(2.5)); + point13.setS(new Double(2.5)); XbarSPoint point14 = new XbarSPoint(14,new Double(2.5)); + point14.setS(new Double(2.5)); XbarSPoint point15 = new XbarSPoint(15,new Double(2.5)); + point15.setS(new Double(2.5)); XbarSPoint point16 = new XbarSPoint(16,new Double(2)); + point16.setS(new Double(2)); XbarSPoint point17 = new XbarSPoint(17,new Double(2.5)); + point17.setS(new Double(2.5)); XbarSPoint point18 = new XbarSPoint(18,new Double(2.5)); + point18.setS(new Double(2.5)); XbarSPoint point19 = new XbarSPoint(19,new Double(2.5)); + point19.setS(new Double(2.5)); XbarSPoint point20 = new XbarSPoint(20,new Double(2.5)); + point20.setS(new Double(2.5)); XbarSPoint point21 = new XbarSPoint(21,new Double(2.5)); + point21.setS(new Double(2.5)); XbarSPoint point22 = new XbarSPoint(22,new Double(2.5)); + point22.setS(new Double(2.5)); XbarSPoint point23 = new XbarSPoint(23,new Double(2.5)); + point23.setS(new Double(2.5)); List list = new ArrayList<>(); list.add(point); list.add(point2); @@ -114,10 +134,107 @@ public class StatisticalControlledTest { list.add(point23); return list; } + public static List createData3(){ + XbarSPoint point = new XbarSPoint(1, new Double(2.5)); + point.setS(new Double(0.5)); + point.setXbar(new Double(2.5)); + XbarSPoint point2 = new XbarSPoint(2, new Double(2.5)); + point2.setS(new Double(0.5)); + point2.setXbar(new Double(2.5)); + XbarSPoint point3 = new XbarSPoint(3, new Double(2.5)); + point3.setS(new Double(0.5)); + point3.setXbar(new Double(2.5)); + XbarSPoint point4 = new XbarSPoint(4, new Double(2.5)); + point4.setS(new Double(0.5)); + point4.setXbar(new Double(2.5)); + XbarSPoint point5 = new XbarSPoint(5, new Double(2.5)); + point5.setS(new Double(0.5)); + point5.setXbar(new Double(2.5)); + XbarSPoint point6 = new XbarSPoint(6, new Double(2.5)); + point6.setS(new Double(5)); + point6.setXbar(new Double(5)); + XbarSPoint point7 = new XbarSPoint(7, new Double(2.5)); + point7.setS(new Double(20.5)); + point7.setXbar(new Double(20.5)); + XbarSPoint point8 = new XbarSPoint(8, new Double(2)); + point8.setS(new Double(2)); + point8.setXbar(new Double(2.5)); + XbarSPoint point9 = new XbarSPoint(9, new Double(2.5)); + point9.setS(new Double(2.5)); + point9.setXbar(new Double(2.5)); + XbarSPoint point10 = new XbarSPoint(10, new Double(2.5)); + point10.setS(new Double(2.5)); + point10.setXbar(new Double(2.5)); + XbarSPoint point11 = new XbarSPoint(11, new Double(2.5)); + point11.setS(new Double(2.5)); + point11.setXbar(new Double(2.5)); + XbarSPoint point12 = new XbarSPoint(12, new Double(2.5)); + point12.setS(new Double(2.5)); + point12.setXbar(new Double(2.5)); + XbarSPoint point13 = new XbarSPoint(13,new Double(2.5)); + point13.setS(new Double(30.5)); + point13.setXbar(new Double(30.5)); + XbarSPoint point14 = new XbarSPoint(14,new Double(2.5)); + point14.setS(new Double(2.5)); + point14.setXbar(new Double(2.5)); + XbarSPoint point15 = new XbarSPoint(15,new Double(2.5)); + point15.setS(new Double(7)); + point15.setXbar(new Double(2.5)); + XbarSPoint point16 = new XbarSPoint(16,new Double(2)); + point16.setS(new Double(7)); + point16.setXbar(new Double(2.5)); + XbarSPoint point17 = new XbarSPoint(17,new Double(2.5)); + point17.setS(new Double(7)); + point17.setXbar(new Double(2.5)); + XbarSPoint point18 = new XbarSPoint(18,new Double(2.5)); + point18.setS(new Double(7)); + point18.setXbar(new Double(2.5)); + XbarSPoint point19 = new XbarSPoint(19,new Double(2.5)); + point19.setS(new Double(7)); + point19.setXbar(new Double(2.5)); + XbarSPoint point20 = new XbarSPoint(20,new Double(2.5)); + point20.setS(new Double(7)); + point20.setXbar(new Double(2.5)); + XbarSPoint point21 = new XbarSPoint(21,new Double(2.5)); + point21.setS(new Double(7)); + point21.setXbar(new Double(2.5)); + XbarSPoint point22 = new XbarSPoint(22,new Double(2.5)); + point22.setS(new Double(7)); + point22.setXbar(new Double(2.5)); + XbarSPoint point23 = new XbarSPoint(23,new Double(2.5)); + point23.setS(new Double(7)); + point23.setXbar(new Double(2.5)); + List list = new ArrayList<>(); + list.add(point); + list.add(point2); + list.add(point3); + list.add(point4); + list.add(point5); + list.add(point6); + list.add(point7); + list.add(point8); + list.add(point9); + list.add(point10); + list.add(point11); + list.add(point12); + list.add(point13); + list.add(point14); + list.add(point15); + list.add(point16); + list.add(point17); + list.add(point18); + list.add(point19); + list.add(point20); + list.add(point21); + list.add(point22); + list.add(point23); + return list; + } public static void main(String[] args) { // List list = createData(); List list = createData2(); + ControlLimit controlLimit = new ControlLimit(new Double(12),new Double(3),new Double(1)); System.out.println("controlLimit : "+controlLimit.toString()); // @@ -154,8 +271,8 @@ public class StatisticalControlledTest { // System.out.println(); //TEST FOR RULE8 - Boolean aBoolean8 = rule8(list, controlLimit,8); - System.out.println(); +// Boolean aBoolean8 = rule8(list, controlLimit,8); +// System.out.println(); // int[] array={1,2,3,4,5,6}; // int[] ret=new int[3]; @@ -172,7 +289,7 @@ public class StatisticalControlledTest { * 存在满足rule1的点 => true * 不存在满足rule1的点 => false * */ - private static Boolean rule1(List data, ControlLimit controlLimit){ + public static Boolean rule1(List data, ControlLimit controlLimit){ Boolean flag = false; for(Point i:data){ if(i.getValueForInterpretation() > controlLimit.getUCL() || i.getValueForInterpretation() < controlLimit.getLCL()){ @@ -198,7 +315,7 @@ public class StatisticalControlledTest { * 存在满足rule2的点 => true * 不存在满足rule2的点 => false * */ - private static Boolean rule2(List data, ControlLimit controlLimit,Integer n){ + public static Boolean rule2(List data, ControlLimit controlLimit,Integer n){ Boolean result = false; List upList = new ArrayList<>(); @@ -300,7 +417,7 @@ public class StatisticalControlledTest { * 存在满足rule3的点 => true * 不存在满足rule3的点 => false * */ - private static Boolean rule3(List data, Integer n){ + public static Boolean rule3(List data, Integer n){ //递增情况 Integer upi = 0; @@ -362,7 +479,7 @@ public class StatisticalControlledTest { * 存在满足rule4的点 => true * 不存在满足rule4的点 => false * */ - private static Boolean rule4(List data, Integer n){ + public static Boolean rule4(List data, Integer n){ if(n<=2){ return false; } @@ -499,7 +616,7 @@ public class StatisticalControlledTest { * 存在满足rule5的点 => true * 不存在满足rule5的点 => false * */ - private static Boolean rule5(List data,ControlLimit controlLimit, Integer m, Integer n){ + public static Boolean rule5(List data,ControlLimit controlLimit, Integer m, Integer n){ Boolean result = false; Integer upi = 0; List upforMarkKey = new ArrayList<>(); @@ -572,7 +689,7 @@ public class StatisticalControlledTest { * 存在满足rule6的点 => true * 不存在满足rule6的点 => false * */ - private static Boolean rule6(List data,ControlLimit controlLimit, Integer m, Integer n){ + public static Boolean rule6(List data,ControlLimit controlLimit, Integer m, Integer n){ Boolean result = false; Integer upi = 0; List upforMarkKey = new ArrayList<>(); @@ -649,7 +766,7 @@ public class StatisticalControlledTest { * 存在满足rule7的点 => true * 不存在满足rule7的点 => false * */ - private static Boolean rule7(List data,ControlLimit controlLimit, Integer n){ + public static Boolean rule7(List data,ControlLimit controlLimit, Integer n){ Boolean result = false; @@ -715,7 +832,7 @@ public class StatisticalControlledTest { * 存在满足rule8的点 => true * 不存在满足rule8的点 => false * */ - private static Boolean rule8(List data,ControlLimit controlLimit, Integer n){ + public static Boolean rule8(List data,ControlLimit controlLimit, Integer n){ Boolean result = true; //Integer upi = 0; diff --git a/ym-quality-planning/src/main/java/com/cnbm/qualityPlanning/entity/InterpretationListArg.java b/ym-quality-planning/src/main/java/com/cnbm/qualityPlanning/entity/InterpretationListArg.java new file mode 100644 index 0000000..a964c7c --- /dev/null +++ b/ym-quality-planning/src/main/java/com/cnbm/qualityPlanning/entity/InterpretationListArg.java @@ -0,0 +1,20 @@ +package com.cnbm.qualityPlanning.entity; + +import lombok.Data; + +/** + * @Desc: "" + * @Author: caixiang + * @DATE: 2022/7/27 15:56 + */ +@Data +public class InterpretationListArg { + private Integer number; + private Integer arg1; + private Integer arg2; + public InterpretationListArg(Integer number,Integer arg1,Integer arg2){ + this.number = number; + this.arg1 = arg1; + this.arg2 = arg2; + } +} diff --git a/ym-quality-planning/src/main/java/com/cnbm/qualityPlanning/entity/Point.java b/ym-quality-planning/src/main/java/com/cnbm/qualityPlanning/entity/Point.java index 8868ee4..93c53e1 100644 --- a/ym-quality-planning/src/main/java/com/cnbm/qualityPlanning/entity/Point.java +++ b/ym-quality-planning/src/main/java/com/cnbm/qualityPlanning/entity/Point.java @@ -10,7 +10,6 @@ import java.util.Set; * @Author: caixiang * @DATE: 2022/7/12 15:12 */ -@Data public class Point { private Integer position; private Double valueForInterpretation; @@ -24,4 +23,28 @@ public class Point { this.unsatisfiedRules = new HashSet(); } + public Integer getPosition() { + return position; + } + + public void setPosition(Integer position) { + this.position = position; + } + + public Double getValueForInterpretation() { + return valueForInterpretation; + } + + public void setValueForInterpretation(Double valueForInterpretation) { + this.valueForInterpretation = valueForInterpretation; + } + + public Set getUnsatisfiedRules() { + + return unsatisfiedRules; + } + + public void setUnsatisfiedRules(Set unsatisfiedRules) { + this.unsatisfiedRules = unsatisfiedRules; + } } diff --git a/ym-quality-planning/src/main/java/com/cnbm/qualityPlanning/entity/XbarSPoint.java b/ym-quality-planning/src/main/java/com/cnbm/qualityPlanning/entity/XbarSPoint.java index 200f9cc..12ba008 100644 --- a/ym-quality-planning/src/main/java/com/cnbm/qualityPlanning/entity/XbarSPoint.java +++ b/ym-quality-planning/src/main/java/com/cnbm/qualityPlanning/entity/XbarSPoint.java @@ -1,5 +1,7 @@ package com.cnbm.qualityPlanning.entity; +import io.swagger.models.auth.In; + import java.util.ArrayList; import java.util.List; import java.util.Set; @@ -18,9 +20,40 @@ public class XbarSPoint extends Point { public XbarSPoint(Integer position, Double value) { super(position, value); } -// + //s 不满足 的 判读方案 + private Set sUnsatisfiedRules; + //xbar 不满足 的 判读方案 + private Set xbarUnsatisfiedRules; + private void setValueToTest(Double value){ + setValueForInterpretation(value); + } + + public Set getsUnsatisfiedRules() { + return sUnsatisfiedRules; + } + + public void setsUnsatisfiedRules(Set sUnsatisfiedRules) { + this.sUnsatisfiedRules = sUnsatisfiedRules; + } + + public Set getXbarUnsatisfiedRules() { + return xbarUnsatisfiedRules; + } + + public void setXbarUnsatisfiedRules(Set xbarUnsatisfiedRules) { + this.xbarUnsatisfiedRules = xbarUnsatisfiedRules; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + public Double getXbar() { return xbar; } @@ -45,11 +78,12 @@ public class XbarSPoint extends Point { this.r = r; } - public XbarSPoint(Integer position, Double value, Double xbar, Double s, Double r) { + public XbarSPoint(Integer position, Double value, Double xbar, Double s, Double r,List data) { super(position,value); this.xbar = xbar; this.s = s; this.r = r; + this.data = data; } @Override