diff --git a/Stage b/Stage deleted file mode 100644 index eae5615..0000000 --- a/Stage +++ /dev/null @@ -1,49 +0,0 @@ -import java.io.Serializable; -import java.util.ArrayList; - - -public class Stage implements Serializable { - - private static final long serialVersionUID = 1; - - private ArrayList events; - private String description; - private int ID; - - public Stage(String description, int ID ) - { - this.events = new ArrayList(); - this.description = description; - this.ID = ID; - } - - public Event getEvent(int number) - { - return events.get(number); - } - - public String getDescription() - { - return this.description; - } - - public int getID() - { - return this.ID; - } - - public void setDescription(String description) - { - this.description = description; - } - - public void setID(int ID) - { - this.ID = ID; - } - - public void addEvent(Event event) - { - events.add(event); - } -} diff --git a/Stage.java b/Stage.java new file mode 100644 index 0000000..7955cb0 --- /dev/null +++ b/Stage.java @@ -0,0 +1,35 @@ +import java.io.Serializable; + +public class Stage implements Serializable { + + private static final long serialVersionUID = 1; + + private String name; + private String description; + + public Stage(String name, String description) + { + this.name = name; + this.description = description; + } + + public String getName() + { + return this.name; + } + + public String getDescription() + { + return this.description; + } + + public void setDescription(String description) + { + this.description = description; + } + + public void setName(String name) + { + this.name = name; + } +}