org.opensha.commons.param.constraint
Interface DiscreteParameterConstraint<E>

All Superinterfaces:
Named, ParameterConstraint<E>, Serializable
All Known Implementing Classes:
DoubleDiscreteConstraint, EditableStringConstraint, EnumConstraint, LocationConstraint, StringConstraint, StringListConstraint

public interface DiscreteParameterConstraint<E>
extends ParameterConstraint<E>

Title: DiscreteParameterConstraintAPI

Description: This interface must be implemented by all parameters that wish to restrict allowed values to a definite set. These values are typically presented in a GUI with a picklist.

Version:
1.0
Author:
Steven W. Rock

Method Summary
 List<E> getAllowedValues()
          Returns cloned vector of allowed values, unable to modify original values.
 ListIterator<E> listIterator()
          Returns Iterator over allowed values, able to modify original.
 int size()
          Returns the number of allowed values in the list
 
Methods inherited from interface org.opensha.commons.param.constraint.ParameterConstraint
clone, getName, isAllowed, isEditable, isNullAllowed, setName, setNonEditable, setNullAllowed
 

Method Detail

getAllowedValues

List<E> getAllowedValues()
Returns cloned vector of allowed values, unable to modify original values.


listIterator

ListIterator<E> listIterator()
Returns Iterator over allowed values, able to modify original.


size

int size()
Returns the number of allowed values in the list