mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-24 14:38:45 +00:00
bug5241: added priority to DeviceConfiguration
This commit is contained in:
Executable
+26
@@ -0,0 +1,26 @@
|
||||
package com.sap.sailing.domain.common.racelog;
|
||||
|
||||
/**
|
||||
* Generally, any {@code AbstractLogEvent} has an author of type {@code AbstractLogEventAuthor} which has a numerical
|
||||
* non-negative priority. Lesser numerical values represent higher priority/precedence. This enumeration captures
|
||||
* the default priorities the Race Manager App is expected to handle.
|
||||
*
|
||||
* @author Axel Uhl (D043530)
|
||||
*
|
||||
*/
|
||||
public enum AuthorPriority {
|
||||
ADMIN(0),
|
||||
OFFICER_ON_VESSEL(1),
|
||||
SHORE_CONTROL(2),
|
||||
DEMO_MODE(3);
|
||||
|
||||
private final int priority;
|
||||
|
||||
private AuthorPriority(int priority) {
|
||||
this.priority = priority;
|
||||
}
|
||||
|
||||
public int getPriority() {
|
||||
return priority;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user