Class ReviewStatusEvaluation
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.reference.review.ReviewStatusEvaluation
-
public class ReviewStatusEvaluation extends java.lang.Object
abstract class to evaluate review statuses and compute a review result it use a truth table that is specific for use case and must be parameterized in constructor
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROPERTY_FILE_DATAMANAGER_TRUTH_TABLE
static java.lang.String
PROPERTY_FILE_GROUP_TRUTH_TABLE
protected java.util.Map<org.apache.commons.lang3.tuple.Pair<ReviewStatus.ReviewStatusType,ReviewStatus.ReviewStatusType>,ReviewStatus.ReviewStatusType>
truthTable
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReviewStatusEvaluation()
protected
ReviewStatusEvaluation(java.util.Collection<org.apache.commons.lang3.tuple.Triple<ReviewStatus.ReviewStatusType,ReviewStatus.ReviewStatusType,ReviewStatus.ReviewStatusType>> truthTable)
-
Method Summary
Modifier and Type Method Description static ReviewStatusEvaluation
createReviewStatusEvaluationForDatamanager()
create truth table for final data manager decisionstatic ReviewStatusEvaluation
createReviewStatusEvaluationForGroups()
create truth table for group decisionReviewStatus.ReviewStatusType
eval(org.apache.commons.lang3.tuple.Pair<ReviewStatus.ReviewStatusType,ReviewStatus.ReviewStatusType> configuration)
static java.util.Collection<org.apache.commons.lang3.tuple.Triple<ReviewStatus.ReviewStatusType,ReviewStatus.ReviewStatusType,ReviewStatus.ReviewStatusType>>
loadTruthTable(java.lang.String truth_file)
load truth table fromProperties
file
-
-
-
Field Detail
-
PROPERTY_FILE_GROUP_TRUTH_TABLE
public static final java.lang.String PROPERTY_FILE_GROUP_TRUTH_TABLE
- See Also:
- Constant Field Values
-
PROPERTY_FILE_DATAMANAGER_TRUTH_TABLE
public static final java.lang.String PROPERTY_FILE_DATAMANAGER_TRUTH_TABLE
- See Also:
- Constant Field Values
-
truthTable
protected java.util.Map<org.apache.commons.lang3.tuple.Pair<ReviewStatus.ReviewStatusType,ReviewStatus.ReviewStatusType>,ReviewStatus.ReviewStatusType> truthTable
-
-
Constructor Detail
-
ReviewStatusEvaluation
protected ReviewStatusEvaluation()
-
ReviewStatusEvaluation
protected ReviewStatusEvaluation(java.util.Collection<org.apache.commons.lang3.tuple.Triple<ReviewStatus.ReviewStatusType,ReviewStatus.ReviewStatusType,ReviewStatus.ReviewStatusType>> truthTable)
-
-
Method Detail
-
createReviewStatusEvaluationForDatamanager
public static ReviewStatusEvaluation createReviewStatusEvaluationForDatamanager() throws java.io.IOException
create truth table for final data manager decision- Returns:
Collection
ofTriple
: comprise a three columns formated truth table (research group decision,group leader, group leader assistant)- Throws:
java.io.IOException
- if failed
-
createReviewStatusEvaluationForGroups
public static ReviewStatusEvaluation createReviewStatusEvaluationForGroups() throws java.io.IOException
create truth table for group decision- Returns:
Collection
ofTriple
: comprise a three columns formated truth table (research group decision,group leader, group leader assistant)- Throws:
java.io.IOException
- if failed
-
loadTruthTable
public static java.util.Collection<org.apache.commons.lang3.tuple.Triple<ReviewStatus.ReviewStatusType,ReviewStatus.ReviewStatusType,ReviewStatus.ReviewStatusType>> loadTruthTable(java.lang.String truth_file) throws java.io.IOException
load truth table fromProperties
file- Parameters:
truth_file
- the table to load- Returns:
Collection
ofTriple
: comprise a three columns formated truth table (research group decision,group leader, group leader assistant)- Throws:
java.io.IOException
- if failed
-
eval
public ReviewStatus.ReviewStatusType eval(org.apache.commons.lang3.tuple.Pair<ReviewStatus.ReviewStatusType,ReviewStatus.ReviewStatusType> configuration)
-
-