public class AlgorithmParameter extends Object implements Serializable
| Constructor and Description |
|---|
AlgorithmParameter(String name,
ValueComparator[] comparators,
ValueType valueType)
Defines a parameter.
|
| Modifier and Type | Method and Description |
|---|---|
ValueComparator[] |
getComparators()
Returns the allowed comparators for this parameter.
|
String |
getName()
Returns the name of this parameter.
|
ValueType |
getValueType()
Returns the type of value of this parameter.
|
boolean |
hasComparator(ValueComparator valueComparator)
Returns true if the given value comparator is allowed for this parameter.
|
String |
toString() |
public AlgorithmParameter(String name, ValueComparator[] comparators, ValueType valueType)
name - the name of the parameter.comparators - the allowed comparators for the parameter.valueFactory - the allowed types of values for this parameter, one of
Value or its subclasses.public ValueComparator[] getComparators()
ValueComparator objects. Never returns
null (but can be length zero).public String getName()
String.public ValueType getValueType()
ValueFactory or its subclasses.public boolean hasComparator(ValueComparator valueComparator)
valueComparator - the value comparator to search for.Copyright © 2012–2017 Emory University. All rights reserved.