|
@@ -13,30 +13,47 @@ public class Act {
|
|
|
private String genre;
|
|
private String genre;
|
|
|
private ActTime actTime;
|
|
private ActTime actTime;
|
|
|
|
|
|
|
|
- public Act(Stage stage, String genre, Artist... artists){
|
|
|
|
|
|
|
+ public Act(Stage stage, String genre, Time startTime, Time endTime, Artist... artists){
|
|
|
this.stage = stage;
|
|
this.stage = stage;
|
|
|
this.genre = genre;
|
|
this.genre = genre;
|
|
|
-
|
|
|
|
|
|
|
+ this.actTime = new ActTime(startTime, endTime);
|
|
|
|
|
+
|
|
|
this.artists = new ArrayList<Artist>();
|
|
this.artists = new ArrayList<Artist>();
|
|
|
for(Artist artist: artists) {
|
|
for(Artist artist: artists) {
|
|
|
this.artists.add(artist);
|
|
this.artists.add(artist);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * * returns a list with all the artists that are in the act.
|
|
|
|
|
+ * @return all artists.
|
|
|
|
|
+ */
|
|
|
public List<Artist> getArtists() {
|
|
public List<Artist> getArtists() {
|
|
|
return artists;
|
|
return artists;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * * returns the stage the act plays on.
|
|
|
|
|
+ * @return stage
|
|
|
|
|
+ */
|
|
|
public Stage getStage() {
|
|
public Stage getStage() {
|
|
|
return stage;
|
|
return stage;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * * returns the genre of the act.
|
|
|
|
|
+ * @return the genre of the act.
|
|
|
|
|
+ */
|
|
|
public String getGenre() {
|
|
public String getGenre() {
|
|
|
return genre;
|
|
return genre;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public ActTime getActTime() {
|
|
|
|
|
- return actTime;
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * * return the act time.
|
|
|
|
|
+ * @return the act time in minutes
|
|
|
|
|
+ */
|
|
|
|
|
+ public int getActTime() {
|
|
|
|
|
+ return this.actTime.getLength();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -46,9 +63,9 @@ public class Act {
|
|
|
for(Artist artist: this.artists){
|
|
for(Artist artist: this.artists){
|
|
|
string += artist.getName() + "\n";
|
|
string += artist.getName() + "\n";
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
string+= "genre: " + this.genre + "\n";
|
|
string+= "genre: " + this.genre + "\n";
|
|
|
- string+= "stage: " + this.stage.getName();
|
|
|
|
|
|
|
+ string+= "stage: " + this.stage.getName() + "\n";
|
|
|
|
|
+ string+= this.actTime;
|
|
|
return string;
|
|
return string;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|