set basis and model

This commit is contained in:
Wanja Krah
2025-05-15 18:38:36 +02:00
parent 1663c094ad
commit aa6f50e3c8
14 changed files with 440 additions and 0 deletions

23
agiledancers-be/pom.xml Normal file
View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>nl.agilecc.agiledancers</groupId>
<artifactId>agiledancers</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>agiledancers-be</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>com.google.ortools</groupId>
<artifactId>ortools-java</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,17 @@
package nl.agilecc.agiledancers;
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
public static void main(String[] args) {
//TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
// to see how IntelliJ IDEA suggests fixing it.
System.out.printf("Hello and welcome!");
for (int i = 1; i <= 5; i++) {
//TIP Press <shortcut actionId="Debug"/> to start debugging your code. We have set one <icon src="AllIcons.Debugger.Db_set_breakpoint"/> breakpoint
// for you, but you can always add more by pressing <shortcut actionId="ToggleLineBreakpoint"/>.
System.out.println("i = " + i);
}
}
}

View File

@@ -0,0 +1,6 @@
package nl.agilecc.agiledancers.model;
public class Coach {
private Long id;
private String name;
}

View File

@@ -0,0 +1,17 @@
package nl.agilecc.agiledancers.model;
import nl.agilecc.agiledancers.model.specifications.DanceGroupStyle;
import nl.agilecc.agiledancers.model.specifications.DanceGroupType;
import java.util.Set;
public class DanceGroup {
private Long id;
private String category;
private DanceGroupType type;
private int startAge;
private int endAge;
private Set<Dancer> dancers;
private Set<DanceGroupStyle> styles;
private Coach coach;
}

View File

@@ -0,0 +1,7 @@
package nl.agilecc.agiledancers.model;
public class Dancer {
private Long id;
private String name;
private int age;
}

View File

@@ -0,0 +1,12 @@
package nl.agilecc.agiledancers.model;
import nl.agilecc.agiledancers.model.specifications.DayPartType;
import java.util.List;
public class DayPart {
private Long id;
private DayPartType type;
private List<DanceGroup> danceGroups;
}

View File

@@ -0,0 +1,8 @@
package nl.agilecc.agiledancers.model;
import java.util.List;
public class Show {
private Long id;
private List<DayPart> dayParts;
}

View File

@@ -0,0 +1,5 @@
package nl.agilecc.agiledancers.model.specifications;
public enum DanceGroupStyle {
HIPHOP, JAZZ, MODERN, STREETDANCE, CLASSIC, BREAKDANCE
}

View File

@@ -0,0 +1,18 @@
package nl.agilecc.agiledancers.model.specifications;
import lombok.Getter;
public enum DanceGroupType {
SHOW_CASE(3),
PRE_EDUCATION(1), // TODO check if this is one group mentioned with different docent each time, or three different groups - and thus if they are required 1 day or 3
SELECTION(2),
REGULAR(2),
PRE_SCHOOLER(1);
@Getter
private int dayPartsRequired;
DanceGroupType(int dayPartsRequired) {
this.dayPartsRequired = dayPartsRequired;
}
}

View File

@@ -0,0 +1,5 @@
package nl.agilecc.agiledancers.model.specifications;
public enum DayPartType {
MORNING, AFTERNOON, EVENING;
}