summaryrefslogtreecommitdiffstats
path: root/src/de/fhswf/in/inf/se/projektthemenvergabe/Projekt.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/fhswf/in/inf/se/projektthemenvergabe/Projekt.java')
-rw-r--r--src/de/fhswf/in/inf/se/projektthemenvergabe/Projekt.java135
1 files changed, 0 insertions, 135 deletions
diff --git a/src/de/fhswf/in/inf/se/projektthemenvergabe/Projekt.java b/src/de/fhswf/in/inf/se/projektthemenvergabe/Projekt.java
deleted file mode 100644
index 4c689f7..0000000
--- a/src/de/fhswf/in/inf/se/projektthemenvergabe/Projekt.java
+++ /dev/null
@@ -1,135 +0,0 @@
-package de.fhswf.in.inf.se.projektthemenvergabe;
-
-import java.util.ArrayList;
-import java.util.Date;
-
-public class Projekt
-{
- private String projektthema;
-
- private String skizze;
-
- private String projektbeschreibung;
-
- private String projekteinhalte;
-
- private Date präsentationstermin;
-
- private Dozent dozent;
-
- private ArrayList<Student> student = new ArrayList<Student>();
-
- private Ansprechpartner ansprechpartner;
-
- public String getProjektthema()
- {
- return this.projektthema;
- }
-
- public void setProjektthema(String projektthema)
- {
- this.projektthema = projektthema;
- }
-
- public String getSkizze()
- {
- return this.skizze;
- }
-
- public void setSkizze(String skizze)
- {
- this.skizze = skizze;
- }
-
- public String getProjektbeschreibung()
- {
- return this.projektbeschreibung;
- }
-
- public void setProjektbeschreibung(String projektbeschreibung)
- {
- this.projektbeschreibung = projektbeschreibung;
- }
-
- public String getProjekteinhalte()
- {
- return this.projekteinhalte;
- }
-
- public void setProjekteinhalte(String projekteinhalte)
- {
- this.projekteinhalte = projekteinhalte;
- }
-
- public Date getPräsentationstermin()
- {
- return this.präsentationstermin;
- }
-
- public void setPräsentationstermin(Date präsentationstermin)
- {
- this.präsentationstermin = präsentationstermin;
- }
-
- public Projekt(Student student1, Student student2, Student student3,
- Ansprechpartner ansprechpartner, Dozent dozent)
- {
- if (student1 == null && student2 == null && student3 == null)
- {
- throw new IllegalArgumentException(
- "Zumindest ein Student sollte das Projekt bearbeiten.");
- }
-
- if (ansprechpartner == null)
- {
- throw new IllegalArgumentException(
- "Das Projekt sollte irgendwo gemacht werden.");
- }
-
- if (dozent == null)
- {
- throw new IllegalArgumentException(
- "Das Projekt sollte für einen Dozenten gemacht werden.");
- }
-
- if (student1 != null)
- {
- student.add(student1);
- student1.setProjekt(this);
- }
-
- if (student2 != null)
- {
- student.add(student2);
- student2.setProjekt(this);
- }
-
- if (student3 != null)
- {
- student.add(student3);
- student3.setProjekt(this);
- }
-
- this.dozent = dozent;
- this.dozent.addProjekt(this);
- this.ansprechpartner = ansprechpartner;
- this.ansprechpartner.addProjekt(this);
- }
-
- public Dozent getDozent()
- {
- return this.dozent;
- }
-
- public Student[] toStudentArray()
- {
- Student[] lStudent_Temp = new Student[this.student.size()];
- this.student.toArray(lStudent_Temp);
- return lStudent_Temp;
- }
-
- public Ansprechpartner getAnsprechpartner()
- {
- return this.ansprechpartner;
- }
-} \ No newline at end of file