Package org.jacop.core
Class BoundDomainIntervalEnumeration
- java.lang.Object
-
- org.jacop.core.IntervalEnumeration
-
- org.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.- Version:
- 4.8
-
-
Constructor Summary
Constructors Constructor Description BoundDomainIntervalEnumeration(int min, int max)
It creates an enumeration of intervals for BoundDomain.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMoreElements()
Interval
nextElement()
-
-
-
Field Detail
-
i
Interval i
-
done
boolean done
-
-
Method Detail
-
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interfacejava.util.Enumeration<Interval>
- Specified by:
hasMoreElements
in classIntervalEnumeration
- Returns:
- true if there are more elements to enumerate.
-
nextElement
public Interval nextElement()
- Specified by:
nextElement
in interfacejava.util.Enumeration<Interval>
- Specified by:
nextElement
in classIntervalEnumeration
- Returns:
- next interval.
-
-