mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 21:30:57 +00:00
Implemented the result enriching
With this task, I opened the I18N and enriched the Function annotations
This commit is contained in:
1 parent
0350a54dec
commit
8edc00920a
38 files changed
+372
-266
No files matched your search
+7
-5
@@ -6,6 +6,8 @@ import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import com.sap.sse.datamining.shared.Unit;
|
||||
|
||||
/**
|
||||
* Methods marked with this annotation will be used as dimensions for the data mining framework. The method will be called,
|
||||
* if the dimension value of a data element is requested.<br />
|
||||
@@ -22,16 +24,16 @@ import java.lang.annotation.Target;
|
||||
* <li>classes that implement <code>equals()</code>, <code>hashCode()</code> and <code>toString()</code>.
|
||||
* </ul>
|
||||
* Otherwise the grouping could become incorrect and the result presentation will be unreadable.
|
||||
*
|
||||
*
|
||||
* @author Lennart Hensler (D054527)
|
||||
*
|
||||
*/
|
||||
@Documented
|
||||
@Target(ElementType.METHOD)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Dimension {
|
||||
|
||||
public String value();
|
||||
public String messageKey();
|
||||
|
||||
public Unit resultUnit() default Unit.None;
|
||||
|
||||
public int resultDecimals() default 0;
|
||||
|
||||
}
|
||||
+7
-4
@@ -6,19 +6,22 @@ import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import com.sap.sse.datamining.shared.Unit;
|
||||
|
||||
/**
|
||||
* Methods marked with this annotation will be used as function for the data mining framework. Functions can be used by the user to
|
||||
* create new functions and dimensions.<br />
|
||||
* The marked method has to be <b>side effect free</b>.<br />
|
||||
*
|
||||
* @author Lennart Hensler (D054527)
|
||||
*
|
||||
*/
|
||||
@Documented
|
||||
@Target(ElementType.METHOD)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface SideEffectFreeValue {
|
||||
|
||||
public String value();
|
||||
public String messageKey();
|
||||
|
||||
public Unit resultUnit() default Unit.None;
|
||||
|
||||
public int resultDecimals() default 0;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user