mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-29 08:56:43 +00:00
more abstractions as domain interfaces
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package com.sap.sailing.domain.base;
|
||||
|
||||
|
||||
public interface Nationality extends Named, WithImage {
|
||||
String getThreeLetterAcronym();
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.sap.sailing.domain.base;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public interface Person extends Named, WithImage {
|
||||
Date getDateOfBirth();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.sap.sailing.domain.base;
|
||||
|
||||
public interface RaceDefinition extends Named {
|
||||
Course getCourse();
|
||||
Iterable<Boat> getBoats();
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.sap.sailing.domain.base;
|
||||
|
||||
public interface Sailor extends Person {
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.sap.sailing.domain.base;
|
||||
|
||||
public interface Team extends Named {
|
||||
Iterable<Sailor> getSailors();
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.sap.sailing.domain.base;
|
||||
|
||||
public interface TeamOnBoat {
|
||||
Team getTeam();
|
||||
Boat getBoat();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.sap.sailing.domain.base;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
public interface WithImage {
|
||||
InputStream getImage();
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.sap.sailing.domain.tracking;
|
||||
|
||||
import com.sap.sailing.domain.base.Boat;
|
||||
import com.sap.sailing.domain.base.Mark;
|
||||
import com.sap.sailing.domain.base.Timed;
|
||||
|
||||
public interface MarkRounding extends Timed {
|
||||
Mark getMark();
|
||||
Boat getBoat();
|
||||
}
|
||||
Reference in New Issue
Block a user