Class GradingCategoryTO
- java.lang.Object
-
- de.hsh.graja.transfer.gradingscheme.GradingNodeTO
-
- de.hsh.graja.transfer.gradingscheme.GradingCategoryTO
-
public class GradingCategoryTO extends GradingNodeTO
Inner node of grading scheme.- See Also:
de.hsh.graja.marshal.gradingscheme.GradingCategoryMarshalledTO
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>
VALID_FUNCTIONS
-
Constructor Summary
Constructors Constructor Description GradingCategoryTO()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimal
calcScoreMax()
int
countLeaves()
int
countNodes()
int
depth()
GradingNodeTO
findDescendantById(String id)
List<? extends GradingNodeTO>
getChildNodes()
String
getFunction()
static boolean
isValidFunction(String function)
void
setChildNodes(List<? extends GradingNodeTO> childNodes)
void
setFunction(String function)
-
Methods inherited from class de.hsh.graja.transfer.gradingscheme.GradingNodeTO
convertAspectOrOrphaneIdToProformaTestRefAndSubRef, convertCategoryIdToProformaCombineId, convertProformaCombineIdToCategoryId, convertProformaTestRefToAspectId, convertProformaTestRefToOrphaneId, getDescription, getId, getInternalDescription, getNullifyCondition, getTitle, getWeight, setDescription, setId, setInternalDescription, setNullifyCondition, setTitle, setWeight
-
-
-
-
Method Detail
-
isValidFunction
public static boolean isValidFunction(String function)
-
getFunction
public String getFunction()
-
setFunction
public void setFunction(String function)
-
getChildNodes
public List<? extends GradingNodeTO> getChildNodes()
-
setChildNodes
public void setChildNodes(List<? extends GradingNodeTO> childNodes)
-
depth
public int depth()
- Specified by:
depth
in classGradingNodeTO
-
countLeaves
public int countLeaves()
- Specified by:
countLeaves
in classGradingNodeTO
-
countNodes
public int countNodes()
- Specified by:
countNodes
in classGradingNodeTO
-
calcScoreMax
public BigDecimal calcScoreMax()
- Specified by:
calcScoreMax
in classGradingNodeTO
- Returns:
- The maximum achievable score, multiplied already by
GradingNodeTO.getWeight()
.
-
findDescendantById
public GradingNodeTO findDescendantById(String id)
- Specified by:
findDescendantById
in classGradingNodeTO
- Returns:
-
-