public static LiftWriteData buildLiftMove(int taskId, int floor, WcsTask task){ LiftWriteData data = new LiftWriteData(); data.setWcsTasks(Collections.singletonList(task)); data.setPlcTaskId(taskId); data.setGroupId(task.getGroupProcessId()); data.destinationFloor = floor; data.taskNo = taskId; data.liftTaskNo = taskId; return data; }
时间: 2023-03-05 19:23:07 浏览: 133
This is a Java method that creates and returns a LiftWriteData object that represents a lift move task in a warehouse control system. The LiftWriteData class likely contains fields and methods to specify the details of the task, such as the task ID, destination floor, and group process ID.
The method takes in an integer task ID, an integer floor, and a WcsTask object, which is likely a representation of the task to be performed by the lift. The method then creates a new LiftWriteData object, sets the list of tasks to be performed by the lift to a singleton list containing the provided WcsTask object, sets the PLC task ID to the provided task ID, sets the group ID to the group process ID of the provided WcsTask object, and sets the destination floor, task number, and lift task number to the provided task ID.
Finally, the method returns the newly created LiftWriteData object.
阅读全文