JaCoP.core
Class BoundDomainIntervalEnumeration
java.lang.Object
JaCoP.core.IntervalEnumeration
JaCoP.core.BoundDomainIntervalEnumeration
- All Implemented Interfaces:
- java.util.Enumeration<Interval>
public class BoundDomainIntervalEnumeration
- extends IntervalEnumeration
Defines a methods for enumerating intervals contained in the BoundDomain. It
implements the interface IntervalEnumeration. It always returns only one
interval as BoundDomain by definition is specified by one interval.
- Author:
- Krzysztof Kuchcinski and Radoslaw Szymanek
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoundDomainIntervalEnumeration
public BoundDomainIntervalEnumeration(int min,
int max)
- It creates an enumeration of intervals for BoundDomain.
- Parameters:
min - the left bound of the BoundDomain.max - the right bound of the BoundDomain.
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements in interface java.util.Enumeration<Interval>- Specified by:
hasMoreElements in class IntervalEnumeration
- Returns:
- true if there are more elements to enumerate.
nextElement
public Interval nextElement()
- Specified by:
nextElement in interface java.util.Enumeration<Interval>- Specified by:
nextElement in class IntervalEnumeration
- Returns:
- next interval.