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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
package at.ac.tuwien.sepm.assignment.groupphase.missioncontrol.dto;
import com.google.auto.value.AutoValue;
import java.util.List;
import javax.annotation.Nullable;
@AutoValue
public abstract class Vehicle {
public enum ConstructionType {
NORMAL,
HOCHDACH,
MITTELHOCHDACH,
}
public enum VehicleType {
BKTW,
KTW_B,
KTW,
RTW,
NEF,
NAH,
}
public enum Status {
ABGEMELDET,
FREI_WACHE,
FREI_FUNK,
ZUM_BERUFUNGSORT,
AM_BERUFUNGSORT,
ZUM_ZIELORT,
AM_ZIELORT,
}
public abstract long id();
public abstract String name();
public abstract ConstructionType constructionType();
public abstract VehicleType type();
public abstract Status status();
public abstract boolean hasNef();
@Nullable
public abstract List<Registration> registrations();
public static Builder builder() {
return new AutoValue_Vehicle.Builder().id(0);
}
@AutoValue.Builder
public abstract static class Builder {
public abstract Builder id(long id);
public abstract Builder name(String name);
public abstract Builder constructionType(ConstructionType constructionType);
public abstract Builder type(VehicleType type);
public abstract Builder status(Status status);
public abstract Builder hasNef(boolean hasNef);
public abstract Builder registrations(List<Registration> registrations);
public abstract Vehicle build();
}
public abstract Builder toBuilder();
}
|