更改时间表应用程序的数据模型

问题描述 投票:0回答:1

简介/背景:

I'm working on developing a Time-fold's app using Spring Boot. The goal is to create a timetable similar to the example provided in Time-fold's documentation. I've defined two enumerations, 
Domain
and
Room-type
, which represent the teaching domain of a teacher and the type of room respectively.

实体:

this picture represents entities:

枚举:


public enum Domain {
    MATHEMATICS,
    SCIENCE,
    HISTORY,
    // Other teaching domains...
}


public enum RoomType {
    ART_ROOM,
    MUSIC_ROOM,
    COMPUTER_ROOM,
    CLASSROOM,
    // Other room types...
}

问题/问题:

Now, I need to annotate these entities using Time-fold's annotations to achieve the desired functionality. Specifically, I want for a specified room  assign lessons to teachers based on certain constraints, such as maximum lessons per day, teacher availability, etc. I want a solution like this on Monday, in Room x, with a maximum of lessons per day equal to 3, lesson 1 is assigned to teacher y, lesson 2 is assigned to teacher z, and lesson 3 is assigned to a teacher w

How can I annotate these entities to accomplish this?

java spring-boot optaplanner timefold
1个回答
0
投票

我在

timefold
方面没有太多经验,但是,我从文档(下面的链接)中看到他们提供了一些使用相同“课程”概念的示例。

https://timefold.ai/docs/timefold-solver/latest/quickstart/spring-boot/spring-boot-quickstart#_lesson

© www.soinside.com 2019 - 2024. All rights reserved.