Class GradingHints
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvaluates the root and combine nodes regarding theirfunctionand theirweight.Evaluates the given node regarding itsfunctionand itsweight.int<T> TfindAnyByInstanceOfClass(Class<T> clazz) getAny()Gets the value of the any property.getChildRefHavingUniqueContentOrNull(boolean isTestRef, String ref, String subRef) Gets the value of the combine property.getCombineById(String combineId) getNodesReferencing(boolean isTestRef, String ref, String subRef) getRoot()Ruft den Wert der root-Eigenschaft ab.booleanremoveCombineNode(String combineId) voidsetRoot(GradingNode value) Legt den Wert der root-Eigenschaft fest.voidIf the grading nodes do not form a tree of combine nodes but instead some other graph, then this method will throw an IllegalArgumentException
-
Field Details
-
root
-
combine
-
any
-
-
Constructor Details
-
GradingHints
public GradingHints()
-
-
Method Details
-
getRoot
Ruft den Wert der root-Eigenschaft ab.- Returns:
- possible object is
GradingNode
-
setRoot
Legt den Wert der root-Eigenschaft fest.- Parameters:
value- allowed object isGradingNode
-
getCombine
Gets the value of the combine property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the combine property.For example, to add a new item, do as follows:
getCombine().add(newItem);Objects of the following type(s) are allowed in the list
GradingNode -
getCombineById
-
getAny
Gets the value of the any property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the any property.For example, to add a new item, do as follows:
getAny().add(newItem);Objects of the following type(s) are allowed in the list
ElementObject -
findAnyByInstanceOfClass
-
calcMaxScoreAssumingEachTestRefCeilsOne
Evaluates the root and combine nodes regarding theirfunctionand theirweight. This method assumes that each referenced sub-test contributes 0 or 1 as a result.- Returns:
- Throws:
NoSuchElementException
-
calcMaxScoreAssumingEachTestRefCeilsOne
public BigDecimal calcMaxScoreAssumingEachTestRefCeilsOne(GradingNode node) throws NoSuchElementException Evaluates the given node regarding itsfunctionand itsweight. This method assumes that each referenced sub-test contributes 0 or 1 as a result.- Returns:
- Throws:
NoSuchElementException
-
calcMaxScoreAssumingEachTestRefCeilsOne
-
depth
-
validateTree
public void validateTree()If the grading nodes do not form a tree of combine nodes but instead some other graph, then this method will throw an IllegalArgumentException -
getChildRefHavingUniqueContentOrNull
-
getNodesReferencing
-
removeCombineNode
-
getRootAndCombineNodes
-