#
vincentlu
2025-04-18 a957c1c914f6890c8a6a8c477495809b065fcbcf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;
    }
 
}