package seng302.model.stream.xml.parser; import java.util.HashMap; import java.util.List; import java.util.Map; import seng302.model.Limit; import seng302.model.mark.CompoundMark; import seng302.model.mark.Corner; import seng302.model.token.Token; /** * Process a Document object containing race data in XML format and stores the data. */ public class RaceXMLData { private List participants; private List tokens; private Map compoundMarks; private List markSequence; private List courseLimit; public RaceXMLData(List participants, List tokens, List compoundMarks, List markSequence, List courseLimit) { this.participants = participants; this.tokens = tokens; this.markSequence = markSequence; this.courseLimit = courseLimit; this.compoundMarks = new HashMap<>(); for (CompoundMark cMark : compoundMarks) { this.compoundMarks.put(cMark.getId(), cMark); } } public List getParticipants() { return participants; } public List getTokens() { return tokens; } public Map getCompoundMarks() { return compoundMarks; } public List getMarkSequence() { return markSequence; } public List getCourseLimit() { return courseLimit; } }