Package org.moeaframework.util.validate
Class ProblemValidator
java.lang.Object
org.moeaframework.util.validate.Validator<T>
org.moeaframework.util.validate.ObjectValidator<Problem>
org.moeaframework.util.validate.ProblemValidator
Validator for
Problem
s.-
Constructor Summary
ConstructorDescriptionProblemValidator
(String propertyName, Problem problem) Constructs a new problem validator. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Asserts the decision variables are all of the requested type.final void
Asserts the problem has no constraints.Methods inherited from class org.moeaframework.util.validate.ObjectValidator
isA, isNotEmpty, isNotNull
Methods inherited from class org.moeaframework.util.validate.Validator
fails, failUnsupportedOption, failUnsupportedOption, getPropertyName, getPropertyValue
-
Constructor Details
-
ProblemValidator
Constructs a new problem validator.- Parameters:
propertyName
- the property nameproblem
- the problem
-
-
Method Details
-
isUnconstrained
public final void isUnconstrained()Asserts the problem has no constraints. -
isType
Asserts the decision variables are all of the requested type.- Parameters:
type
- the requested type
-