You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.8 KiB
69 lines
1.8 KiB
package seng302.Mock;
|
|
|
|
import seng302.GPSCoordinate;
|
|
import seng302.Model.BoatInRace;
|
|
import seng302.Model.Leg;
|
|
import seng302.RaceDataSource;
|
|
|
|
import java.time.ZonedDateTime;
|
|
import java.util.ArrayList;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Created by jjg64 on 21/04/17.
|
|
*/
|
|
public class StreamedCourse implements RaceDataSource {
|
|
StreamedCourseXMLReader streamedCourseXMLReader = null;
|
|
BoatXMLReader boatXMLReader = null;
|
|
List<GPSCoordinate> boundary = new ArrayList<>();
|
|
|
|
public StreamedCourse(StreamedCourseXMLReader streamedCourseXMLReader) {
|
|
this.streamedCourseXMLReader = streamedCourseXMLReader;
|
|
}
|
|
|
|
public StreamedCourse(BoatXMLReader boatXMLReader) {
|
|
this.boatXMLReader = boatXMLReader;
|
|
}
|
|
|
|
public void setBoatXMLReader(BoatXMLReader boatXMLReader) {
|
|
this.boatXMLReader = boatXMLReader;
|
|
if (streamedCourseXMLReader != null) {
|
|
boatXMLReader.setParticipants(streamedCourseXMLReader.getParticipants());
|
|
boatXMLReader.read();
|
|
}
|
|
}
|
|
|
|
public void setStreamedCourseXMLReader(StreamedCourseXMLReader streamedCourseXMLReader) {
|
|
this.streamedCourseXMLReader = streamedCourseXMLReader;
|
|
if (streamedCourseXMLReader != null) {
|
|
boatXMLReader.setParticipants(streamedCourseXMLReader.getParticipants());
|
|
boatXMLReader.read();
|
|
}
|
|
}
|
|
|
|
public List<BoatInRace> getBoats() {
|
|
return null;
|
|
}
|
|
|
|
public List<Leg> getLegs() {
|
|
return null;
|
|
}
|
|
|
|
public List<GPSCoordinate> getBoundary() {
|
|
return null;
|
|
}
|
|
|
|
public ZonedDateTime getZonedDateTime() {
|
|
return null;
|
|
}
|
|
|
|
public GPSCoordinate getMapTopLeft() {
|
|
return null;
|
|
}
|
|
|
|
public GPSCoordinate getMapBottomRight() {
|
|
return null;
|
|
}
|
|
}
|