package com.zy.acs.manager.core.domain; import lombok.Data; /** * Created by vincent on 11/1/2024 */ @Data public class TimeWindow { private long startTime; private long endTime; private String agvNo; public TimeWindow() { } public TimeWindow(long startTime, long endTime, String agvNo) { this.startTime = startTime; this.endTime = endTime; this.agvNo = agvNo; } public boolean isConflict(TimeWindow other) { return this.endTime > other.startTime && this.startTime < other.endTime; } }