排程结果优化

yun-zuoyi
钮海涛 4 years ago
parent 321209f2b4
commit eeb9ab500b

@ -57,4 +57,8 @@ public class HeuristicRule extends BaseRule {
@ApiParam(value ="组炉区间") @ApiParam(value ="组炉区间")
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.DURATION) @FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.DURATION)
private String batchPeriod; private String batchPeriod;
@Column(name="REVER_FLUSH_PLAN")
@ApiParam(value ="逆向刷新计划")
private Boolean reverFlushPlan = false;
} }

@ -63,6 +63,11 @@ public class StandOperation extends BaseAPS {
@ApiParam(value ="分割余数") @ApiParam(value ="分割余数")
private Double remainder; private Double remainder;
@Column(name="MIN_SPACE_TIME")
@ApiParam(value ="最小时间间隔")
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.DURATION)
private String minSpaceTime;
@Column(name="COMB_TYPE") @Column(name="COMB_TYPE")
@ApiParam(value ="生产组合方式") @ApiParam(value ="生产组合方式")
@FieldAnnotation(defaultValue = "MAX_ALL_RESOURCE") @FieldAnnotation(defaultValue = "MAX_ALL_RESOURCE")

@ -25,12 +25,12 @@ public class DateDuration {
public static final double PRECISION = 0.00001; public static final double PRECISION = 0.00001;
private String value; private String value;
private int time = 0; private long time = 0;
private double rate = 0.0; private double rate = 0.0;
private boolean bValid = false; private boolean bValid = false;
private int unit = 0; private int unit = 0;
public DateDuration(int value) { public DateDuration(long value) {
this.time = value; this.time = value;
} }
@ -65,7 +65,7 @@ public class DateDuration {
* 0 * 0
* @return * @return
*/ */
public int getTime() { public long getTime() {
return this.time; return this.time;
} }
@ -73,7 +73,7 @@ public class DateDuration {
* *
* @return * @return
*/ */
public void setTime(int time) { public void setTime(long time) {
this.time = time; this.time = time;
} }
@ -144,7 +144,7 @@ public class DateDuration {
* @param amount * @param amount
* @return * @return
*/ */
public int getTime(double amount) { public long getTime(double amount) {
if (amount < PRECISION) if (amount < PRECISION)
return getTime(); return getTime();

@ -5,6 +5,12 @@ import lombok.Data;
@Data @Data
public class RuleDetailModel { public class RuleDetailModel {
@ApiParam(value ="主执行进度")
private Integer mainProcess = 0;
@ApiParam(value ="总规则数")
private Integer mainSize = 0;
@ApiParam(value ="当前执行进度") @ApiParam(value ="当前执行进度")
private Integer curProcess = 0; private Integer curProcess = 0;
@ -14,8 +20,15 @@ public class RuleDetailModel {
@ApiParam(value ="进度消息") @ApiParam(value ="进度消息")
private String processMsg = ""; private String processMsg = "";
@ApiParam(value ="进度消息明细")
private String subMsg = "";
private Boolean finish = false; private Boolean finish = false;
@ApiParam(value ="异常消息") @ApiParam(value ="异常消息")
private String exception = ""; private String exception = "";
public void addProcess() {
this.curProcess += 1;
}
} }

@ -11,6 +11,7 @@ import lombok.Data;
**/ **/
@Data @Data
public class RuleGroupProgress { public class RuleGroupProgress {
private Integer mainProgress;
private String message; private String message;
private Integer progress; private Integer progress;
} }

Loading…
Cancel
Save