Class IntegerBoundedSequenceGenerator
java.lang.Object
org.uma.jmetal.util.sequencegenerator.impl.IntegerBoundedSequenceGenerator
- All Implemented Interfaces:
SequenceGenerator<Integer>
This class generates a bounded sequence of consecutive integer numbers. When the last number is generated, the
sequence starts again.
- Author:
- Antonio J. Nebro
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IntegerBoundedSequenceGenerator
public IntegerBoundedSequenceGenerator(int size)
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceSequenceGenerator<Integer>
-
generateNext
public void generateNext()- Specified by:
generateNextin interfaceSequenceGenerator<Integer>
-
getSequenceLength
public int getSequenceLength()- Specified by:
getSequenceLengthin interfaceSequenceGenerator<Integer>
-