Moved the annotations to the shared sse bundle

This commit is contained in:
Lennart Hensler committed 2014-02-18 12:36:24 +01:00
1 parent 88b7383d5b
commit cb990de9d2
16 files changed
+21 -20

No files matched your search

@@ -5,7 +5,8 @@ Bundle-SymbolicName: com.sap.sse.datamining.shared
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: SAP
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: com.sap.sse.datamining.shared,
Export-Package: com.sap.sse.datamining.annotations,
com.sap.sse.datamining.shared,
com.sap.sse.datamining.shared.dto,
com.sap.sse.datamining.shared.impl,
com.sap.sse.datamining.shared.impl.dto
@@ -0,0 +1,37 @@
package com.sap.sse.datamining.annotations;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 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 />
* The marked method has to match the following conditions or the data mining could fail:
* <ul>
* <li>Is side effect free</li>
* <li>Is a member of an atomic data type (like GPSFix or TrackedLeg) <b>or</b><br />
* has an atomic data type as parameter</li>
* </ul>
*
* The return value of a marked method should be:
* <ul>
* <li>a primitive type or wrapper class.</li>
* <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();
}
@@ -0,0 +1,24 @@
package com.sap.sse.datamining.annotations;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* 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();
}