Compare commits
2 commits
84ef4af2c4
...
b9dc7348ce
Author | SHA1 | Date | |
---|---|---|---|
b9dc7348ce | |||
97a0d799d3 |
2 changed files with 35 additions and 2 deletions
|
@ -56,18 +56,24 @@ public class Model {
|
||||||
this.add(new Student("students/ltorva", "Linus", "Torvalds", "0006"));
|
this.add(new Student("students/ltorva", "Linus", "Torvalds", "0006"));
|
||||||
this.add(new Student("students/dritch", "Dennis", "Ritchie", "0007"));
|
this.add(new Student("students/dritch", "Dennis", "Ritchie", "0007"));
|
||||||
|
|
||||||
// Gruppen
|
// Gruppen und Beziehungen
|
||||||
this.add(new Group("groups/if24ws2-b", "Softwareentwicklung WiSe 24/25 Seminargruppe 2"));
|
this.add(new Group("groups/if24ws2-b", "Softwareentwicklung WiSe 24/25 Seminargruppe 2"));
|
||||||
this.add(new Group("groups/admins", "Administrator:innen"));
|
this.add(new Group("groups/admins", "Administrator:innen"));
|
||||||
this.add(new Group("groups/alumni", "Alumni"));
|
this.add(new Group("groups/alumni", "Alumni"));
|
||||||
this.add(new Group("groups/leer", "Leere Gruppe"));
|
this.add(new Group("groups/leer", "Leere Gruppe"));
|
||||||
|
|
||||||
this.addRelation("groups/if24ws2-b", "students/jotto5");
|
this.addRelation("groups/if24ws2-b", "students/jotto5");
|
||||||
this.addRelation("groups/admins", "students/vnachn");
|
this.addRelation("groups/admins", "students/vnachn");
|
||||||
this.addRelation("groups/admins", "students/ltorva");
|
this.addRelation("groups/admins", "students/ltorva");
|
||||||
this.addRelation("groups/alumni", "students/alovel");
|
this.addRelation("groups/alumni", "students/alovel");
|
||||||
this.addRelation("groups/alumni", "students/aturin");
|
this.addRelation("groups/alumni", "students/aturin");
|
||||||
this.addRelation("groups/alumni", "students/ltorva");
|
this.addRelation("groups/alumni", "students/ltorva");
|
||||||
|
|
||||||
|
// Räume (aus dem Intranet geklaut...)
|
||||||
|
this.add(new Room("rooms/2-002", "2-002", 137));
|
||||||
|
this.add(new Room("rooms/2-102", "2-102", 148));
|
||||||
|
this.add(new Room("rooms/5-119", "5-119", 209));
|
||||||
|
this.add(new Room("rooms/5-120", "5-120", 209));
|
||||||
|
this.add(new Room("rooms/online", "Virtueller Online-Raum", -1));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
27
src/data/Room.java
Normal file
27
src/data/Room.java
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
package hsmw.jotto5.beleg.data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Bildet einen Veranstaltungsraum ab.
|
||||||
|
*/
|
||||||
|
public class Room extends DataObject {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Die maximale Personenkapazität des Raumes.
|
||||||
|
* -1 steht für einen unbegrenzt großen Raum.
|
||||||
|
*/
|
||||||
|
@WebField(displayAs = "Platzanzahl")
|
||||||
|
public final int size;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Konstruktor.
|
||||||
|
*
|
||||||
|
* @param uid Die zu vergebende UID
|
||||||
|
* @param displayName Der Anzeigename
|
||||||
|
* @param lastName Die maximale Personenkapazität oder -1 für unbegrenzt
|
||||||
|
*/
|
||||||
|
public Room(String uid, String displayName, int size) {
|
||||||
|
super(uid, displayName);
|
||||||
|
this.size = size;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue