mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-23 22:19:13 +00:00
adjusted some formatting and whitespaces
This commit is contained in:
+1
-1
@@ -14,5 +14,5 @@ package com.sap.sailing.domain.base;
|
||||
*
|
||||
*/
|
||||
public interface IsManagedBySharedDomainFactory {
|
||||
IsManagedBySharedDomainFactory resolve(SharedDomainFactory domainFactory);
|
||||
IsManagedBySharedDomainFactory resolve(SharedDomainFactory domainFactory);
|
||||
}
|
||||
|
||||
+2
-5
@@ -3,9 +3,6 @@ package com.sap.sailing.domain.racelog;
|
||||
import com.sap.sailing.domain.tracking.Track;
|
||||
|
||||
public interface RaceLog extends Track<RaceLogEvent> {
|
||||
|
||||
boolean add(RaceLogEvent event);
|
||||
|
||||
void addListener(RaceLogEventVisitor listener);
|
||||
|
||||
boolean add(RaceLogEvent event);
|
||||
void addListener(RaceLogEventVisitor listener);
|
||||
}
|
||||
|
||||
+8
-6
@@ -1,11 +1,13 @@
|
||||
package com.sap.sailing.domain.racelog;
|
||||
|
||||
public interface RaceLogEventVisitor {
|
||||
|
||||
public void visit(RaceLogFlagEvent event);
|
||||
public void visit(RaceLogPassChangeEvent event);
|
||||
public void visit(RaceLogRaceStatusEvent event);
|
||||
public void visit(RaceLogStartTimeEvent event);
|
||||
public void visit(RaceLogCourseAreaChangedEvent event);
|
||||
public void visit(RaceLogFlagEvent event);
|
||||
|
||||
public void visit(RaceLogPassChangeEvent event);
|
||||
|
||||
public void visit(RaceLogRaceStatusEvent event);
|
||||
|
||||
public void visit(RaceLogStartTimeEvent event);
|
||||
|
||||
public void visit(RaceLogCourseAreaChangedEvent event);
|
||||
}
|
||||
|
||||
@@ -26,11 +26,10 @@ import difflib.PatchFailedException;
|
||||
*
|
||||
*/
|
||||
public interface Course extends Named, CourseData {
|
||||
void lockForRead();
|
||||
void lockForRead();
|
||||
|
||||
void unlockAfterRead();
|
||||
|
||||
|
||||
void addCourseListener(CourseListener listener);
|
||||
|
||||
void removeCourseListener(CourseListener listener);
|
||||
@@ -42,5 +41,4 @@ public interface Course extends Named, CourseData {
|
||||
* had been used.
|
||||
*/
|
||||
void update(List<? extends ControlPoint> newControlPoints, DomainFactory baseDomainFactory) throws PatchFailedException;
|
||||
|
||||
}
|
||||
|
||||
@@ -28,8 +28,6 @@ import com.sap.sailing.util.impl.RaceColumnListeners;
|
||||
*
|
||||
*/
|
||||
public interface RaceColumn extends Named {
|
||||
|
||||
|
||||
/**
|
||||
* Sets the information object used to access the race column's race logs.
|
||||
* @param information
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
package com.sap.sailing.domain.base;
|
||||
|
||||
|
||||
public interface RaceColumnInSeries extends RaceColumn {
|
||||
Series getSeries();
|
||||
|
||||
|
||||
Regatta getRegatta();
|
||||
}
|
||||
|
||||
@@ -16,14 +16,6 @@ import com.sap.sailing.domain.tracking.TrackedRegatta;
|
||||
*
|
||||
*/
|
||||
public interface Regatta extends Named, WithID {
|
||||
BoatClass getBoatClass();
|
||||
|
||||
/**
|
||||
* A regatta name may be composed, e.g., from an overall regatta name and the boat class name. A factory or constructor
|
||||
* may require the base name to which the boat class name will be appended. This method emits the base name.
|
||||
*/
|
||||
String getBaseName();
|
||||
|
||||
ScoringScheme getScoringScheme();
|
||||
|
||||
CourseArea getDefaultCourseArea();
|
||||
@@ -60,6 +52,8 @@ public interface Regatta extends Named, WithID {
|
||||
*/
|
||||
RaceDefinition getRaceByName(String raceName);
|
||||
|
||||
BoatClass getBoatClass();
|
||||
|
||||
Iterable<Competitor> getCompetitors();
|
||||
|
||||
void addRace(RaceDefinition race);
|
||||
@@ -72,6 +66,12 @@ public interface Regatta extends Named, WithID {
|
||||
|
||||
RegattaIdentifier getRegattaIdentifier();
|
||||
|
||||
/**
|
||||
* A regatta name may be composed, e.g., from an overall regatta name and the boat class name. A factory or constructor
|
||||
* may require the base name to which the boat class name will be appended. This method emits the base name.
|
||||
*/
|
||||
String getBaseName();
|
||||
|
||||
/**
|
||||
* Regattas may be constructed as implicit default regattas in which case they won't need to be stored
|
||||
* durably and don't contain valuable information worth being preserved; or they are constructed explicitly
|
||||
|
||||
-3
@@ -36,13 +36,10 @@ public abstract class AbstractRaceColumn extends SimpleAbstractRaceColumn implem
|
||||
@Override
|
||||
public synchronized void setRaceLogInformation(final RaceLogInformation information) {
|
||||
raceLogs.clear();
|
||||
|
||||
raceLogsIdentifier = information.getIdentifierTemplate();
|
||||
RaceLogStore store = information.getStore();
|
||||
|
||||
for (final Fleet fleet : getFleets()) {
|
||||
RaceLogIdentifier identifier = raceLogsIdentifier.compile(fleet);
|
||||
|
||||
RaceLog raceLog = store.getRaceLog(identifier);
|
||||
raceLog.addListener(new RaceColumnRaceLogReplicator(this, identifier));
|
||||
raceLogs.put(fleet, raceLog);
|
||||
|
||||
@@ -3,11 +3,8 @@ package com.sap.sailing.domain.racelog;
|
||||
import com.sap.sailing.domain.base.Fleet;
|
||||
import com.sap.sailing.domain.base.RaceColumn;
|
||||
|
||||
|
||||
public interface RaceLogInformation {
|
||||
|
||||
RaceLogStore getStore();
|
||||
RaceLogIdentifierTemplate getIdentifierTemplate();
|
||||
RaceLog getRaceLog(RaceColumn raceColumn, Fleet fleet);
|
||||
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<stringAttribute key="com.google.gdt.eclipse.suiteMainTypeProcessor.PREVIOUSLY_SET_MAIN_TYPE_NAME" value="com.google.gwt.dev.GWTShell"/>
|
||||
<booleanAttribute key="com.google.gdt.eclipse.suiteWarArgumentProcessor.IS_WAR_FROM_PROJECT_PROPERTIES" value="true"/>
|
||||
<listAttribute key="com.google.gwt.eclipse.core.ENTRY_POINT_MODULES">
|
||||
<listEntry value="com.sap.sailing.gwt.ui.RaceBoard"/>
|
||||
<listEntry value="com.sap.sailing.gwt.ui.PolarSheets"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="com.google.gwt.eclipse.core.URL" value="/gwt/AdminConsole.html"/>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||
@@ -48,7 +48,7 @@
|
||||
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/sapjvm_7"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.google.gwt.dev.DevMode"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-war "${project_loc:com.sap.sailing.gwt.ui}" -noserver -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -logLevel INFO -codeServerPort 9997 -startupUrl /gwt/AdminConsole.html com.sap.sailing.gwt.ui.AdminConsole -startupUrl /gwt/LeaderboardEditing.html com.sap.sailing.gwt.ui.LeaderboardEditing -startupUrl /gwt/UserManagement.html com.sap.sailing.gwt.ui.UserManagement -startupUrl /gwt/Leaderboard.html com.sap.sailing.gwt.ui.Leaderboard -startupUrl /gwt/Spectator.html com.sap.sailing.gwt.ui.Spectator -startupUrl /gwt/RaceBoard.html com.sap.sailing.gwt.ui.RaceBoard"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-war "${project_loc:com.sap.sailing.gwt.ui}" -noserver -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -logLevel INFO -codeServerPort 9997 -startupUrl /gwt/AdminConsole.html com.sap.sailing.gwt.ui.AdminConsole -startupUrl /gwt/LeaderboardEditing.html com.sap.sailing.gwt.ui.LeaderboardEditing -startupUrl /gwt/UserManagement.html com.sap.sailing.gwt.ui.UserManagement -startupUrl /gwt/Leaderboard.html com.sap.sailing.gwt.ui.Leaderboard -startupUrl /gwt/Spectator.html com.sap.sailing.gwt.ui.Spectator -startupUrl /gwt/RaceBoard.html com.sap.sailing.gwt.ui.RaceBoard -startupUrl /gwt/PolarSheets.html com.sap.sailing.gwt.ui.PolarSheets"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="com.sap.sailing.gwt.ui"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx1024m -Xdebug -Xrunjdwp:transport=dt_socket,address=7999,server=y"/>
|
||||
</launchConfiguration>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<stringAttribute key="com.google.gdt.eclipse.suiteMainTypeProcessor.PREVIOUSLY_SET_MAIN_TYPE_NAME" value="com.google.gwt.dev.GWTShell"/>
|
||||
<booleanAttribute key="com.google.gdt.eclipse.suiteWarArgumentProcessor.IS_WAR_FROM_PROJECT_PROPERTIES" value="true"/>
|
||||
<listAttribute key="com.google.gwt.eclipse.core.ENTRY_POINT_MODULES">
|
||||
<listEntry value="com.sap.sailing.gwt.ui.TvView"/>
|
||||
<listEntry value="com.sap.sailing.gwt.ui.PolarSheets"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="com.google.gwt.eclipse.core.URL" value="/gwt/AdminConsole.html"/>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||
@@ -47,7 +47,7 @@
|
||||
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="com.google.gwt.eclipse.core.moduleClasspathProvider"/>
|
||||
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.google.gwt.dev.DevMode"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-war "${project_loc:com.sap.sailing.gwt.ui}" -noserver -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -logLevel INFO -codeServerPort 9997 -startupUrl /gwt/AdminConsole.html com.sap.sailing.gwt.ui.AdminConsole -startupUrl /gwt/LeaderboardEditing.html com.sap.sailing.gwt.ui.LeaderboardEditing -startupUrl /gwt/UserManagement.html com.sap.sailing.gwt.ui.UserManagement -startupUrl /gwt/Leaderboard.html com.sap.sailing.gwt.ui.Leaderboard -startupUrl /gwt/Spectator.html com.sap.sailing.gwt.ui.Spectator -startupUrl /gwt/RaceBoard.html com.sap.sailing.gwt.ui.RaceBoard -startupUrl /gwt/TvView.html com.sap.sailing.gwt.ui.TvView -startupUrl /gwt/RegattaOverview.html com.sap.sailing.gwt.ui.TvView"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-war "${project_loc:com.sap.sailing.gwt.ui}" -noserver -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -logLevel INFO -codeServerPort 9997 -startupUrl /gwt/AdminConsole.html com.sap.sailing.gwt.ui.AdminConsole -startupUrl /gwt/LeaderboardEditing.html com.sap.sailing.gwt.ui.LeaderboardEditing -startupUrl /gwt/UserManagement.html com.sap.sailing.gwt.ui.UserManagement -startupUrl /gwt/Leaderboard.html com.sap.sailing.gwt.ui.Leaderboard -startupUrl /gwt/Spectator.html com.sap.sailing.gwt.ui.Spectator -startupUrl /gwt/RaceBoard.html com.sap.sailing.gwt.ui.RaceBoard -startupUrl /gwt/TvView.html com.sap.sailing.gwt.ui.TvView -startupUrl /gwt/PolarSheets.html com.sap.sailing.gwt.ui.PolarSheets"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="com.sap.sailing.gwt.ui"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx2048m -XX:MaxPermSize=512m"/>
|
||||
</launchConfiguration>
|
||||
|
||||
Reference in New Issue
Block a user