排程结果优化

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

@ -57,4 +57,8 @@ public class HeuristicRule extends BaseRule {
@ApiParam(value ="组炉区间")
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.DURATION)
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 ="分割余数")
private Double remainder;
@Column(name="MIN_SPACE_TIME")
@ApiParam(value ="最小时间间隔")
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.DURATION)
private String minSpaceTime;
@Column(name="COMB_TYPE")
@ApiParam(value ="生产组合方式")
@FieldAnnotation(defaultValue = "MAX_ALL_RESOURCE")

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

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

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

Loading…
Cancel
Save