Package org.jacop.floats.core
Class FloatIntervalDomainIntervalEnumeration
- java.lang.Object
-
- org.jacop.floats.core.FloatIntervalEnumeration
-
- org.jacop.floats.core.FloatIntervalDomainIntervalEnumeration
-
- All Implemented Interfaces:
java.util.Enumeration<FloatInterval>
public class FloatIntervalDomainIntervalEnumeration extends FloatIntervalEnumeration
Defines a methods for enumerating values contain in the intersal domain. It implements the interface Enumeration.- Version:
- 4.8
-
-
Field Summary
Fields Modifier and Type Field Description (package private) FloatIntervalDomaindomain(package private) FloatIntervali(package private) intintervalNo(package private) intmaxIntervalNo
-
Constructor Summary
Constructors Constructor Description FloatIntervalDomainIntervalEnumeration(FloatIntervalDomain dom)It creates an enumeration for a given interval domain.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasMoreElements()FloatIntervalnextElement()
-
-
-
Field Detail
-
domain
FloatIntervalDomain domain
-
i
FloatInterval i
-
intervalNo
int intervalNo
-
maxIntervalNo
int maxIntervalNo
-
-
Constructor Detail
-
FloatIntervalDomainIntervalEnumeration
public FloatIntervalDomainIntervalEnumeration(FloatIntervalDomain dom)
It creates an enumeration for a given interval domain.- Parameters:
dom- interval domain for which an enumeration is created.
-
-
Method Detail
-
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElementsin interfacejava.util.Enumeration<FloatInterval>- Specified by:
hasMoreElementsin classFloatIntervalEnumeration- Returns:
- true if there are more elements to enumerate.
-
nextElement
public FloatInterval nextElement()
- Specified by:
nextElementin interfacejava.util.Enumeration<FloatInterval>- Specified by:
nextElementin classFloatIntervalEnumeration- Returns:
- next interval.
-
-