All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.optaplanner.examples.projectjobscheduling.domain.Job Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 9.44.0.Final
Show newest version
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
    // ************************************************************************

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy