org.optaplanner.examples.projectjobscheduling.domain.Job 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.projectjobscheduling.domain;
import java.util.List;
import org.optaplanner.examples.common.domain.AbstractPersistable;
import org.optaplanner.examples.common.persistence.jackson.JacksonUniqueIdGenerator;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
@JsonIdentityInfo(generator = JacksonUniqueIdGenerator.class)
public class Job extends AbstractPersistable {
private Project project;
private JobType jobType;
private List executionModeList;
private List successorJobList;
public Job() {
}
public Job(long id, Project project) {
super(id);
this.project = project;
}
public Project getProject() {
return project;
}
public void setProject(Project project) {
this.project = project;
}
public JobType getJobType() {
return jobType;
}
public void setJobType(JobType jobType) {
this.jobType = jobType;
}
public List getExecutionModeList() {
return executionModeList;
}
public void setExecutionModeList(List executionModeList) {
this.executionModeList = executionModeList;
}
public List getSuccessorJobList() {
return successorJobList;
}
public void setSuccessorJobList(List successorJobList) {
this.successorJobList = successorJobList;
}
// ************************************************************************
// Complex methods
// ************************************************************************
}