001package music;
002import java.util.List;
003import java.util.LinkedList;
004class EventGroup implements Event {
005        List<Event> events = new LinkedList<Event>();
006        public void add(Event e) {
007                events.add(e);
008        }
009
010        public void play() {
011                for (Event e : events) {
012                        e.play();
013                }
014        }
015}