Package | Description |
---|---|
de.lmu.ifi.dbs.elki.utilities.optionhandling.constraints |
Constraints allow to restrict possible values for parameters.
|
de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters |
Classes for various typed parameters.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractNumberConstraint<P>
Abstract super class for constraints dealing with a certain number value.
|
class |
EqualStringConstraint
Represents a parameter constraint for testing if the string value of the
string parameter (
StringParameter
) to be tested is equal to the specified constraint-strings. |
class |
GreaterConstraint
Represents a parameter constraint for testing if the value of the number
parameter (
NumberParameter ) tested is greater than the specified
constraint value. |
class |
GreaterEqualConstraint
Represents a Greater-Equal-Than-Number parameter constraint.
|
class |
LessConstraint
Represents a Less-Than-Number parameter constraint.
|
class |
LessEqualConstraint
Represents a Less-Equal-Than-Number parameter constraint.
|
class |
ListEachConstraint
Applies constraints to all elements of a list.
|
class |
ListParameterNoDuplicateValueConstraint<T>
Parameter constraint specifying that a parameter list
is not allowed to have duplicate values.
|
class |
ListSizeConstraint
Represents a list-size parameter constraint.
|
class |
StringLengthConstraint
Length constraint for a
StringParameter
. |
Modifier and Type | Field and Description |
---|---|
static ParameterConstraint<? super Integer> |
CommonConstraints.GREATER_EQUAL_MINUSONE_INT
Integer constraint: >= -1
|
static ParameterConstraint<? super Double> |
CommonConstraints.GREATER_EQUAL_ONE_DOUBLE
At least 1.
|
static ParameterConstraint<? super Integer> |
CommonConstraints.GREATER_EQUAL_ONE_INT
Larger than zero.
|
static ParameterConstraint<int[]> |
CommonConstraints.GREATER_EQUAL_ONE_INT_LIST
List constraint: >= 1
|
static ParameterConstraint<? super Double> |
CommonConstraints.GREATER_EQUAL_ZERO_DOUBLE
Not negative.
|
static ParameterConstraint<? super Integer> |
CommonConstraints.GREATER_EQUAL_ZERO_INT
Not negative.
|
static ParameterConstraint<int[]> |
CommonConstraints.GREATER_EQUAL_ZERO_INT_LIST
Constraint for the whole list.
|
static ParameterConstraint<? super Double> |
CommonConstraints.GREATER_THAN_ONE_DOUBLE
Larger than one.
|
static ParameterConstraint<? super Integer> |
CommonConstraints.GREATER_THAN_ONE_INT
Larger than one.
|
static ParameterConstraint<? super Double> |
CommonConstraints.GREATER_THAN_ZERO_DOUBLE
Larger than zero.
|
static ParameterConstraint<? super Double> |
CommonConstraints.LESS_EQUAL_ONE_DOUBLE
Less or equal than one.
|
static ParameterConstraint<? super Double> |
CommonConstraints.LESS_THAN_HALF_DOUBLE
Constraint: less than .5
|
static ParameterConstraint<? super Double> |
CommonConstraints.LESS_THAN_ONE_DOUBLE
Less than one.
|
Modifier and Type | Field and Description |
---|---|
private List<? extends ParameterConstraint<? super S>> |
ParameterFlagGlobalConstraint.cons
List of parameter constraints.
|
private List<ParameterConstraint<? super Integer>> |
ListEachConstraint.constraints
Constraints
|
Modifier and Type | Method and Description |
---|---|
void |
ListEachConstraint.addConstraint(ParameterConstraint<? super Integer> constraint)
Add a constraint to this operator.
|
Constructor and Description |
---|
ListEachConstraint(ParameterConstraint<? super Integer> constraint)
Constructor.
|
Constructor and Description |
---|
ParameterFlagGlobalConstraint(Parameter<? extends S> p,
List<? extends ParameterConstraint<? super S>> c,
Flag f,
boolean flagConstraint)
Constructs a global parameter constraint specifying that the testing of the
parameter given for keeping the parameter constraints given is dependent on
the status of the flag given.
|
Modifier and Type | Field and Description |
---|---|
protected List<ParameterConstraint<? super T>> |
AbstractParameter.constraints
Holds parameter constraints for this parameter.
|
Modifier and Type | Method and Description |
---|---|
Parameter<T> |
Parameter.addConstraint(ParameterConstraint<? super T> constraint)
Add an additional constraint.
|
THIS |
AbstractParameter.addConstraint(ParameterConstraint<? super T> constraint) |
Constructor and Description |
---|
VectorListParameter(OptionID optionID,
ParameterConstraint<List<Vector>> constraint)
Constructs a vector list parameter with the given name and description.
|
VectorListParameter(OptionID optionID,
ParameterConstraint<List<Vector>> constraint,
boolean optional)
Constructs a vector list parameter with the given name and description.
|
VectorListParameter(OptionID optionID,
ParameterConstraint<List<Vector>> constraint,
List<Vector> defaultValue)
Constructs a vector list parameter with the given name and description.
|
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.