Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import ai.timefold.solver.core.api.domain.variable.PlanningVariable;
import com.fasterxml.jackson.annotation.JsonIdentityReference;

import java.util.List;

@PlanningEntity
public class Lesson {

Expand All @@ -15,6 +17,9 @@ public class Lesson {
private String teacher;
private String studentGroup;

private String reqTag;
private List<String> tags;

@JsonIdentityReference
@PlanningVariable
private Timeslot timeslot;
Expand All @@ -26,15 +31,17 @@ public class Lesson {
public Lesson() {
}

public Lesson(String id, String subject, String teacher, String studentGroup) {
public Lesson(String reqTag, List<String> tags, String id, String subject, String teacher, String studentGroup) {
this.id = id;
this.subject = subject;
this.teacher = teacher;
this.studentGroup = studentGroup;
this.reqTag = reqTag;
this.tags = tags;
}

public Lesson(String id, String subject, String teacher, String studentGroup, Timeslot timeslot, Room room) {
this(id, subject, teacher, studentGroup);
this(null, List.of(), id, subject, teacher, studentGroup);
this.timeslot = timeslot;
this.room = room;
}
Expand Down Expand Up @@ -79,4 +86,20 @@ public Room getRoom() {
public void setRoom(Room room) {
this.room = room;
}

public String getReqTag() {
return reqTag;
}

public void setReqTag(String reqTag) {
this.reqTag = reqTag;
}

public List<String> getTags() {
return tags;
}

public void setTags(List<String> tags) {
this.tags = tags;
}
}
Loading
Loading