Class GradingNodeTO
java.lang.Object
de.hsh.graja.transfer.gradingscheme.GradingNodeTO
- Direct Known Subclasses:
GradingAspectTO
,GradingCategoryTO
A bean with request data for Graja.
This bean will use defaults, if optional attribute values are missing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract BigDecimal
static String[]
static String
convertCategoryIdToProformaCombineId
(String categoryId) static String
convertProformaCombineIdToCategoryId
(String combineId) static String
convertProformaTestRefToAspectId
(String ref, String subRef, int cnt) static String
convertProformaTestRefToOrphaneId
(String ref, String subRef) abstract int
abstract int
abstract int
depth()
abstract GradingNodeTO
getId()
getTitle()
void
setDescription
(String description) void
void
setInternalDescription
(String internalDescription) void
setNullifyCondition
(NullifyConditionTO nullifyCondition) void
void
setWeight
(BigDecimal weight)
-
Constructor Details
-
GradingNodeTO
public GradingNodeTO()
-
-
Method Details
-
getId
-
setId
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getInternalDescription
-
setInternalDescription
-
getWeight
-
setWeight
-
getNullifyCondition
-
setNullifyCondition
-
depth
public abstract int depth() -
countNodes
public abstract int countNodes() -
countLeaves
public abstract int countLeaves() -
calcScoreMax
- Returns:
- The maximum achievable score, multiplied already by
getWeight()
.
-
findDescendantById
- Parameters:
id
-- Returns:
-
convertProformaCombineIdToCategoryId
-
convertProformaTestRefToAspectId
-
convertProformaTestRefToOrphaneId
-
convertCategoryIdToProformaCombineId
-
convertAspectOrOrphaneIdToProformaTestRefAndSubRef
-