org.optaplanner.examples.meetingscheduling.domain.MeetingSchedule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of optaplanner-examples Show documentation
Show all versions of optaplanner-examples Show documentation
OptaPlanner solves planning problems.
This lightweight, embeddable planning engine implements powerful and scalable algorithms
to optimize business resource scheduling and planning.
This module contains the examples which demonstrate how to use it in a normal Java application.
package org.optaplanner.examples.meetingscheduling.domain;
import java.util.List;
import org.optaplanner.core.api.domain.constraintweight.ConstraintConfigurationProvider;
import org.optaplanner.core.api.domain.solution.PlanningEntityCollectionProperty;
import org.optaplanner.core.api.domain.solution.PlanningScore;
import org.optaplanner.core.api.domain.solution.PlanningSolution;
import org.optaplanner.core.api.domain.solution.ProblemFactCollectionProperty;
import org.optaplanner.core.api.domain.valuerange.ValueRangeProvider;
import org.optaplanner.core.api.score.buildin.hardmediumsoft.HardMediumSoftScore;
import org.optaplanner.examples.common.domain.AbstractPersistable;
@PlanningSolution
public class MeetingSchedule extends AbstractPersistable {
@ConstraintConfigurationProvider
private MeetingConstraintConfiguration constraintConfiguration;
@ProblemFactCollectionProperty
private List meetingList;
@ProblemFactCollectionProperty
private List dayList;
@ValueRangeProvider(id = "timeGrainRange")
@ProblemFactCollectionProperty
private List timeGrainList;
@ValueRangeProvider(id = "roomRange")
@ProblemFactCollectionProperty
private List roomList;
@ProblemFactCollectionProperty
private List personList;
@ProblemFactCollectionProperty
private List attendanceList;
@PlanningEntityCollectionProperty
private List meetingAssignmentList;
@PlanningScore
private HardMediumSoftScore score;
public MeetingConstraintConfiguration getConstraintConfiguration() {
return constraintConfiguration;
}
public void setConstraintConfiguration(MeetingConstraintConfiguration constraintConfiguration) {
this.constraintConfiguration = constraintConfiguration;
}
public List getMeetingList() {
return meetingList;
}
public void setMeetingList(List meetingList) {
this.meetingList = meetingList;
}
public List getDayList() {
return dayList;
}
public void setDayList(List dayList) {
this.dayList = dayList;
}
public List getTimeGrainList() {
return timeGrainList;
}
public void setTimeGrainList(List timeGrainList) {
this.timeGrainList = timeGrainList;
}
public List getRoomList() {
return roomList;
}
public void setRoomList(List roomList) {
this.roomList = roomList;
}
public List getPersonList() {
return personList;
}
public void setPersonList(List personList) {
this.personList = personList;
}
public List getAttendanceList() {
return attendanceList;
}
public void setAttendanceList(List attendanceList) {
this.attendanceList = attendanceList;
}
public List getMeetingAssignmentList() {
return meetingAssignmentList;
}
public void setMeetingAssignmentList(List meetingAssignmentList) {
this.meetingAssignmentList = meetingAssignmentList;
}
public HardMediumSoftScore getScore() {
return score;
}
public void setScore(HardMediumSoftScore score) {
this.score = score;
}
// ************************************************************************
// Complex methods
// ************************************************************************
}