|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.utilities.optionhandling.constraints.NoDuplicateValueGlobalConstraint
public class NoDuplicateValueGlobalConstraint
Global parameter constraint specifying that parameters of a list of number
parameters (NumberParameter
) are not allowed to have the same value.
Field Summary | |
---|---|
private List<? extends Parameter<?,?>> |
parameters
List of number parameters to be checked. |
Constructor Summary | |
---|---|
NoDuplicateValueGlobalConstraint(List<? extends Parameter<?,?>> parameters)
Constructs a Not-Equal-Value global parameter constraint. |
|
NoDuplicateValueGlobalConstraint(Parameter<?,?>... parameters)
Constructs a Not-Equal-Value global parameter constraint. |
Method Summary | |
---|---|
String |
getDescription()
Returns a description of this global constraint. |
void |
test()
Checks if the elements of the list of number parameters do have different values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private List<? extends Parameter<?,?>> parameters
Constructor Detail |
---|
public NoDuplicateValueGlobalConstraint(List<? extends Parameter<?,?>> parameters)
parameters
- list of number parameters to be testedpublic NoDuplicateValueGlobalConstraint(Parameter<?,?>... parameters)
parameters
- list of number parameters to be testedMethod Detail |
---|
public void test() throws ParameterException
test
in interface GlobalParameterConstraint
ParameterException
- if the parameters don't satisfy the parameter constraint.public String getDescription()
GlobalParameterConstraint
getDescription
in interface GlobalParameterConstraint
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |