org.decisiondeck.xmcda_oo.utils.matrix
Interface ConstrainedMatrix.Validator
- All Known Implementing Classes:
- ConstrainedMatrix.AllValidator, ConstrainedMatrix.FuzzyValidator
- Enclosing class:
- ConstrainedMatrix<RowType,ColumnType>
public static interface ConstrainedMatrix.Validator
An object able to discriminate between valid and invalid values. E.g., a Validator object could validate only
positive values.
isValid
boolean isValid(double value)
- Asserts that the specified value is, or is not, valid. The behavior of this method must be deterministic: any
two calls with the same value must yield the same answer.
- Parameters:
value - the value to validate.
- Returns:
true iff the given value is valid.
getType
ConstrainedMatrix.ValidatorType getType()
Copyright © 2011. All Rights Reserved.