|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.util.progress.ProgressHelper
public class ProgressHelper
Helper for notifying ProgressListeners when the evaluation progress
of an Executor changes. This class reports the current progress,
percent complete, elapsed time, and remaining time. Be sure to first call
start(int, int) to set the total number of seeds and NFE prior to
invoking any other method.
| Constructor Summary | |
|---|---|
ProgressHelper(Executor executor)
Constructs a new progress helper for generating progress reports for the given executor. |
|
| Method Summary | |
|---|---|
void |
addProgressListener(ProgressListener listener)
Adds the given listener to receive progress reports. |
void |
nextSeed()
Increments the current seed and sets NFE to 0. |
void |
removeProgressListener(ProgressListener listener)
Removes the given listener so it no longer receives progress reports. |
void |
setCurrentNFE(int currentNFE)
Sets the current number of objective function evaluations. |
void |
setCurrentSeed(int currentSeed)
Sets the current seed. |
void |
start(int totalSeeds,
int maxNFE)
Prepares this progress helper for use. |
void |
stop()
Stops this progress helper. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProgressHelper(Executor executor)
executor - the executor that will be reporting progress| Method Detail |
|---|
public void addProgressListener(ProgressListener listener)
listener - the listener to receive progress reportspublic void removeProgressListener(ProgressListener listener)
listener - the listener to no longer receive progress reportspublic void setCurrentNFE(int currentNFE)
currentNFE - the current number of objective function evaluationspublic void setCurrentSeed(int currentSeed)
It is strongly recommended that nextSeed() is used instead
of this method, as nextSeed() sets the current NFE to 0.
currentSeed - the current seed being processed, starting at
1public void nextSeed()
public void start(int totalSeeds,
int maxNFE)
totalSeeds - the total number of seeds to be evaluatedmaxNFE - the maximum number of objective function evaluations per
seedpublic void stop()
start(int, int) can be called
to reset and restart this progress helper.
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||