Package es.urjc.etsii.grafo.util
Class ValidationUtil
java.lang.Object
es.urjc.etsii.grafo.util.ValidationUtil
Validation Util methods.
Implement different assertions to check solution validity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
assertFastAccess
(List<?> list) Check that the given list implements the RandomAccess interfacepositiveTTB
(S solution) Check that the Time To Best is positive (so it has been updated by the user at least once)scoreUpdate
(S solution, Map<String, Double> oldValues, M move) validateWithRefValues
(S solution, Map<String, Objective<?, S, I>> objectives, ReferenceResultManager referenceResultManager)
-
Constructor Details
-
ValidationUtil
public ValidationUtil()
-
-
Method Details
-
assertFastAccess
Check that the given list implements the RandomAccess interface- Parameters:
list
- to check
-
positiveTTB
Check that the Time To Best is positive (so it has been updated by the user at least once)- Type Parameters:
S
- Solution classI
- Instance class- Parameters:
solution
- Solution to check
-
scoreUpdate
-
validateWithRefValues
-