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

org.optaplanner.examples.pas.domain.PatientAdmissionSchedule Maven / Gradle / Ivy

/*
 * Copyright 2020 Red Hat, Inc. and/or its affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

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