public class ProgressEvent
extends java.lang.Object
ProgressHelper
.Constructor and Description |
---|
ProgressEvent(Executor executor,
Algorithm algorithm,
int currentSeed,
int totalSeeds,
boolean isSeedFinished,
int currentNFE,
int maxNFE,
double percentComplete,
double elapsedTime,
double remainingTime,
double maxTime)
Constructs a new progress report with the given values.
|
Modifier and Type | Method and Description |
---|---|
Algorithm |
getCurrentAlgorithm()
Returns the algorithm that is currently running
|
int |
getCurrentNFE()
Returns the current number of objective function evaluations for the
current seed.
|
int |
getCurrentSeed()
Returns the current seed being evaluated, starting at 1.
|
double |
getElapsedTime()
Returns the elapsed time in seconds.
|
Executor |
getExecutor()
Returns the executor from which these progress reports originate.
|
int |
getMaxNFE()
Returns the maximum number of objective function evaluations per seed,
or
-1 if not set. |
double |
getMaxTime()
Returns the maximum elapsed time per seed, or
-1 if not set. |
double |
getPercentComplete()
Returns the percent complete as a fraction between
0 and
1 . |
double |
getRemainingTime()
Returns the estimated remaining time in seconds.
|
int |
getTotalSeeds()
Returns the total number of seeds to be evaluated.
|
boolean |
isSeedFinished()
Returns
true if this event was created in response to a seed
finishing; false otherwise. |
public ProgressEvent(Executor executor, Algorithm algorithm, int currentSeed, int totalSeeds, boolean isSeedFinished, int currentNFE, int maxNFE, double percentComplete, double elapsedTime, double remainingTime, double maxTime)
executor
- the executor from which these progress reports originatealgorithm
- the current algorithm the executor is runningcurrentSeed
- the current seed being evaluated, starting at 1totalSeeds
- the total number of seeds to be evaluatedisSeedFinished
- true
if this event was created in response
to a seed finishing; false
otherwisecurrentNFE
- the current number of objective function evaluations
for the current seed.maxNFE
- the maximum number of objective function evaluations per
seed, or -1
if not setpercentComplete
- the percent complete as a fraction between
0
and 1
elapsedTime
- the elapsed time in secondsremainingTime
- the estimated remaining time in secondsmaxTime
- the maximum elapsed time per seed in seconds, or
-1
if not setpublic Executor getExecutor()
public Algorithm getCurrentAlgorithm()
public int getCurrentSeed()
getTotalSeeds()
.public int getTotalSeeds()
public boolean isSeedFinished()
true
if this event was created in response to a seed
finishing; false
otherwise. This indicates that new results are
available in the executor.true
if this event was created in response to a seed
finishing; false
otherwisepublic int getCurrentNFE()
public int getMaxNFE()
-1
if not set.public double getPercentComplete()
0
and
1
.0
and
1
public double getElapsedTime()
public double getRemainingTime()
public double getMaxTime()
-1
if not set.Copyright 2009-2024 David Hadka and other contributors. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage.