feat(ft546): run shared dispatch kernel in shadow
This commit is contained in:
@@ -37,9 +37,23 @@ public final class Ft546SrgvCommandIntent {
|
||||
this.routeVersion = routeVersion;
|
||||
this.taskNo = taskNo;
|
||||
this.taskType = taskType;
|
||||
this.pathPoints = Collections.unmodifiableList(
|
||||
new ArrayList<Integer>(Objects.requireNonNull(pathPoints,
|
||||
"pathPoints")));
|
||||
List<Integer> copiedPath = new ArrayList<Integer>(
|
||||
Objects.requireNonNull(pathPoints, "pathPoints"));
|
||||
if (copiedPath.size() < 2 || copiedPath.size() > 8) {
|
||||
throw new IllegalArgumentException(
|
||||
"legacy route must contain between 2 and 8 command points");
|
||||
}
|
||||
for (Integer point : copiedPath) {
|
||||
if (point == null || point.intValue() <= 0) {
|
||||
throw new IllegalArgumentException(
|
||||
"route node must be positive");
|
||||
}
|
||||
if (point.intValue() > 999999) {
|
||||
throw new IllegalArgumentException(
|
||||
"route node exceeds six digits");
|
||||
}
|
||||
}
|
||||
this.pathPoints = Collections.unmodifiableList(copiedPath);
|
||||
this.crossFloorTarget = crossFloorTarget;
|
||||
this.twoStageNumber = twoStageNumber;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user