mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-12 05:35:31 +00:00
Started implementing ORCCertificateAssignment RegattaLogEvents.
This commit is contained in:
1 parent
039cc2a039
commit
31440e6e38
4 files changed
+41
-6
No files matched your search
+3
-1
@@ -1,7 +1,9 @@
|
||||
package com.sap.sailing.domain.abstractlog.orc;
|
||||
|
||||
import com.sap.sailing.domain.abstractlog.regatta.RegattaLogEvent;
|
||||
|
||||
// TODO Here is needed a solution/concept to use this kind of events in race and regatta logs.
|
||||
// Additionally the logic shouldn't be implemented at two different places.
|
||||
public interface ORCCertificateUpdateEvent /* extends AbstractLogEvent<VisitorT> */ {
|
||||
public interface ORCCertificateAssignmentEvent{
|
||||
|
||||
}
|
||||
+12
-4
@@ -1,16 +1,24 @@
|
||||
package com.sap.sailing.domain.abstractlog.orc;
|
||||
|
||||
import com.sap.sailing.domain.abstractlog.race.RaceLogEvent;
|
||||
import com.sap.sailing.domain.common.orc.ORCPerformanceCurveCourse;
|
||||
import com.sap.sailing.domain.common.orc.ORCPerformanceCurveLeg;
|
||||
import com.sap.sse.common.Bearing;
|
||||
import com.sap.sse.common.Distance;
|
||||
|
||||
// TODO Comments
|
||||
/**
|
||||
* This special {@link RaceLogEvent} is used for setting the needed information for a {@link ORCPerformanceCurveCourse}
|
||||
* and {@link ORCPerformanceCurveLeg}, when ranking a race by the usage of a {@link ORCPerformanceCurve} and the
|
||||
* constructed course setting.
|
||||
*
|
||||
* @author Daniel Lisunkin (i505543)
|
||||
*/
|
||||
public interface ORCLegDataEvent extends RaceLogEvent {
|
||||
|
||||
public Distance getLength();
|
||||
|
||||
|
||||
public Bearing getTwa();
|
||||
|
||||
|
||||
public int getLegNr();
|
||||
|
||||
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package com.sap.sailing.domain.abstractlog.orc.impl;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.sap.sailing.domain.abstractlog.AbstractLogEventAuthor;
|
||||
import com.sap.sailing.domain.abstractlog.impl.AbstractLogEventImpl;
|
||||
import com.sap.sailing.domain.abstractlog.orc.ORCCertificateAssignmentEvent;
|
||||
import com.sap.sailing.domain.common.orc.ORCCertificate;
|
||||
import com.sap.sse.common.TimePoint;
|
||||
|
||||
public class ORCCertificateAssignmentEventImpl extends AbstractLogEventImpl<ORCCertificate> implements ORCCertificateAssignmentEvent{
|
||||
|
||||
public ORCCertificateAssignmentEventImpl(TimePoint createdAt, TimePoint logicalTimePoint,
|
||||
AbstractLogEventAuthor author, Serializable pId) {
|
||||
super(createdAt, logicalTimePoint, author, pId);
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = -3186019736784868848L;
|
||||
|
||||
@Override
|
||||
public void accept(ORCCertificate visitor) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
-1
@@ -10,7 +10,6 @@ import com.sap.sse.common.Bearing;
|
||||
import com.sap.sse.common.Distance;
|
||||
import com.sap.sse.common.TimePoint;
|
||||
|
||||
// TODO Comments
|
||||
public class ORCLegDataEventImpl extends RaceLogEventImpl implements ORCLegDataEvent {
|
||||
|
||||
private static final long serialVersionUID = -5063350268001993185L;
|
||||
|
||||
Reference in new issue
Block a user