|
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.analysis.diagnostics.Controller
public class Controller
The controller manages the underlying data model, performs the evaluation of jobs, and notifies any listeners when its state changes.
| Constructor Summary | |
|---|---|
Controller(DiagnosticTool frame)
Constructs a new controller for the specified DiagnosticTool
instance. |
|
| Method Summary | |
|---|---|
void |
add(ResultKey key,
Accumulator accumulator)
Adds a new result to this controller. |
void |
add(String algorithm,
String problem,
Accumulator accumulator)
Adds a new result to this controller. |
void |
addControllerListener(ControllerListener listener)
Adds the specified listener to receive all subsequent controller events. |
void |
cancel()
Notifies the controller that it should cancel the current evaluation job. |
void |
clear()
Clears all results from this collector. |
void |
clearLastAccumulator()
Clears the last accumulator. |
protected void |
fireEvent(ControllerEvent event)
Fires the specified controller event. |
protected void |
fireModelChangedEvent()
Fires a MODEL_CHANGED controller event. |
protected void |
fireProgressChangedEvent()
Fires a PROGRESS_CHANGED controller event. |
protected void |
fireStateChangedEvent()
Fires a STATE_CHANGED controller event. |
protected void |
fireViewChangedEvent()
Fires a VIEW_CHANGED controller event. |
List<Accumulator> |
get(ResultKey key)
Returns an unmodifiable collection containing the results associated with the specified key. |
boolean |
getIncludeAdaptiveMultimethodVariation()
Returns true if the adaptive multimethod variation collector is
included; false otherwise. |
boolean |
getIncludeAdaptiveTimeContinuation()
Returns true if the adaptive time continuation collector is
included; false otherwise. |
boolean |
getIncludeAdditiveEpsilonIndicator()
Returns true if the additive ε-indicator collector is
included; false otherwise. |
boolean |
getIncludeApproximationSet()
Returns true if the approximation set collector is included;
false otherwise. |
boolean |
getIncludeContribution()
Returns true if the contribution indicator collector is included;
false otherwise. |
boolean |
getIncludeElapsedTime()
Returns true if the elapsed time collector is included;
false otherwise. |
boolean |
getIncludeEpsilonProgress()
Returns true if the ε-progress collector is included;
false otherwise. |
boolean |
getIncludeGenerationalDistance()
Returns true if the generational distance indicator collector
is included; false otherwise. |
boolean |
getIncludeHypervolume()
Returns true if the hypervolume indicator collector is included;
false otherwise. |
boolean |
getIncludeInvertedGenerationalDistance()
Returns true if the inverted generational distance indicator
collector is included; false otherwise. |
boolean |
getIncludePopulationSize()
Returns true if the population size collector is included;
false otherwise. |
boolean |
getIncludeR1()
Returns true if the R1 indicator collector is included;
false otherwise. |
boolean |
getIncludeR2()
Returns true if the R2 indicator collector is included;
false otherwise. |
boolean |
getIncludeR3()
Returns true if the R3 indicator collector is included;
false otherwise. |
boolean |
getIncludeSpacing()
Returns true if the spacing indicator collector is included;
false otherwise. |
Set<ResultKey> |
getKeys()
Returns an unmodifiable set of result keys contained in this controller. |
Accumulator |
getLastAccumulator()
Returns the last accumulator to be generated; or null if no last
accumulator exists or has been previously cleared. |
int |
getOverallProgress()
Returns the overall progress of the current job being evaluated. |
int |
getRunProgress()
Returns the run progress of the current job being evaluated. |
boolean |
getShowIndividualTraces()
Returns true if individual traces are shown; false if
quantiles are shown. |
boolean |
getShowLastTrace()
Returns true if the last run's trace is displayed; false
otherwise. |
protected void |
handleException(Exception e)
Handles an exception, possibly displaying a dialog box containing details of the exception. |
boolean |
isRunning()
Returns true if this controller is currently processing an
evaluation job; false otherwise. |
void |
loadData(File file)
Loads all results stored in the specified file. |
void |
removeControllerListener(ControllerListener listener)
Removes the specified listener so it no longer receives controller events. |
void |
run()
Launches a thread to run the current evaluation job. |
void |
saveData(File file)
Saves all results stored in this controller to the specified file. |
void |
setIncludeAdaptiveMultimethodVariation(boolean includeAdaptiveMultimethodVariation)
Sets the inclusion of the adaptive multimethod variation collector. |
void |
setIncludeAdaptiveTimeContinuation(boolean includeAdaptiveTimeContinuation)
Sets the inclusion of the adaptive time continuation collector. |
void |
setIncludeAdditiveEpsilonIndicator(boolean includeAdditiveEpsilonIndicator)
Sets the inclusion of the additive ε-indicator collector. |
void |
setIncludeApproximationSet(boolean includeApproximationSet)
Sets the inclusion of the approximation set collector. |
void |
setIncludeContribution(boolean includeContribution)
Sets the inclusion of the contribution indicator collector. |
void |
setIncludeElapsedTime(boolean includeElapsedTime)
Sets the inclusion of the elapsed time collector. |
void |
setIncludeEpsilonProgress(boolean includeEpsilonProgress)
Sets the inclusion of the ε-progress collector. |
void |
setIncludeGenerationalDistance(boolean includeGenerationalDistance)
Sets the inclusion of the generational distance indicator collector. |
void |
setIncludeHypervolume(boolean includeHypervolume)
Sets the inclusion of the hypervolume indicator collector. |
void |
setIncludeInvertedGenerationalDistance(boolean includeInvertedGenerationalDistance)
Sets the inclusion of the inverted generational distance indicator collector. |
void |
setIncludePopulationSize(boolean includePopulationSize)
Sets the inclusion of the population size collector. |
void |
setIncludeR1(boolean includeR1)
Sets the inclusion of the R1 indicator collector. |
void |
setIncludeR2(boolean includeR2)
Sets the inclusion of the R2 indicator collector. |
void |
setIncludeR3(boolean includeR3)
Sets the inclusion of the R3 indicator collector. |
void |
setIncludeSpacing(boolean includeSpacing)
Sets the inclusion of the spacing indicator collector. |
void |
setShowIndividualTraces(boolean showIndividualTraces)
Set to true to show individual traces; false to show
quantiles. |
void |
setShowLastTrace(boolean showLastTrace)
Sets the display of the last run's trace. |
void |
showStatistics()
Creates and displays a dialog containing a statistical comparison of the selected results. |
protected void |
updateProgress(int currentEvaluation,
int currentSeed,
int totalEvaluations,
int totalSeeds)
Updates the progress of this controller. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Controller(DiagnosticTool frame)
DiagnosticTool
instance.
frame - the DiagnosticTool instance using this controller| Method Detail |
|---|
public void addControllerListener(ControllerListener listener)
listener - the listener to receive controller eventspublic void removeControllerListener(ControllerListener listener)
listener - the listener to no longer receive controller eventsprotected void fireModelChangedEvent()
MODEL_CHANGED controller event.
protected void fireStateChangedEvent()
STATE_CHANGED controller event.
protected void fireProgressChangedEvent()
PROGRESS_CHANGED controller event.
protected void fireViewChangedEvent()
VIEW_CHANGED controller event.
protected void fireEvent(ControllerEvent event)
event - the controller event to fire
public void add(ResultKey key,
Accumulator accumulator)
MODEL_CHANGED event is fired.
key - the result key identifying the algorithm and problem
associated with these resultsaccumulator - the accumulator storing the results
public void add(String algorithm,
String problem,
Accumulator accumulator)
add(ResultKey, Accumulator).
algorithm - the algorithm associated with these resultsproblem - the problem associated with these resultsaccumulator - the accumulator storing the resultspublic void clear()
MODEL_CHANGED event
is fired.
public List<Accumulator> get(ResultKey key)
key - the result key
public Set<ResultKey> getKeys()
public Accumulator getLastAccumulator()
null if no last
accumulator exists or has been previously cleared.
null if no last
accumulator exists or has been previously clearedpublic void clearLastAccumulator()
getLastAccumulator() will return null until a new
accumulator is generated.
public void saveData(File file)
throws IOException
file - the file to which the results are saved
IOException - if an I/O error occurred
public void loadData(File file)
throws IOException
MODEL_CHANGED
event is fired.
file - the file containing the results to load
IOException - if an I/O error occurred
protected void updateProgress(int currentEvaluation,
int currentSeed,
int totalEvaluations,
int totalSeeds)
PROGRESS_CHANGED
event is fired.
currentEvaluation - the current evaluation numbercurrentSeed - the current seed numbertotalEvaluations - the total number of evaluationstotalSeeds - the total number of seedspublic void showStatistics()
public void run()
public void cancel()
public boolean isRunning()
true if this controller is currently processing an
evaluation job; false otherwise.
true if this controller is currently processing an
evaluation job; false otherwisepublic boolean getShowLastTrace()
true if the last run's trace is displayed; false
otherwise.
true if the last run's trace is displayed; false
otherwisepublic void setShowLastTrace(boolean showLastTrace)
showLastTrace - true if the last run's trace is displayed;
false otherwisepublic boolean getIncludeHypervolume()
true if the hypervolume indicator collector is included;
false otherwise.
true if the hypervolume indicator collector is included;
false otherwisepublic void setIncludeHypervolume(boolean includeHypervolume)
includeHypervolume - true if the hypervolume collector is
included; false otherwisepublic boolean getIncludeGenerationalDistance()
true if the generational distance indicator collector
is included; false otherwise.
true if the generational distance indicator collector
is included; false otherwisepublic void setIncludeGenerationalDistance(boolean includeGenerationalDistance)
includeGenerationalDistance - true if the generational
distance indicator collector is included; false otherwisepublic boolean getIncludeInvertedGenerationalDistance()
true if the inverted generational distance indicator
collector is included; false otherwise.
true if the inverted generational distance indicator
collector is included; false otherwisepublic void setIncludeInvertedGenerationalDistance(boolean includeInvertedGenerationalDistance)
includeInvertedGenerationalDistance - true if the inverted
generational distance indicator collector is included;
false otherwisepublic boolean getIncludeSpacing()
true if the spacing indicator collector is included;
false otherwise.
true if the spacing indicator collector is included;
false otherwisepublic void setIncludeSpacing(boolean includeSpacing)
includeSpacing - true if the spacing indicator collector is
included; false otherwisepublic boolean getIncludeAdditiveEpsilonIndicator()
true if the additive ε-indicator collector is
included; false otherwise.
true if the additive ε-indicator collector is
included; false otherwisepublic void setIncludeAdditiveEpsilonIndicator(boolean includeAdditiveEpsilonIndicator)
includeAdditiveEpsilonIndicator - true if the additive
ε-indicator collector is included; false otherwisepublic boolean getIncludeContribution()
true if the contribution indicator collector is included;
false otherwise.
true if the contribution indicator collector is included;
false otherwisepublic void setIncludeContribution(boolean includeContribution)
includeContribution - true if the contribution indicator
collector is included; false otherwisepublic boolean getIncludeR1()
true if the R1 indicator collector is included;
false otherwise.
true if the R1 indicator collector is included;
false otherwisepublic void setIncludeR1(boolean includeR1)
includeR1 - true if the R1 indicator collector is included;
false otherwisepublic boolean getIncludeR2()
true if the R2 indicator collector is included;
false otherwise.
true if the R2 indicator collector is included;
false otherwisepublic void setIncludeR2(boolean includeR2)
includeR2 - true if the R2 indicator collector is included;
false otherwisepublic boolean getIncludeR3()
true if the R3 indicator collector is included;
false otherwise.
true if the R3 indicator collector is included;
false otherwisepublic void setIncludeR3(boolean includeR3)
includeR3 - true if the R3 indicator collector is included;
false otherwisepublic boolean getIncludeEpsilonProgress()
true if the ε-progress collector is included;
false otherwise.
true if the ε-progress collector is included;
false otherwisepublic void setIncludeEpsilonProgress(boolean includeEpsilonProgress)
includeEpsilonProgress - true if the ε-progress
collector is included; false otherwisepublic boolean getIncludeAdaptiveMultimethodVariation()
true if the adaptive multimethod variation collector is
included; false otherwise.
true if the adaptive multimethod variation collector is
included; false otherwisepublic void setIncludeAdaptiveMultimethodVariation(boolean includeAdaptiveMultimethodVariation)
includeAdaptiveMultimethodVariation - true if the adaptive
multimethod variation collector is included; false
otherwisepublic boolean getIncludeAdaptiveTimeContinuation()
true if the adaptive time continuation collector is
included; false otherwise.
true if the adaptive time continuation collector is
included; false otherwisepublic void setIncludeAdaptiveTimeContinuation(boolean includeAdaptiveTimeContinuation)
includeAdaptiveTimeContinuation - true if the adaptive time
continuation collector is included; false otherwisepublic boolean getIncludeElapsedTime()
true if the elapsed time collector is included;
false otherwise.
true if the elapsed time collector is included;
false otherwisepublic void setIncludeElapsedTime(boolean includeElapsedTime)
includeElapsedTime - true if the elapsed time collector is
included; false otherwisepublic boolean getIncludeApproximationSet()
true if the approximation set collector is included;
false otherwise.
true if the approximation set collector is included;
false otherwisepublic void setIncludeApproximationSet(boolean includeApproximationSet)
includeApproximationSet - true if the approximation set
collector is included; false otherwisepublic boolean getIncludePopulationSize()
true if the population size collector is included;
false otherwise.
true if the population size collector is included;
false otherwisepublic void setIncludePopulationSize(boolean includePopulationSize)
includePopulationSize - true if the population size
collector is included; false otherwisepublic int getRunProgress()
public int getOverallProgress()
public boolean getShowIndividualTraces()
true if individual traces are shown; false if
quantiles are shown.
true if individual traces are shown; false if
quantiles are shownpublic void setShowIndividualTraces(boolean showIndividualTraces)
true to show individual traces; false to show
quantiles.
showIndividualTraces - true to show individual traces;
false to show quantilesprotected void handleException(Exception e)
e - the exception
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||