public abstract class SolutionJudge
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected SolutionJudgeListener |
_eventProxy
proxy which forwards events to registed listeners
|
protected MessageCenter |
_messageCenter
message center for dispatching events to registered listeners
|
| Constructor and Description |
|---|
SolutionJudge()
Creates a new instance of SolutionJudge
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSolutionJudgeListener(SolutionJudgeListener aListener)
Add a solution judge listener.
|
static SolutionJudge |
getInstance()
Get the default solution judge.
|
abstract java.util.List<Trial> |
getOptimalSolutions()
Get the optimal solutions.
|
abstract void |
judge(Trial trial)
Judge the trial.
|
void |
removeSolutionJudgeListener(SolutionJudgeListener aListener)
Remove a solution judge listener.
|
abstract void |
reset()
Reset the solution judge.
|
protected MessageCenter _messageCenter
protected SolutionJudgeListener _eventProxy
public static SolutionJudge getInstance()
public abstract void reset()
public void addSolutionJudgeListener(SolutionJudgeListener aListener)
aListener - The listener to add.public void removeSolutionJudgeListener(SolutionJudgeListener aListener)
aListener - The listener to remove.public abstract java.util.List<Trial> getOptimalSolutions()
public abstract void judge(Trial trial)
trial - The trial to update the solution judge with.