JaCoP.core
Class BoundDomainIntervalEnumeration

java.lang.Object
  extended by JaCoP.core.IntervalEnumeration
      extended by 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:
3.1
Author:
Krzysztof Kuchcinski and Radoslaw Szymanek

Constructor Summary
BoundDomainIntervalEnumeration(int min, int max)
          It creates an enumeration of intervals for BoundDomain.
 
Method Summary
 boolean hasMoreElements()
           
 Interval nextElement()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.