|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.liacs.subdisc.CandidateQueue
public class CandidateQueue
A CandidateQueue holds a collection of Candidates for
future processing. These are ordered as dictated by Candidate's
compareTo(Candidate) method.
This class is thread save.
Candidate| Constructor Summary | |
|---|---|
CandidateQueue(SearchParameters theSearchParameters,
Candidate theRootCandidate)
|
|
| Method Summary | |
|---|---|
boolean |
add(Candidate theCandidate)
Adds a Candidate to this CandidateQueue. |
int |
currentLevelQueueSize()
Returns the number of Candidates in the current
queue level of this CandidateQueue. |
Candidate |
removeFirst()
Retrieves first Candidate from this CandidateQueue,
and moves to next level if required. |
int |
size()
Returns the total number of Candidates in this
CandidateQueue. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CandidateQueue(SearchParameters theSearchParameters,
Candidate theRootCandidate)
| Method Detail |
|---|
public boolean add(Candidate theCandidate)
Candidate to this CandidateQueue.
The add() and removeFirst() methods are thread save.
theCandidate - the Candidate to add.
true if Candidate is added, false
otherwise.removeFirst(),
Candidatepublic Candidate removeFirst()
Candidate from this CandidateQueue,
and moves to next level if required.
The add() and removeFirst() methods are thread save.
add(Candidate),
Candidatepublic int size()
Candidates in this
CandidateQueue.
Thread save with respect to add() and removeFirst().
add(Candidate),
removeFirst(),
Candidatepublic int currentLevelQueueSize()
Candidates in the current
queue level of this CandidateQueue.
Thread save with respect to add() and removeFirst().
add(Candidate),
removeFirst(),
Candidate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||