| | |
| | | public final class AutoTuneRuleDefinition { |
| | | |
| | | private static final String DEFAULT_RULE_NOTE = "单次调整幅度不能超过 maxStep。"; |
| | | private static final String STATION_OUT_TASK_LIMIT_DYNAMIC_MAX_SOURCE = |
| | | "currentParameterSnapshot.stationOutBufferCapacities[targetId]"; |
| | | private static final String STATION_OUT_TASK_LIMIT_NOTE = |
| | | "单次调整幅度不能超过 maxStep;增大时不得超过对应站点 outBufferCapacity。"; |
| | | "单次调整幅度不能超过 maxStep;outBufferCapacity 代表出库站缓存位置数量,超过该容量可能使任务出现在主干道,仅作为风险参考,不是合法性上限。"; |
| | | |
| | | private static final Map<String, Rule> RULE_MAP = buildRuleMap(); |
| | | |
| | |
| | | .minValue(0) |
| | | .maxStep(3) |
| | | .cooldownMinutes(10) |
| | | .dynamicMaxSource(STATION_OUT_TASK_LIMIT_DYNAMIC_MAX_SOURCE) |
| | | .note(STATION_OUT_TASK_LIMIT_NOTE)); |
| | | add(ruleMap, rule(AutoTuneTargetType.CRN, "maxOutTask") |
| | | .minValue(0) |