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

org.optaplanner.examples.pas.domain.PatientAdmissionSchedule 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.pas.domain;

import java.util.List;

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;
import org.optaplanner.persistence.xstream.api.score.buildin.hardmediumsoft.HardMediumSoftScoreXStreamConverter;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamConverter;

@PlanningSolution
@XStreamAlias("PatientAdmissionSchedule")
public class PatientAdmissionSchedule extends AbstractPersistable {

    private List specialismList;
    private List equipmentList;
    private List departmentList;
    private List departmentSpecialismList;
    private List roomList;
    private List roomSpecialismList;
    private List roomEquipmentList;
    private List bedList;
    private List nightList;
    private List patientList;
    private List admissionPartList;
    private List requiredPatientEquipmentList;
    private List preferredPatientEquipmentList;

    private List bedDesignationList;

    @XStreamConverter(HardMediumSoftScoreXStreamConverter.class)
    private HardMediumSoftScore score;

    @ProblemFactCollectionProperty
    public List getSpecialismList() {
        return specialismList;
    }

    public void setSpecialismList(List specialismList) {
        this.specialismList = specialismList;
    }

    @ProblemFactCollectionProperty
    public List getEquipmentList() {
        return equipmentList;
    }

    public void setEquipmentList(List equipmentList) {
        this.equipmentList = equipmentList;
    }

    @ProblemFactCollectionProperty
    public List getDepartmentList() {
        return departmentList;
    }

    public void setDepartmentList(List departmentList) {
        this.departmentList = departmentList;
    }

    @ProblemFactCollectionProperty
    public List getDepartmentSpecialismList() {
        return departmentSpecialismList;
    }

    public void setDepartmentSpecialismList(List departmentSpecialismList) {
        this.departmentSpecialismList = departmentSpecialismList;
    }

    @ProblemFactCollectionProperty
    public List getRoomList() {
        return roomList;
    }

    public void setRoomList(List roomList) {
        this.roomList = roomList;
    }

    @ProblemFactCollectionProperty
    public List getRoomSpecialismList() {
        return roomSpecialismList;
    }

    public void setRoomSpecialismList(List roomSpecialismList) {
        this.roomSpecialismList = roomSpecialismList;
    }

    @ProblemFactCollectionProperty
    public List getRoomEquipmentList() {
        return roomEquipmentList;
    }

    public void setRoomEquipmentList(List roomEquipmentList) {
        this.roomEquipmentList = roomEquipmentList;
    }

    @ValueRangeProvider(id = "bedRange")
    @ProblemFactCollectionProperty
    public List getBedList() {
        return bedList;
    }

    public void setBedList(List bedList) {
        this.bedList = bedList;
    }

    @ProblemFactCollectionProperty
    public List getNightList() {
        return nightList;
    }

    public void setNightList(List nightList) {
        this.nightList = nightList;
    }

    @ProblemFactCollectionProperty
    public List getPatientList() {
        return patientList;
    }

    public void setPatientList(List patientList) {
        this.patientList = patientList;
    }

    @ProblemFactCollectionProperty
    public List getAdmissionPartList() {
        return admissionPartList;
    }

    public void setAdmissionPartList(List admissionPartList) {
        this.admissionPartList = admissionPartList;
    }

    @ProblemFactCollectionProperty
    public List getRequiredPatientEquipmentList() {
        return requiredPatientEquipmentList;
    }

    public void setRequiredPatientEquipmentList(List requiredPatientEquipmentList) {
        this.requiredPatientEquipmentList = requiredPatientEquipmentList;
    }

    @ProblemFactCollectionProperty
    public List getPreferredPatientEquipmentList() {
        return preferredPatientEquipmentList;
    }

    public void setPreferredPatientEquipmentList(List preferredPatientEquipmentList) {
        this.preferredPatientEquipmentList = preferredPatientEquipmentList;
    }

    @PlanningEntityCollectionProperty
    public List getBedDesignationList() {
        return bedDesignationList;
    }

    public void setBedDesignationList(List bedDesignationList) {
        this.bedDesignationList = bedDesignationList;
    }

    @PlanningScore
    public HardMediumSoftScore getScore() {
        return score;
    }

    public void setScore(HardMediumSoftScore score) {
        this.score = score;
    }

    // ************************************************************************
    // Complex methods
    // ************************************************************************

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy